use of com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationFlowConfig in project cloudbreak by hortonworks.
the class Flow2ConfigTest method testFlowConfigurationMapInit.
@Test
public void testFlowConfigurationMapInit() {
List<FlowConfiguration<?>> flowConfigs = new ArrayList<>();
flowConfigs.add(new StackSyncFlowConfig());
flowConfigs.add(new StackTerminationFlowConfig());
given(this.flowConfigs.iterator()).willReturn(flowConfigs.iterator());
Map<String, FlowConfiguration<?>> flowConfigMap = underTest.flowConfigurationMap();
assertEquals("Not all flow type appeared in map!", countEvents(flowConfigs), flowConfigMap.size());
}
use of com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationFlowConfig in project cloudbreak by hortonworks.
the class Flow2InitializerTest method testInitialize.
@Test
public void testInitialize() {
List<FlowConfiguration<?>> flowConfigs = new ArrayList<>();
flowConfigs.add(new StackSyncFlowConfig());
flowConfigs.add(new StackTerminationFlowConfig());
given(this.flowConfigs.stream()).willReturn(flowConfigs.stream());
underTest.init();
verify(reactor, times(1)).on(any(Selector.class), any(Consumer.class));
}
Aggregations