程序包 | 说明 |
---|---|
reactor.test |
Main test components supporting the testing and assertion of publishers.
|
reactor.test.scheduler |
Components supporting the creation of test-oriented
Schedulers . |
限定符和类型 | 方法和说明 |
---|---|
java.util.function.Supplier<? extends VirtualTimeScheduler> |
StepVerifierOptions.getVirtualTimeSchedulerSupplier() |
限定符和类型 | 方法和说明 |
---|---|
StepVerifierOptions |
StepVerifierOptions.virtualTimeSchedulerSupplier(java.util.function.Supplier<? extends VirtualTimeScheduler> vtsLookup)
Set a supplier for a
VirtualTimeScheduler , which is mandatory for a
StepVerifier to work with virtual time. |
static <T> StepVerifier.FirstStep<T> |
StepVerifier.withVirtualTime(java.util.function.Supplier<? extends org.reactivestreams.Publisher<? extends T>> scenarioSupplier,
java.util.function.Supplier<? extends VirtualTimeScheduler> vtsLookup,
long n)
Prepare a new
StepVerifier in a controlled environment using
a user-provided VirtualTimeScheduler to manipulate a virtual clock via
StepVerifier.Step.thenAwait() . |
限定符和类型 | 方法和说明 |
---|---|
static VirtualTimeScheduler |
VirtualTimeScheduler.create()
Create a new
VirtualTimeScheduler without enabling it. |
static VirtualTimeScheduler |
VirtualTimeScheduler.create(boolean defer)
Create a new
VirtualTimeScheduler without enabling it. |
static VirtualTimeScheduler |
VirtualTimeScheduler.get()
The current
VirtualTimeScheduler assigned in Schedulers |
static VirtualTimeScheduler |
VirtualTimeScheduler.getOrSet()
Assign a newly created
VirtualTimeScheduler to all Schedulers.Factory
factories ONLY if no VirtualTimeScheduler is currently set. |
static VirtualTimeScheduler |
VirtualTimeScheduler.getOrSet(boolean defer)
Assign a newly created
VirtualTimeScheduler to all Schedulers.Factory
factories ONLY if no VirtualTimeScheduler is currently set. |
static VirtualTimeScheduler |
VirtualTimeScheduler.getOrSet(VirtualTimeScheduler scheduler)
Assign an externally created
VirtualTimeScheduler to the relevant
Schedulers.Factory factories, depending on how it was created (see
create() and create() ). |
static VirtualTimeScheduler |
VirtualTimeScheduler.set(VirtualTimeScheduler scheduler)
Assign an externally created
VirtualTimeScheduler to the relevant
Schedulers.Factory factories, depending on how it was created (see
create() and create() ). |
限定符和类型 | 方法和说明 |
---|---|
static VirtualTimeScheduler |
VirtualTimeScheduler.getOrSet(VirtualTimeScheduler scheduler)
Assign an externally created
VirtualTimeScheduler to the relevant
Schedulers.Factory factories, depending on how it was created (see
create() and create() ). |
static VirtualTimeScheduler |
VirtualTimeScheduler.set(VirtualTimeScheduler scheduler)
Assign an externally created
VirtualTimeScheduler to the relevant
Schedulers.Factory factories, depending on how it was created (see
create() and create() ). |