Search in sources :

Example 1 with ForceStartNodeRequest

use of com.hazelcast.internal.management.request.ForceStartNodeRequest in project hazelcast by hazelcast.

the class ForceStartNodeRequestTest method testForceStart_fails_withNoEnterprise.

@Test
public void testForceStart_fails_withNoEnterprise() throws Exception {
    ForceStartNodeRequest request = new ForceStartNodeRequest();
    JsonObject jsonObject = new JsonObject();
    request.writeResponse(managementCenterService, jsonObject);
    JsonObject result = (JsonObject) jsonObject.get("result");
    assertEquals(ForceStartNodeRequest.FAILED_RESULT, request.readResponse(result));
}
Also used : ForceStartNodeRequest(com.hazelcast.internal.management.request.ForceStartNodeRequest) JsonObject(com.eclipsesource.json.JsonObject) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test) ParallelTest(com.hazelcast.test.annotation.ParallelTest)

Aggregations

JsonObject (com.eclipsesource.json.JsonObject)1 ForceStartNodeRequest (com.hazelcast.internal.management.request.ForceStartNodeRequest)1 ParallelTest (com.hazelcast.test.annotation.ParallelTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 Test (org.junit.Test)1