Interface TestSuiteReport
- All Superinterfaces:
ReadStream<TestCaseReport>, StreamBase
The test suite reports is basically a stream of events reporting the test suite execution.
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionendHandler(Handler<Void> endHandler) Set an end handler.exceptionHandler(Handler<Throwable> handler) Set an exception handler, the exception handler reports the test suite errors, it can be called mulitple times before the test ends.handler(Handler<TestCaseReport> handler) Set a data handler.name()pause()Pause theReadStream, it sets the buffer infetchmode and clears the actual demand.resume()Resume reading, and sets the buffer inflowingmode.Methods inherited from interface ReadStream
blockingStream, collect, fetch, pipe, pipeTo
-
Method Details
-
name
String name()- Returns:
- the test suite name
-
exceptionHandler
Set an exception handler, the exception handler reports the test suite errors, it can be called mulitple times before the test ends.- Specified by:
exceptionHandlerin interfaceReadStream<TestCaseReport>- Specified by:
exceptionHandlerin interfaceStreamBase- Parameters:
handler- the exception handler- Returns:
- a reference to this, so the API can be used fluently
-
handler
Description copied from interface:ReadStreamSet a data handler. As data is read, the handler will be called with the data.- Specified by:
handlerin interfaceReadStream<TestCaseReport>- Returns:
- a reference to this, so the API can be used fluently
-
pause
TestSuiteReport pause()Description copied from interface:ReadStreamPause theReadStream, it sets the buffer infetchmode and clears the actual demand.While it's paused, no data will be sent to the data
handler.- Specified by:
pausein interfaceReadStream<TestCaseReport>- Returns:
- a reference to this, so the API can be used fluently
-
resume
TestSuiteReport resume()Description copied from interface:ReadStreamResume reading, and sets the buffer inflowingmode. If theReadStreamhas been paused, reading will recommence on it.- Specified by:
resumein interfaceReadStream<TestCaseReport>- Returns:
- a reference to this, so the API can be used fluently
-
endHandler
Description copied from interface:ReadStreamSet an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.- Specified by:
endHandlerin interfaceReadStream<TestCaseReport>- Returns:
- a reference to this, so the API can be used fluently
-