@Test public void testEthSyncingInProgress() { buildResponse( "{\n" + " \"id\":1,\n" + " \"jsonrpc\": \"2.0\",\n" + " \"result\": {\n" + " \"startingBlock\": \"0x384\",\n" + " \"currentBlock\": \"0x386\",\n" + " \"highestBlock\": \"0x454\"\n" + " }\n" + "}" ); EthSyncing ethSyncing = deserialiseResponse(EthSyncing.class); assertThat(ethSyncing.getResult(), equalTo(new EthSyncing.Syncing("0x384", "0x386", "0x454", null, null))); }
public T getResult() { return result; }
Response { public T getResult() { return result; } }
Response { public T getResult() { return result; } Response(); }
Response { public T getResult() { return result; } Response(); long getId(); void setId(long id); String getJsonrpc(); void setJsonrpc(String jsonrpc); T getResult(); void setResult(T result); Error getError(); void setError(Error error); boolean hasError(); String getRawResponse(); void setRawResponse(String rawResponse); }
Response { public T getResult() { return result; } Response(); long getId(); void setId(long id); String getJsonrpc(); void setJsonrpc(String jsonrpc); T getResult(); void setResult(T result); Error getError(); void setError(Error error); boolean hasError(); String getRawResponse(); void setRawResponse(String rawResponse);  }