public abstract class AbstractJavaFXTest extends Object
testLater
and testOnMainThreadLater
method can be used to do this. Note
that these methods queue the runnables in a single queue and then are served in FIFO
order. After a runnable is queued, all code, which should be executed after the runnable,
also should be queued. All queued runnables are execute one by one with the specified
delay between them. Currently, there are two choices - to execute a runnable on the JavaFX
thread, or on the main thread.Modifier and Type | Field and Description |
---|---|
JavaFXThreadingRule |
mJfxRule |
Constructor and Description |
---|
AbstractJavaFXTest() |
Modifier and Type | Method and Description |
---|---|
void |
testLater(int pRetryCount,
long pRetryDelayMillis,
BooleanSupplier pSuccess)
This method can be used to wait for a condition to become
true by specifying a
number of retries, before giving up, and a delay in milliseconds between retries. |
void |
testLater(long pDelayMillis,
Testable pRunnable)
Queues the specified runnable to be run on the JavaFX UI thread.
|
void |
testLater(Testable pRunnable)
Queues the specified runnable to be run on the JavaFX UI thread.
|
void |
testOnMainThreadLater(long pDelayMillis,
Testable pRunnable)
Queues the specified runnable to be run on the main thread, instead of on the JavaFX
UI thread.
|
void |
testOnMainThreadLater(Testable pRunnable)
Queues the specified runnable to be run on the main thread, instead of on the JavaFX
UI thread.
|
public JavaFXThreadingRule mJfxRule
public void testLater(Testable pRunnable)
public void testLater(long pDelayMillis, Testable pRunnable)
public void testLater(int pRetryCount, long pRetryDelayMillis, BooleanSupplier pSuccess)
true
by specifying a
number of retries, before giving up, and a delay in milliseconds between retries. Note
that the conditions is first evaluated without delay (after it pops from the queue),
and after that the specified amount of retires is performed if needed.public void testOnMainThreadLater(Testable pRunnable)
public void testOnMainThreadLater(long pDelayMillis, Testable pRunnable)
Copyright © 2023. All rights reserved.