File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
main/java/com/browserstack/local
test/java/com/browserstack/local Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ public Local() {
2323 parameters = new HashMap <String , String >();
2424 parameters .put ("v" , "-vvv" );
2525 parameters .put ("f" , "-f" );
26- parameters .put ("h" , "-h" );
27- parameters .put ("version" , "-version" );
2826 parameters .put ("force" , "-force" );
2927 parameters .put ("only" , "-only" );
3028 parameters .put ("forcelocal" , "-forcelocal" );
@@ -34,6 +32,7 @@ public Local() {
3432 parameters .put ("proxyPort" , "-proxyPort" );
3533 parameters .put ("proxyUser" , "-proxyUser" );
3634 parameters .put ("proxyPass" , "-proxyPass" );
35+ parameters .put ("forceproxy" , "-forceproxy" );
3736 parameters .put ("hosts" , "-hosts" );
3837 }
3938
Original file line number Diff line number Diff line change @@ -89,6 +89,14 @@ public void testEnableForceLocal() throws Exception {
8989 assertTrue (l .command .contains ("-forcelocal" ));
9090 }
9191
92+ @ Test
93+ public void testEnableForceProxy () throws Exception {
94+ options .put ("forceproxy" , "" );
95+ options .put ("onlyCommand" , "true" );
96+ l .start (options );
97+ assertTrue (l .command .contains ("-forceproxy" ));
98+ }
99+
92100 @ Test
93101 public void testSetLocalIdentifier () throws Exception {
94102 options .put ("localIdentifier" , "abcdef" );
You can’t perform that action at this time.
0 commit comments