Skip to content

Commit

Permalink
[bazel]: green the json wire protocol response test
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Dec 4, 2018
1 parent 3b453e4 commit 233b70b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.json.Json;

import java.util.Map;

public class JsonWireProtocolResponseTest {

@Test
Expand Down Expand Up @@ -97,10 +99,11 @@ 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),
"status", ErrorCodes.SESSION_NOT_CREATED);
ImmutableMap<String, Object> payload = ImmutableMap.of(
"value", json.toType(json.toJson(exception), Json.MAP_TYPE),
"status", ErrorCodes.SESSION_NOT_CREATED);

InitialHandshakeResponse initialResponse = new InitialHandshakeResponse(
0,
Expand Down

0 comments on commit 233b70b

Please sign in to comment.