[bazel]: green the json wire protocol response test
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.json.Json;
+import java.util.Map;
+
public class JsonWireProtocolResponseTest {
@Test
@@ -97,9 +99,10 @@ public void shouldIgnoreAGeckodriver013Reply() {
@Test
public void shouldProperlyPopulateAnError() {
WebDriverException exception = new SessionNotCreatedException("me no likey");
+ Json json = new Json();
- ImmutableMap<String, ?> payload = ImmutableMap.of(
- "value", new Json().toType(new Json().toJson(exception), Json.MAP_TYPE),
+ ImmutableMap<String, Object> payload = ImmutableMap.of(
+ "value", json.toType(json.toJson(exception), Json.MAP_TYPE),
"status", ErrorCodes.SESSION_NOT_CREATED);
InitialHandshakeResponse initialResponse = new InitialHandshakeResponse(
