use of com.hazelcast.internal.management.request.GetCacheEntryRequest in project hazelcast by hazelcast.
the class GetCacheEntryRequestTest method testGetCacheEntry.
@Test
public void testGetCacheEntry() throws Exception {
GetCacheEntryRequest request = new GetCacheEntryRequest("string", "test", "1");
ICacheManager hazelcastCacheManager = hz.getCacheManager();
ICache<String, String> cache = hazelcastCacheManager.getCache("test");
cache.put("1", "one");
JsonObject jsonObject = new JsonObject();
request.writeResponse(managementCenterService, jsonObject);
JsonObject result = (JsonObject) jsonObject.get("result");
assertEquals("one", result.get("cacheBrowse_value").asString());
}
Aggregations