use of com.hazelcast.internal.management.request.GetMapEntryRequest in project hazelcast by hazelcast.
the class GetMapEntryRequestTest method testGetMapEntry.
@Test
public void testGetMapEntry() throws Exception {
GetMapEntryRequest request = new GetMapEntryRequest("string", "map", "key");
IMap<String, String> map = hz.getMap("map");
map.put("key", "value");
JsonObject jsonObject = new JsonObject();
request.writeResponse(managementCenterService, jsonObject);
JsonObject result = (JsonObject) jsonObject.get("result");
assertEquals("value", result.get("browse_value").asString());
assertEquals("java.lang.String", result.get("browse_class").asString());
}
Aggregations