public class TestOptions extends ReportingOptions
timeout in milliseconds, the default value is 2 minutes useEventLooptrue always runs with an event loopfalse never runs with an event loopnull uses an event loop if there is one (provided by Vertx.currentContext())
otherwise run withoutreporters is an array of reporter configurations| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT
The default time out value in milliseconds: 2 minutes.
|
static Boolean |
DEFAULT_USE_EVENT_LOOP
The default value for using or not the event loop:
null. |
| Constructor and Description |
|---|
TestOptions()
Create a new empty options, with the default time out and no reporters.
|
TestOptions(JsonObject json)
Create a new options from the specified json.
|
TestOptions(TestOptions other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TestOptions |
addReporter(ReportOptions reportOptions)
Add a reporter to the current list.
|
long |
getTimeout() |
Boolean |
isUseEventLoop() |
TestOptions |
setReporters(List<ReportOptions> reporters)
Replace the current list of reporters with a new one.
|
TestOptions |
setTimeout(long timeout)
Set the test timeout.
|
TestOptions |
setUseEventLoop(Boolean useEventLoop)
Configure the execution to use an event loop when there is no one existing.
|
JsonObject |
toJson() |
getReporterspublic static final long DEFAULT_TIMEOUT
public static final Boolean DEFAULT_USE_EVENT_LOOP
null.public TestOptions()
public TestOptions(TestOptions other)
other - the options to copypublic TestOptions(JsonObject json)
json - the json to create frompublic long getTimeout()
public TestOptions setTimeout(long timeout)
timeout - the timeout value in milliseconds.public Boolean isUseEventLoop()
public TestOptions setUseEventLoop(Boolean useEventLoop)
useEventLoop - the even loop usagepublic TestOptions addReporter(ReportOptions reportOptions)
ReportingOptionsaddReporter in class ReportingOptionsreportOptions - the options of the reporter to usepublic TestOptions setReporters(List<ReportOptions> reporters)
ReportingOptionssetReporters in class ReportingOptionsreporters - the new reporterspublic JsonObject toJson()
toJson in class ReportingOptionsCopyright © 2021 Eclipse. All rights reserved.