Package org.testfx.framework.junit5
Class JavaFXInterceptorUtils
- java.lang.Object
-
- org.testfx.framework.junit5.JavaFXInterceptorUtils
-
public class JavaFXInterceptorUtils extends java.lang.ObjectSimple JUnit 5 extension to ensure that@Teststatements are executed in the JavaFX UI thread. This is (strictly) necessary when testing setter and/or getter methods of JavaFX classes (ie. Node derived, properties etc).Use the
@ExtendWith(avaFxInterceptor.class)if all @Test, or@ExtendWith(SelectiveJavaFxInterceptor.class)if only @Test + @TestFx annotated tests
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJavaFXInterceptorUtils.JavaFxInterceptorSimple JUnit 5 extension to ensure that@Teststatements are executed in the JavaFX UI thread.static classJavaFXInterceptorUtils.SelectiveJavaFxInterceptorSimple JUnit 5 extension to ensure that@Teststatements are executed in the JavaFX UI thread.
-
Constructor Summary
Constructors Constructor Description JavaFXInterceptorUtils()
-