@@ -18,7 +18,7 @@ public class BrowserStackLocalTest {
18
18
public void setUp () throws Exception {
19
19
l = new Local ();
20
20
options = new HashMap <String , String >();
21
- options .put ("- key" , System .getenv ("BROWSERSTACK_ACCESS_KEY" ));
21
+ options .put ("key" , System .getenv ("BROWSERSTACK_ACCESS_KEY" ));
22
22
}
23
23
24
24
@ Test
@@ -42,15 +42,15 @@ public void testMultipleBinary() throws Exception {
42
42
43
43
@ Test
44
44
public void testEnableVerbose () throws Exception {
45
- options .put ("- v" , "" );
45
+ options .put ("v" , "true " );
46
46
options .put ("onlyCommand" , "true" );
47
47
l .start (options );
48
48
assertTrue (l .command .contains ("-vvv" ));
49
49
}
50
50
51
51
@ Test
52
52
public void testSetFolder () throws Exception {
53
- options .put ("- f" , "/var/html" );
53
+ options .put ("f" , "/var/html" );
54
54
options .put ("onlyCommand" , "true" );
55
55
l .start (options );
56
56
assertTrue (l .command .contains ("-f" ));
@@ -59,47 +59,47 @@ public void testSetFolder() throws Exception {
59
59
60
60
@ Test
61
61
public void testEnableForce () throws Exception {
62
- options .put ("- force" , "" );
62
+ options .put ("force" , "true " );
63
63
options .put ("onlyCommand" , "true" );
64
64
l .start (options );
65
65
assertTrue (l .command .contains ("-force" ));
66
66
}
67
67
68
68
@ Test
69
69
public void testEnableOnly () throws Exception {
70
- options .put ("- only" , "" );
70
+ options .put ("only" , "true " );
71
71
options .put ("onlyCommand" , "true" );
72
72
l .start (options );
73
73
assertTrue (l .command .contains ("-only" ));
74
74
}
75
75
76
76
@ Test
77
77
public void testEnableOnlyAutomate () throws Exception {
78
- options .put ("- onlyAutomate" , "" );
78
+ options .put ("onlyAutomate" , "true " );
79
79
options .put ("onlyCommand" , "true" );
80
80
l .start (options );
81
81
assertTrue (l .command .contains ("-onlyAutomate" ));
82
82
}
83
83
84
84
@ Test
85
85
public void testEnableForceLocal () throws Exception {
86
- options .put ("- forcelocal" , "" );
86
+ options .put ("forcelocal" , "true " );
87
87
options .put ("onlyCommand" , "true" );
88
88
l .start (options );
89
89
assertTrue (l .command .contains ("-forcelocal" ));
90
90
}
91
91
92
92
@ Test
93
93
public void testEnableForceProxy () throws Exception {
94
- options .put ("- forceproxy" , "" );
94
+ options .put ("forceproxy" , "true " );
95
95
options .put ("onlyCommand" , "true" );
96
96
l .start (options );
97
97
assertTrue (l .command .contains ("-forceproxy" ));
98
98
}
99
99
100
100
@ Test
101
101
public void testSetLocalIdentifier () throws Exception {
102
- options .put ("- localIdentifier" , "abcdef" );
102
+ options .put ("localIdentifier" , "abcdef" );
103
103
options .put ("onlyCommand" , "true" );
104
104
l .start (options );
105
105
assertTrue (l .command .contains ("-localIdentifier" ));
@@ -108,10 +108,10 @@ public void testSetLocalIdentifier() throws Exception {
108
108
109
109
@ Test
110
110
public void testSetProxy () throws Exception {
111
- options .put ("- proxyHost" , "localhost" );
112
- options .put ("- proxyPort" , "8080" );
113
- options .put ("- proxyUser" , "user" );
114
- options .put ("- proxyPass" , "pass" );
111
+ options .put ("proxyHost" , "localhost" );
112
+ options .put ("proxyPort" , "8080" );
113
+ options .put ("proxyUser" , "user" );
114
+ options .put ("proxyPass" , "pass" );
115
115
options .put ("onlyCommand" , "true" );
116
116
l .start (options );
117
117
assertTrue (l .command .contains ("-proxyHost" ));
@@ -126,16 +126,16 @@ public void testSetProxy() throws Exception {
126
126
127
127
@ Test
128
128
public void testSetHosts () throws Exception {
129
- options .put ("- hosts" , "localhost,8000,0" );
129
+ options .put ("hosts" , "localhost,8000,0" );
130
130
options .put ("onlyCommand" , "true" );
131
131
l .start (options );
132
132
assertTrue (l .command .contains ("localhost,8000,0" ));
133
133
}
134
134
135
135
@ Test
136
136
public void testCustomArguments () throws Exception {
137
- options .put ("- customKey" , "customValue" );
138
- options .put ("- customKey2" , "customValue2" );
137
+ options .put ("customKey" , "customValue" );
138
+ options .put ("customKey2" , "customValue2" );
139
139
options .put ("onlyCommand" , "true" );
140
140
l .start (options );
141
141
assertTrue (l .command .contains ("-customKey" ));
@@ -147,11 +147,11 @@ public void testCustomArguments() throws Exception {
147
147
148
148
@ Test
149
149
public void testCustomBoolArguments () throws Exception {
150
- options .put ("-customKey " , "" );
151
- options .put ("- customKey2" , "" );
150
+ options .put ("customKey1 " , "true " );
151
+ options .put ("customKey2" , "true " );
152
152
options .put ("onlyCommand" , "true" );
153
153
l .start (options );
154
- assertTrue (l .command .contains ("-customKey " ));
154
+ assertTrue (l .command .contains ("-customKey1 " ));
155
155
assertTrue (l .command .contains ("-customKey2" ));
156
156
}
157
157
0 commit comments