use of com.hazelcast.internal.management.request.MapConfigRequest in project hazelcast by hazelcast.
the class MapConfigRequestTest method testGetMapConfig.
@Test
public void testGetMapConfig() {
MapConfigRequest request = new MapConfigRequest(mapName, dto, false);
JsonObject jsonObject = new JsonObject();
request.writeResponse(managementCenterService, jsonObject);
JsonObject result = (JsonObject) jsonObject.get("result");
MapConfig mapConfig = (MapConfig) request.readResponse(result);
assertNotNull(mapConfig);
assertEquals("default", mapConfig.getName());
}
use of com.hazelcast.internal.management.request.MapConfigRequest in project hazelcast by hazelcast.
the class MapConfigRequestTest method testUpdateMapConfig.
@Test
public void testUpdateMapConfig() {
MapConfigRequest request = new MapConfigRequest(mapName, dto, true);
JsonObject jsonObject = new JsonObject();
request.writeResponse(managementCenterService, jsonObject);
JsonObject result = (JsonObject) jsonObject.get("result");
assertEquals("success", request.readResponse(result));
}
Aggregations