public class JavaFXThreadingInterceptor extends Object implements org.junit.jupiter.api.extension.InvocationInterceptor
InvocationInterceptor for running tests on the JavaFX thread.
To include in your test case, add the following code:
@@RegisterExtension final JavaFXThreadingInterceptor jfxInterceptor = new JavaFXThreadingInterceptor();
| Constructor and Description |
|---|
JavaFXThreadingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
interceptTestMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> pInvocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> pInvocationContext,
org.junit.jupiter.api.extension.ExtensionContext pExtensionContext) |
void |
testLater(int pRetryCount,
long pRetryDelayMillis,
BooleanSupplier pSuccess) |
void |
testLater(long pMillis,
Testable pRunnable) |
void |
testOnMainThreadLater(long pMillis,
Testable pRunnable) |
void |
testOnMainThreadLater(Testable pRunnable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinterceptAfterAllMethod, interceptAfterEachMethod, interceptBeforeAllMethod, interceptBeforeEachMethod, interceptDynamicTest, interceptDynamicTest, interceptTestClassConstructor, interceptTestFactoryMethod, interceptTestTemplateMethodpublic void interceptTestMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> pInvocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> pInvocationContext, org.junit.jupiter.api.extension.ExtensionContext pExtensionContext) throws Throwable
interceptTestMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorThrowablepublic void testLater(long pMillis,
Testable pRunnable)
public void testLater(int pRetryCount,
long pRetryDelayMillis,
BooleanSupplier pSuccess)
public void testOnMainThreadLater(Testable pRunnable)
public void testOnMainThreadLater(long pMillis,
Testable pRunnable)
Copyright © 2023. All rights reserved.