@Test public void testInOnly() throws Exception { initializeTranceiver(); Key key = Key.newBuilder().setKey("1").build(); Value value = Value.newBuilder().setValue("test value").build(); Object[] request = {key, value}; requestor.request("put", request); }
@Test public void testInOut() throws Exception { initializeTranceiver(); keyValue.getStore().clear(); Key key = Key.newBuilder().setKey("2").build(); Value value = Value.newBuilder().setValue("test value").build(); keyValue.getStore().put(key, value); Object[] request = {key}; Object response = requestor.request("get", request); assertEquals(value, response); }