Commit 933725a4 authored by Christian Wulf's avatar Christian Wulf

fixed issue in the test framework

parent 48ad9288
......@@ -26,7 +26,7 @@ public final class InputHolder<I> {
private final AbstractStage stage;
private final Collection<I> input;
private InputPort<I> port;
private InputPort<? super I> port;
InputHolder(final StageTester stageTester, final AbstractStage stage, final Collection<I> input) {
this.stageTester = stageTester;
......@@ -34,7 +34,7 @@ public final class InputHolder<I> {
this.input = input;
}
public StageTester to(final InputPort<I> port) { // NOPMD deliberately chosen name
public StageTester to(final InputPort<? super I> port) { // NOPMD deliberately chosen name
if (port.getOwningStage() != stage) {
throw new AssertionError();
}
......@@ -47,7 +47,7 @@ public final class InputHolder<I> {
return input;
}
public InputPort<I> getPort() {
public InputPort<? super I> getPort() {
return port;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment