use of com.sequenceiq.flow.reactor.api.event.BaseNamedFlowEvent in project cloudbreak by hortonworks.
the class ResourceEncryptionDeleteHandlerTest method verifyEnvDeleteEvent.
private void verifyEnvDeleteEvent() {
BaseNamedFlowEvent event = baseNamedFlowEventCaptor.getValue();
assertThat(event).isInstanceOf(EnvDeleteEvent.class);
EnvDeleteEvent envDeleteEvent = (EnvDeleteEvent) event;
assertThat(envDeleteEvent.getResourceName()).isEqualTo(ENVIRONMENT_NAME);
assertThat(envDeleteEvent.getResourceCrn()).isEqualTo(ENVIRONMENT_CRN);
assertThat(envDeleteEvent.getResourceId()).isEqualTo(ENVIRONMENT_ID);
assertThat(envDeleteEvent.selector()).isEqualTo(START_PUBLICKEY_DELETE_EVENT.selector());
assertThat(headersArgumentCaptor.getValue()).isSameAs(headers);
}
use of com.sequenceiq.flow.reactor.api.event.BaseNamedFlowEvent in project cloudbreak by hortonworks.
the class S3GuardTableDeleteHandlerTest method verifyEnvDeleteEvent.
private void verifyEnvDeleteEvent() {
BaseNamedFlowEvent event = eventArgumentCaptor.getValue();
assertThat(event).isInstanceOf(EnvDeleteEvent.class);
EnvDeleteEvent envDeleteEvent = (EnvDeleteEvent) event;
assertThat(envDeleteEvent.getResourceName()).isEqualTo(ENVIRONMENT_NAME);
assertThat(envDeleteEvent.getResourceCrn()).isEqualTo(ENVIRONMENT_CRN);
assertThat(envDeleteEvent.getResourceId()).isEqualTo(ENVIRONMENT_ID);
assertThat(envDeleteEvent.selector()).isEqualTo(START_CLUSTER_DEFINITION_CLEANUP_EVENT.selector());
assertThat(headersArgumentCaptor.getValue()).isSameAs(headers);
}
Aggregations