Class ReportingOptions
java.lang.Object
io.vertx.ext.unit.report.ReportingOptions
- Direct Known Subclasses:
TestOptions
Reporting options:
- the
reportersis an array of reporter configurations
- Author:
- Julien Viet
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new empty options, with the default address out and no reporters.ReportingOptions(JsonObject json) Create a new options from the specified json.ReportingOptions(ReportingOptions other) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionaddReporter(ReportOptions reportOptions) Add a reporter to the current list.setReporters(List<ReportOptions> reporters) Replace the current list of reporters with a new one.toJson()
-
Constructor Details
-
ReportingOptions
public ReportingOptions()Create a new empty options, with the default address out and no reporters. -
ReportingOptions
Copy constructor.- Parameters:
other- the options to copy
-
ReportingOptions
Create a new options from the specified json.- Parameters:
json- the json to create from
-
-
Method Details
-
getReporters
- Returns:
- the current reporters options
-
addReporter
Add a reporter to the current list.- Parameters:
reportOptions- the options of the reporter to use- Returns:
- a reference to this, so the API can be used fluently
-
setReporters
Replace the current list of reporters with a new one.- Parameters:
reporters- the new reporters- Returns:
- a reference to this, so the API can be used fluently
-
toJson
- Returns:
- the json modelling the current configuration
-