use of com.hazelcast.internal.management.dto.ClusterHotRestartStatusDTO in project hazelcast by hazelcast.
the class NoopHotRestartServicesTest method testNoOpInternalHotRestartService.
@Test
public void testNoOpInternalHotRestartService() {
final NoopInternalHotRestartService service = new NoopInternalHotRestartService();
service.notifyExcludedMember(null);
service.handleExcludedMemberUuids(null, null);
service.forceStartBeforeJoin();
assertFalse(service.triggerForceStart());
assertFalse(service.triggerPartialStart());
assertFalse(service.isMemberExcluded(null, null));
assertEquals(0, service.getExcludedMemberUuids().size());
final ClusterHotRestartStatusDTO expected = new ClusterHotRestartStatusDTO();
final ClusterHotRestartStatusDTO dto = service.getCurrentClusterHotRestartStatus();
assertEquals(expected.getDataRecoveryPolicy(), dto.getDataRecoveryPolicy());
assertEquals(expected.getHotRestartStatus(), dto.getHotRestartStatus());
assertEquals(expected.getRemainingDataLoadTimeMillis(), dto.getRemainingDataLoadTimeMillis());
assertEquals(expected.getRemainingValidationTimeMillis(), dto.getRemainingValidationTimeMillis());
}
Aggregations