Same test cases could be executed repeatedly
xjj59307 opened this issue · 0 comments
xjj59307 commented
@ParameterSource
public Parameter.Simple.Factory<Boolean> first() {
return Parameter.Simple.Factory.of(Arrays.asList(true, false));
}
@ParameterSource
public Parameter.Simple.Factory<Boolean> second() {
return Parameter.Simple.Factory.of(Arrays.asList(true, false));
}
@Condition
public boolean condition(@From("first") Boolean first) {
return first;
}
@Test
@Given({ "condition" })
public void main(@From("first") Boolean first) throws Exception {
System.out.println(first);
}
The above code would output true twice, while we are expecting only once.