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 addressat
and an optionalformat
.- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_FORMAT
Thesimple
format is the defaultformat
value.static String
DEFAULT_TO
Theconsole
is the defaultto
value.
-
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 String
getFormat()
String
getTo()
ReportOptions
setFormat(String format)
Set the current reporter format.ReportOptions
setTo(String to)
Set the current reporter name.JsonObject
toJson()
-
-
-
Field Detail
-
DEFAULT_TO
public static final String DEFAULT_TO
Theconsole
is the defaultto
value.- See Also:
- Constant Field Values
-
DEFAULT_FORMAT
public static final String DEFAULT_FORMAT
Thesimple
format is the defaultformat
value.- 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()
-
-