Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug FXUtils.assertJavaFxThread() fails when run in a parametrized unit test
FXUtils.assertJavaFxThread()
To Reproduce try these tests:
@ExtendWith(ApplicationExtension.class) @ExtendWith(JavaFxInterceptor.class) public class ParametrizedExampleTest { @Start public void start(Stage stage) { stage.setScene(new Scene(new StackPane(), 120, 200)); stage.show(); } @ParameterizedTest @ValueSource(booleans = {true, false}) public void test(boolean value) { FXUtils.assertJavaFxThread(); } }
@ExtendWith(ApplicationExtension.class) @ExtendWith(SelectiveJavaFxInterceptor.class) public class ParametrizedExampleTest { @Start public void start(Stage stage) { stage.setScene(new Scene(new StackPane(), 120, 200)); stage.show(); } @TestFx @ParameterizedTest @ValueSource(booleans = {true, false}) public void test(boolean value) { FXUtils.assertJavaFxThread(); } }
Environment:
The text was updated successfully, but these errors were encountered:
it is not a blocker so far but duplicating the test code doesn't look quite good when it could be done using @ParametrizedTest
Note also that in the second example @TestFx forces the test to run one extra time with ParameterResolutionException: No ParameterResolver registered
@TestFx
ParameterResolutionException: No ParameterResolver registered
Describe the bug
FXUtils.assertJavaFxThread()
fails when run in a parametrized unit testTo Reproduce
try these tests:
Environment:
The text was updated successfully, but these errors were encountered: