Class ReportingOptions

java.lang.Object
io.vertx.ext.unit.report.ReportingOptions
Direct Known Subclasses:
TestOptions

public class ReportingOptions extends Object
Reporting options:
  • the reporters is an array of reporter configurations
Author:
Julien Viet
  • Constructor Details

    • ReportingOptions

      public ReportingOptions()
      Create a new empty options, with the default address out and no reporters.
    • ReportingOptions

      public ReportingOptions(ReportingOptions other)
      Copy constructor.
      Parameters:
      other - the options to copy
    • ReportingOptions

      public ReportingOptions(JsonObject json)
      Create a new options from the specified json.
      Parameters:
      json - the json to create from
  • Method Details

    • getReporters

      public List<ReportOptions> getReporters()
      Returns:
      the current reporters options
    • addReporter

      public ReportingOptions addReporter(ReportOptions reportOptions)
      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

      public ReportingOptions setReporters(List<ReportOptions> reporters)
      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

      public JsonObject toJson()
      Returns:
      the json modelling the current configuration