Example usage for org.openqa.selenium.json JsonInput read

List of usage examples for org.openqa.selenium.json JsonInput read

Introduction

In this page you can find the example usage for org.openqa.selenium.json JsonInput read.

Prototype

public <T> T read(Type type) 

Source Link

Usage

From source file:org.openqa.grid.web.servlet.HubStatusServletTest.java

License:Apache License

private Map<String, Object> invokeCommand(String method, Map<String, Object> params)
        throws IOException, ServletException {
    FakeHttpServletResponse fakeResponse = sendCommand(method, "/", params);
    Json json = new Json();
    JsonInput jin = json.newInput(new StringReader(fakeResponse.getBody()));
    return jin.read(Json.MAP_TYPE);
}