Skip to content
Snippets Groups Projects
Commit aa9edb16 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

testes now on a CS with two stages and one with a single stage

parent a42f6ad9
No related branches found
No related tags found
No related merge requests found
......@@ -48,12 +48,22 @@ public class AbstractCompositeStageTest {
}
}
private class TestCompositeStage extends AbstractCompositeStage {
private class TestCompositeOneStage extends AbstractCompositeStage {
private final Counter firstCounter = new Counter();
public TestCompositeOneStage() {
addThreadableStage(firstCounter);
}
}
private class TestCompositeTwoStage extends AbstractCompositeStage {
private final Counter firstCounter = new Counter();
private final Counter secondCounter = new Counter();
public TestCompositeStage() {
public TestCompositeTwoStage() {
addThreadableStage(firstCounter);
connectPorts(firstCounter.getOutputPort(), secondCounter.getInputPort());
}
......@@ -62,13 +72,13 @@ public class AbstractCompositeStageTest {
private class TestNestingCompositeStage extends AbstractCompositeStage {
public TestCompositeStage firstCompositeStage;
public TestCompositeStage secondCompositeStage;
public TestCompositeOneStage firstCompositeStage;
public TestCompositeTwoStage secondCompositeStage;
public TestNestingCompositeStage() {
firstCompositeStage = new TestCompositeStage();
secondCompositeStage = new TestCompositeStage();
connectPorts(firstCompositeStage.secondCounter.getOutputPort(), secondCompositeStage.firstCounter.getInputPort());
firstCompositeStage = new TestCompositeOneStage();
secondCompositeStage = new TestCompositeTwoStage();
connectPorts(firstCompositeStage.firstCounter.getOutputPort(), secondCompositeStage.firstCounter.getInputPort());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment