Class Verifiers
- java.lang.Object
-
- io.servicetalk.concurrent.api.test.Verifiers
-
public final class Verifiers extends java.lang.Object
Factory for the first steps that lead toStepVerifier
test utility to verify each step in the lifecycle of asynchronous sourcesPublisher
,Single
, andCompletable
.The steps are typically from the perspective of a
PublisherSource.Subscriber
's lifecycle.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompletableFirstStep
stepVerifier(Completable source)
Create a newCompletableFirstStep
.static <T> PublisherFirstStep<T>
stepVerifier(Publisher<T> source)
Create a newPublisherFirstStep
.static <T> SingleFirstStep<T>
stepVerifier(Single<T> source)
Create a newSingleFirstStep
.static CompletableFirstStep
stepVerifierForSource(CompletableSource source)
Create a newCompletableFirstStep
.static <T> PublisherFirstStep<T>
stepVerifierForSource(PublisherSource<T> source)
Create a newPublisherFirstStep
.static <T> SingleFirstStep<T>
stepVerifierForSource(SingleSource<T> source)
Create a newSingleFirstStep
.
-
-
-
Method Detail
-
stepVerifier
public static <T> PublisherFirstStep<T> stepVerifier(Publisher<T> source)
Create 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).
-
stepVerifierForSource
public static <T> PublisherFirstStep<T> stepVerifierForSource(PublisherSource<T> source)
Create 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).
-
stepVerifier
public static <T> SingleFirstStep<T> stepVerifier(Single<T> source)
Create 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).
-
stepVerifierForSource
public static <T> SingleFirstStep<T> stepVerifierForSource(SingleSource<T> source)
Create 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).
-
stepVerifier
public static CompletableFirstStep stepVerifier(Completable source)
Create a newCompletableFirstStep
.- Parameters:
source
- TheCompletable
to verify.- Returns:
- A
CompletableFirstStep
that can be used to verifysource
's signal emission(s).
-
stepVerifierForSource
public static CompletableFirstStep stepVerifierForSource(CompletableSource source)
Create a newCompletableFirstStep
.- Parameters:
source
- TheCompletableSource
to verify.- Returns:
- A
CompletableFirstStep
that can be used to verifysource
's signal emission(s).
-
-