File tree 1 file changed +5
-5
lines changed
java/client/test/org/openqa/selenium/remote
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -76,19 +76,19 @@ public void justCallingBuildWithoutSettingAnyOptionsIsAnError() {
76
76
77
77
@ Test
78
78
public void mustSpecifyAtLeastOneSetOfOptions () {
79
- List <HttpRequest > requests = new ArrayList <>();
79
+ List <List < Capabilities >> caps = new ArrayList <>();
80
80
81
81
RemoteWebDriver .builder ().oneOf (new FirefoxOptions ())
82
82
.address ("http://localhost:34576" )
83
83
.connectingWith (config -> req -> {
84
- requests .add (req );
84
+ caps .add (listCapabilities ( req ) );
85
85
return CANNED_SESSION_RESPONSE ;
86
86
})
87
87
.build ();
88
88
89
- assertThat (requests ). isNotEmpty ( );
90
- List <Capabilities > caps = listCapabilities ( requests .get (0 ) );
91
- assertThat (caps .get (0 ).getBrowserName ()).isEqualTo (FIREFOX );
89
+ assertThat (caps ). hasSize ( 1 );
90
+ List <Capabilities > caps0 = caps .get (0 );
91
+ assertThat (caps0 .get (0 ).getBrowserName ()).isEqualTo (FIREFOX );
92
92
}
93
93
94
94
@ Test
You can’t perform that action at this time.
0 commit comments