Package io.vertx.ext.unit.report
Class ReportOptions
- java.lang.Object
-
- io.vertx.ext.unit.report.ReportOptions
-
public class ReportOptions extends Object
Configures a reporter consisting in a nameto, an addressatand an optionalformat.- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_FORMATThesimpleformat is the defaultformatvalue.static StringDEFAULT_TOTheconsoleis the defaulttovalue.
-
Constructor Summary
Constructors Constructor Description ReportOptions()ReportOptions(JsonObject json)ReportOptions(ReportOptions other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFormat()StringgetTo()ReportOptionssetFormat(String format)Set the current reporter format.ReportOptionssetTo(String to)Set the current reporter name.JsonObjecttoJson()
-
-
-
Field Detail
-
DEFAULT_TO
public static final String DEFAULT_TO
Theconsoleis the defaulttovalue.- See Also:
- Constant Field Values
-
DEFAULT_FORMAT
public static final String DEFAULT_FORMAT
Thesimpleformat is the defaultformatvalue.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReportOptions
public ReportOptions()
-
ReportOptions
public ReportOptions(ReportOptions other)
-
ReportOptions
public ReportOptions(JsonObject json)
-
-
Method Detail
-
getTo
public String getTo()
- Returns:
- the current reporter name
-
setTo
public ReportOptions setTo(String to)
Set the current reporter name.- Parameters:
to- the new reporter name- Returns:
- a reference to this, so the API can be used fluently
-
getFormat
public String getFormat()
- Returns:
- the current reporter format
-
setFormat
public ReportOptions setFormat(String format)
Set the current reporter format.- Parameters:
format- the format- Returns:
- a reference to this, so the API can be used fluently a
-
toJson
public JsonObject toJson()
-
-