File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
java/test/org/openqa/selenium/grid/node/config Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 29
29
import org .openqa .selenium .grid .node .ActiveSession ;
30
30
import org .openqa .selenium .internal .Either ;
31
31
import org .openqa .selenium .remote .Dialect ;
32
+ import org .openqa .selenium .remote .http .ClientConfig ;
32
33
import org .openqa .selenium .remote .http .HttpClient ;
33
34
import org .openqa .selenium .remote .http .HttpRequest ;
34
35
import org .openqa .selenium .remote .http .HttpResponse ;
@@ -147,9 +148,9 @@ public void shouldNotInstantiateSessionIfRemoteEndReturnsInvalidResponse() throw
147
148
public void shouldInstantiateSessionIfEverythingIsOK () throws IOException {
148
149
HttpClient httpClient = mock (HttpClient .class );
149
150
when (httpClient .execute (any (HttpRequest .class ))).thenReturn (
150
- new HttpResponse ().setStatus (200 ).setContent (() -> new ByteArrayInputStream (
151
- "{ \" value\" : { \" sessionId\" : \" 1\" , \" capabilities\" : {} } }" .getBytes ())));
152
- when (clientFactory .createClient (any (URL .class ))).thenReturn (httpClient );
151
+ new HttpResponse ().setStatus (200 ).setContent (() -> new ByteArrayInputStream (
152
+ "{ \" value\" : { \" sessionId\" : \" 1\" , \" capabilities\" : {} } }" .getBytes ())));
153
+ when (clientFactory .createClient (any (ClientConfig .class ))).thenReturn (httpClient );
153
154
154
155
DriverServiceSessionFactory factory = factoryFor ("chrome" , builder );
155
156
You can’t perform that action at this time.
0 commit comments