Class StepVerifiers
java.lang.Object
io.servicetalk.concurrent.api.test.StepVerifiers
Factory for the first steps that lead to
StepVerifier
test utility to verify each step in the lifecycle of
asynchronous sources Publisher
, Single
, and Completable
.
The steps are typically from the perspective of a PublisherSource.Subscriber
's lifecycle.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFirstStep
create
(Completable source) Creates a newCompletableFirstStep
.static <T> PublisherFirstStep<T>
Creates a newPublisherFirstStep
.static <T> SingleFirstStep<T>
Creates a newSingleFirstStep
.static CompletableFirstStep
createForSource
(CompletableSource source) Creates a newCompletableFirstStep
.static <T> PublisherFirstStep<T>
createForSource
(PublisherSource<T> source) Creates a newPublisherFirstStep
.static <T> SingleFirstStep<T>
createForSource
(SingleSource<T> source) Creates a newSingleFirstStep
.
-
Method Details
-
create
Creates a newPublisherFirstStep
.- Type Parameters:
T
- The type ofPublisher
.- Parameters:
source
- ThePublisher
to verify.- Returns:
- A
PublisherFirstStep
that can be used to verifysource
's signal emission(s).
-
createForSource
Creates a newPublisherFirstStep
.- Type Parameters:
T
- The type ofPublisherSource
.- Parameters:
source
- ThePublisherSource
to verify.- Returns:
- A
PublisherFirstStep
that can be used to verifysource
's signal emission(s).
-
create
Creates a newSingleFirstStep
.- Type Parameters:
T
- The type ofSingle
.- Parameters:
source
- TheSingle
to verify.- Returns:
- A
SingleFirstStep
that can be used to verifysource
's signal emission(s).
-
createForSource
Creates a newSingleFirstStep
.- Type Parameters:
T
- The type ofSingleSource
.- Parameters:
source
- TheSingleSource
to verify.- Returns:
- A
SingleFirstStep
that can be used to verifysource
's signal emission(s).
-
create
Creates a newCompletableFirstStep
.- Parameters:
source
- TheCompletable
to verify.- Returns:
- A
CompletableFirstStep
that can be used to verifysource
's signal emission(s).
-
createForSource
Creates a newCompletableFirstStep
.- Parameters:
source
- TheCompletableSource
to verify.- Returns:
- A
CompletableFirstStep
that can be used to verifysource
's signal emission(s).
-