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

Merge remote-tracking branch 'remotes/origin/master' into

collectedExceptions

Conflicts:
	src/test/java/teetime/stage/InstanceOfFilterTest.java
parents 6dbf89d8 071bf905
No related branches found
No related tags found
No related merge requests found
...@@ -26,10 +26,10 @@ class YieldStrategyConfiguration extends Configuration { ...@@ -26,10 +26,10 @@ class YieldStrategyConfiguration extends Configuration {
public YieldStrategyConfiguration(final Object... elements) { public YieldStrategyConfiguration(final Object... elements) {
InitialElementProducer<Object> producer = buildProducer(elements); InitialElementProducer<Object> producer = buildProducer(elements);
addThreadableStage(producer); producer.declareActive();
Stage consumer = buildConsumer(producer); Stage consumer = buildConsumer(producer);
addThreadableStage(consumer); consumer.declareActive();
} }
private InitialElementProducer<Object> buildProducer(final Object... elements) { private InitialElementProducer<Object> buildProducer(final Object... elements) {
......
...@@ -33,8 +33,8 @@ public class ExceptionTestConfiguration extends Configuration { ...@@ -33,8 +33,8 @@ public class ExceptionTestConfiguration extends Configuration {
connectPorts(first.getOutputPort(), second.getInputPort()); connectPorts(first.getOutputPort(), second.getInputPort());
// this.addThreadableStage(new ExceptionTestStage()); // this.addThreadableStage(new ExceptionTestStage());
this.addThreadableStage(second); second.declareActive();
this.addThreadableStage(third); third.declareActive();
} }
} }
...@@ -30,7 +30,6 @@ import org.junit.Test; ...@@ -30,7 +30,6 @@ import org.junit.Test;
import teetime.framework.Configuration; import teetime.framework.Configuration;
import teetime.framework.Execution; import teetime.framework.Execution;
import teetime.framework.ExecutionException;
/** /**
* @author Nils Christian Ehmke * @author Nils Christian Ehmke
...@@ -109,15 +108,10 @@ public class InstanceOfFilterTest { ...@@ -109,15 +108,10 @@ public class InstanceOfFilterTest {
} }
@Test @Test
public void filterShouldSendToBothOutputPorts() throws Exception { public void filterShouldSendToBothOutputPorts() {
InstanceOfFilterTestConfig config = new InstanceOfFilterTestConfig(); InstanceOfFilterTestConfig config = new InstanceOfFilterTestConfig();
Execution<InstanceOfFilterTestConfig> execution = new Execution<InstanceOfFilterTestConfig>(config); Execution<InstanceOfFilterTestConfig> execution = new Execution<InstanceOfFilterTestConfig>(config);
try {
execution.executeBlocking(); execution.executeBlocking();
} catch (ExecutionException e) {
// Collection<ThreadThrowableContainer> thrownExceptions = e.getThrownExceptions();
// TODO: handle exception
}
} }
private static class InstanceOfFilterTestConfig extends Configuration { private static class InstanceOfFilterTestConfig extends Configuration {
......
...@@ -137,8 +137,8 @@ public class DynamicDistributorTest { ...@@ -137,8 +137,8 @@ public class DynamicDistributorTest {
connectPorts(initialElementProducer.getOutputPort(), distributor.getInputPort()); connectPorts(initialElementProducer.getOutputPort(), distributor.getInputPort());
connectPorts(distributor.getNewOutputPort(), collectorSink.getInputPort()); connectPorts(distributor.getNewOutputPort(), collectorSink.getInputPort());
addThreadableStage(distributor); distributor.declareActive();
addThreadableStage(collectorSink); collectorSink.declareActive();
for (PortAction<DynamicDistributor<T>> a : inputActions) { for (PortAction<DynamicDistributor<T>> a : inputActions) {
distributor.addPortActionRequest(a); distributor.addPortActionRequest(a);
......
...@@ -118,7 +118,7 @@ public class DynamicMergerTest { ...@@ -118,7 +118,7 @@ public class DynamicMergerTest {
connectPorts(initialElementProducer.getOutputPort(), merger.getNewInputPort()); connectPorts(initialElementProducer.getOutputPort(), merger.getNewInputPort());
connectPorts(merger.getOutputPort(), collectorSink.getInputPort()); connectPorts(merger.getOutputPort(), collectorSink.getInputPort());
addThreadableStage(merger); merger.declareActive();
for (PortAction<DynamicMerger<T>> a : inputActions) { for (PortAction<DynamicMerger<T>> a : inputActions) {
boolean added = merger.addPortActionRequest(a); boolean added = merger.addPortActionRequest(a);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment