Let the stage test DSL return a result object
-
Update wiki to show more than one output port https://build.se.informatik.uni-kiel.de/teetime/teetime/wikis/Writing-a-Unit-Test-for-a-Stage -
Remove receive
andfrom
. Replace them by the a new result object. -
Find an approach to assert a stage with less writing:
Example:
assertThat(testResult.getElementsFrom(producer.getOutputPort()), contains(1, 2, 3));
assertThat(producer.getOutputPort(), hasProduced(1, 2, 3)); // recommended! (requires to store data in output port)
assertThat(testResult, contains(1, 2, 3).for(producer.getOutputPort()));