Skip to content
Snippets Groups Projects
Commit c7d43f7b authored by Christian Wulf's avatar Christian Wulf
Browse files

minor refactoring

parent 07b1a637
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ public class DynamicDistributor<T> extends Distributor<T> implements OutputPortR
protected final BlockingQueue<PortAction<DynamicDistributor<T>>> portActions;
public DynamicDistributor() {
portActions = PortActionHelper.createPortActionQueue();
this.portActions = PortActionHelper.createPortActionQueue();
addOutputPortRemovedListener(this);
}
......
......@@ -25,13 +25,15 @@ public class ControlledMergerTest {
@Test
public void shouldWorkWithoutActionTriggers() throws Exception {
PortAction<DynamicMerger<Integer>> createAction = new DoNothingPortAction<Integer>();
List<Integer> inputNumbers = Arrays.asList(0, 1, 2, 3, 4);
@SuppressWarnings("unchecked")
List<PortAction<DynamicMerger<Integer>>> inputActions = Arrays.asList(createAction, createAction, createAction, createAction, createAction);
PortAction<DynamicMerger<Integer>>[] inputActions = new PortAction[5];
for (int i = 0; i < inputActions.length; i++) {
inputActions[i] = new DoNothingPortAction<Integer>();
}
ControlledMergerTestConfig<Integer> config = new ControlledMergerTestConfig<Integer>(inputNumbers, inputActions);
ControlledMergerTestConfig<Integer> config = new ControlledMergerTestConfig<Integer>(inputNumbers, Arrays.asList(inputActions));
Execution<ControlledMergerTestConfig<Integer>> analysis = new Execution<ControlledMergerTestConfig<Integer>>(config,
new TerminatingExceptionListenerFactory());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment