Package io.vertx.ext.unit.report
Interface TestSuiteReport
-
- All Superinterfaces:
ReadStream<TestCaseReport>,StreamBase
public interface TestSuiteReport extends ReadStream<TestCaseReport>
The test suite reports is basically a stream of events reporting the test suite execution.- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TestSuiteReportendHandler(Handler<Void> endHandler)Set an end handler.TestSuiteReportexceptionHandler(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.TestSuiteReporthandler(Handler<TestCaseReport> handler)Set a data handler.Stringname()TestSuiteReportpause()Pause theReadStream, it sets the buffer infetchmode and clears the actual demand.TestSuiteReportresume()Resume reading, and sets the buffer inflowingmode.-
Methods inherited from interface io.vertx.core.streams.ReadStream
blockingStream, collect, fetch, pipe, pipeTo
-
-
-
-
Method Detail
-
name
String name()
- Returns:
- the test suite name
-
exceptionHandler
TestSuiteReport 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.- 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
TestSuiteReport handler(Handler<TestCaseReport> 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
TestSuiteReport endHandler(Handler<Void> 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
-
-