use of com.sequenceiq.freeipa.flow.freeipa.upscale.event.UpscaleFailureEvent in project cloudbreak by hortonworks.
the class ValidateInstancesHealthHandlerTest method testDefaultFailureEvent.
@Test
public void testDefaultFailureEvent() {
Exception e = new Exception("puff");
Event<ValidateInstancesHealthEvent> event = new Event<>(new ValidateInstancesHealthEvent(3L, List.of()));
UpscaleFailureEvent result = (UpscaleFailureEvent) underTest.defaultFailureEvent(2L, e, event);
assertEquals(e, result.getException());
assertEquals(2L, result.getResourceId());
assertEquals(PHASE, result.getFailedPhase());
}
Aggregations