Class TestEnvironment.Receptacle<T>
java.lang.Object
org.reactivestreams.tck.TestEnvironment.Receptacle<T>
- Enclosing class:
TestEnvironment
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcomplete()voidexpectCompletion(long timeoutMillis, String errorMsg) <E extends Throwable>
EexpectError(Class<E> clazz, long timeoutMillis, String errorMsg) Deprecated.voidexpectNone(long withinMillis, String errorMsgPrefix) nextOrEndOfStream(long timeoutMillis, String errorMsg)
-
Method Details
-
add
-
complete
public void complete() -
next
- Throws:
InterruptedException
-
nextOrEndOfStream
public Optional<T> nextOrEndOfStream(long timeoutMillis, String errorMsg) throws InterruptedException - Throws:
InterruptedException
-
nextN
public List<T> nextN(long elements, long timeoutMillis, String errorMsg) throws InterruptedException - Parameters:
timeoutMillis- total timeout time for awaiting allelementsnumber of elements- Throws:
InterruptedException
-
expectCompletion
- Throws:
InterruptedException
-
expectError
-
expectNone
- Throws:
InterruptedException
-
expectError(Class, long, long, String).