- addReporter(ReportOptions) - Method in class io.vertx.ext.unit.report.ReportingOptions
-
Add a reporter to the current list.
- addReporter(ReportOptions) - Method in class io.vertx.ext.unit.TestOptions
-
- after(Handler<TestContext>) - Method in interface io.vertx.ext.unit.TestSuite
-
Set a callback executed after the tests.
- afterEach(Handler<TestContext>) - Method in interface io.vertx.ext.unit.TestSuite
-
Set a callback executed after each test and before the suite after
callback.
- apply(Statement, Description) - Method in class io.vertx.ext.unit.junit.RepeatRule
-
- apply(Statement, Description) - Method in class io.vertx.ext.unit.junit.RunTestOnContext
-
- apply(Statement, Description) - Method in class io.vertx.ext.unit.junit.Timeout
-
- asMessageHandler() - Method in interface io.vertx.ext.unit.collect.EventBusCollector
-
- assertEquals(Object, Object) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the expected
argument is equals to the actual
argument.
- assertEquals(Object, Object, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the expected
argument is equals to the actual
argument.
- assertFalse(boolean) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the specified condition
is false
.
- assertFalse(boolean, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the specified condition
is false
.
- assertInRange(double, double, double) - Method in interface io.vertx.ext.unit.TestContext
-
Asserts that the expected
double argument is equals to the actual
double argument
within a positive delta.
- assertInRange(double, double, double, String) - Method in interface io.vertx.ext.unit.TestContext
-
Asserts that the expected
double argument is equals to the actual
double argument
within a positive delta.
- assertNotEquals(Object, Object) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the first
argument is not equals to the second
argument.
- assertNotEquals(Object, Object, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the first
argument is not equals to the second
argument.
- assertNotNull(Object) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the expected
argument is not null
.
- assertNotNull(Object, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the expected
argument is not null
.
- assertNull(Object) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the expected
argument is null
.
- assertNull(Object, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the expected
argument is null
.
- assertTrue(boolean) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the specified condition
is true
.
- assertTrue(boolean, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the specified condition
is true
.
- Async - Interface in io.vertx.ext.unit
-
An asynchronous exit point for a test.
- async() - Method in interface io.vertx.ext.unit.TestContext
-
Create and returns a new async object, the returned async controls the completion of the test.
- async(int) - Method in interface io.vertx.ext.unit.TestContext
-
Create and returns a new async object, the returned async controls the completion of the test.
- asyncAssertFailure() - Method in interface io.vertx.ext.unit.TestContext
-
Creates and returns a new async handler, the returned handler controls the completion of the test.
When the returned handler is called back with a failed result it completes the async operation.
When the returned handler is called back with a succeeded result it fails the test.
- asyncAssertFailure(Handler<Throwable>) - Method in interface io.vertx.ext.unit.TestContext
-
Creates and returns a new async handler, the returned handler controls the completion of the test.
When the returned handler is called back with a failed result it completes the async operation.
When the returned handler is called back with a succeeded result it fails the test.
- asyncAssertSuccess() - Method in interface io.vertx.ext.unit.TestContext
-
Creates and returns a new async handler, the returned handler controls the completion of the test.
When the returned handler is called back with a succeeded result it completes the async operation.
When the returned handler is called back with a failed result it fails the test with the cause of the failure.
- asyncAssertSuccess(Handler<T>) - Method in interface io.vertx.ext.unit.TestContext
-
Creates and returns a new async handler, the returned handler controls the completion of the test.
When the returned handler is called back with a succeeded result it invokes the
resultHandler
argument
with the async result.
- await() - Method in interface io.vertx.ext.unit.Completion
-
Cause the current thread to wait until this completion completes.
If the current thread is interrupted, an exception will be thrown.
- await(long) - Method in interface io.vertx.ext.unit.Completion
-
Cause the current thread to wait until this completion completes with a configurable timeout.
If completion times out or the current thread is interrupted, an exception will be thrown.
- awaitSuccess() - Method in interface io.vertx.ext.unit.Completion
-
Cause the current thread to wait until this completion completes and succeeds.
If the current thread is interrupted or the suite fails, an exception will be thrown.
- awaitSuccess(long) - Method in interface io.vertx.ext.unit.Completion
-
Cause the current thread to wait until this completion completes and succeeds with a configurable timeout.
If completion times out or the current thread is interrupted or the suite fails, an exception will be thrown.
- awaitSuccess() - Method in interface io.vertx.ext.unit.TestCase
-
Assert the test case passes and block until it is executed.
- awaitSuccess(long, TimeUnit) - Method in interface io.vertx.ext.unit.TestCase
-
Assert the test case passes and block until it is executed.
- awaitSuccess(Vertx) - Method in interface io.vertx.ext.unit.TestCase
-
Assert the test case passes and block until it is executed.
- awaitSuccess(Vertx, long, TimeUnit) - Method in interface io.vertx.ext.unit.TestCase
-
Assert the test case passes and block until it is executed.
- endHandler(Handler<TestResult>) - Method in interface io.vertx.ext.unit.report.TestCaseReport
-
Set a callback for completion, the specified handler
is invoked when the test exec has completed.
- endHandler(Handler<Void>) - Method in interface io.vertx.ext.unit.report.TestSuiteReport
-
- EVENT_TEST_CASE_BEGIN - Static variable in interface io.vertx.ext.unit.collect.EventBusCollector
-
Json type
field value that signals a test case begins, used as part of the test reporting
protocol for the event bus.
- EVENT_TEST_CASE_END - Static variable in interface io.vertx.ext.unit.collect.EventBusCollector
-
Json type
field value that signals a test case ends, used as part of the test reporting
protocol for the event bus.
- EVENT_TEST_SUITE_BEGIN - Static variable in interface io.vertx.ext.unit.collect.EventBusCollector
-
Json type
field value that signals a test suite begins, used as part of the test reporting
protocol for the event bus.
- EVENT_TEST_SUITE_END - Static variable in interface io.vertx.ext.unit.collect.EventBusCollector
-
Json type
field value that signals a test suite ends, used as part of the test reporting
protocol for the event bus.
- EVENT_TEST_SUITE_ERROR - Static variable in interface io.vertx.ext.unit.collect.EventBusCollector
-
Json type
field value that reports a test suite error, used as part of the test reporting
protocol for the event bus.
- EventBusCollector - Interface in io.vertx.ext.unit.collect
-
The event bus collector listen to events on the Vert.x event bus and translate them
into reports.
- exceptionHandler(Handler<Throwable>) - Method in interface io.vertx.ext.unit.report.TestSuiteReport
-
Set an exception handler, the exception handler reports the test suite errors, it can be called mulitple
times before the test ends.
- exceptionHandler() - Method in interface io.vertx.ext.unit.TestContext
-
- register(String) - Method in interface io.vertx.ext.unit.collect.EventBusCollector
-
Register the collector as a consumer of the event bus with the specified address.
- remove(String) - Method in interface io.vertx.ext.unit.TestContext
-
Remove some data from the context.
- Repeat - Annotation Type in io.vertx.ext.unit.junit
-
Annotates a test method to repeat this test several times.
- RepeatRule - Class in io.vertx.ext.unit.junit
-
- RepeatRule() - Constructor for class io.vertx.ext.unit.junit.RepeatRule
-
- reportBeginTestCase(R, String) - Method in interface io.vertx.ext.unit.report.Reporter
-
Signals a test case began.
- reportBeginTestSuite(String) - Method in interface io.vertx.ext.unit.report.Reporter
-
Signals the test suite began.
- reportEndTestCase(R, String, TestResult) - Method in interface io.vertx.ext.unit.report.Reporter
-
Signals a test case ended.
- reportEndTestSuite(R) - Method in interface io.vertx.ext.unit.report.Reporter
-
Signals a test suite ended.
- Reporter<R> - Interface in io.vertx.ext.unit.report
-
The reporter defines a set of callback for the life cycle events.
- reporter(Vertx, ReportOptions) - Static method in interface io.vertx.ext.unit.report.Reporter
-
- reporter(Vertx, ReportOptions) - Method in interface io.vertx.ext.unit.report.ReporterFactory
-
- ReporterFactory - Interface in io.vertx.ext.unit.report
-
- reportError(R, Throwable) - Method in interface io.vertx.ext.unit.report.Reporter
-
- ReportingOptions - Class in io.vertx.ext.unit.report
-
Reporting options:
the reporters
is an array of reporter configurations
- ReportingOptions() - Constructor for class io.vertx.ext.unit.report.ReportingOptions
-
Create a new empty options, with the default address out and no reporters.
- ReportingOptions(ReportingOptions) - Constructor for class io.vertx.ext.unit.report.ReportingOptions
-
Copy constructor.
- ReportingOptions(JsonObject) - Constructor for class io.vertx.ext.unit.report.ReportingOptions
-
Create a new options from the specified json.
- ReportingOptionsConverter - Class in io.vertx.ext.unit.report
-
- ReportingOptionsConverter() - Constructor for class io.vertx.ext.unit.report.ReportingOptionsConverter
-
- ReportOptions - Class in io.vertx.ext.unit.report
-
Configures a reporter consisting in a name to
, an address at
and an optional format
.
- ReportOptions() - Constructor for class io.vertx.ext.unit.report.ReportOptions
-
- ReportOptions(ReportOptions) - Constructor for class io.vertx.ext.unit.report.ReportOptions
-
- ReportOptions(JsonObject) - Constructor for class io.vertx.ext.unit.report.ReportOptions
-
- ReportOptionsConverter - Class in io.vertx.ext.unit.report
-
- ReportOptionsConverter() - Constructor for class io.vertx.ext.unit.report.ReportOptionsConverter
-
- resolve(Future<T>) - Method in interface io.vertx.ext.unit.Completion
-
Completes the future upon completion, otherwise fails it.
- resume() - Method in interface io.vertx.ext.unit.report.TestSuiteReport
-
- run() - Method in interface io.vertx.ext.unit.TestSuite
-
Run the testsuite with the default options.
When the test suite is executed in a Vertx context (i.e `Vertx.currentContext()` returns a context) this
context's event loop is used for running the test suite.
- run(TestOptions) - Method in interface io.vertx.ext.unit.TestSuite
-
Run the testsuite with the specified
options
.
When the test suite is executed in a Vertx context (i.e `Vertx.currentContext()` returns a context) this
context's event loop is used for running the test suite unless the
TestOptions.setUseEventLoop(Boolean)
is set to
false
.
- run(Vertx) - Method in interface io.vertx.ext.unit.TestSuite
-
Run the testsuite with the default options and the specified
vertx
instance.
The test suite will be executed on the event loop provided by the
vertx
argument.
- run(Vertx, TestOptions) - Method in interface io.vertx.ext.unit.TestSuite
-
Run the testsuite with the specified
options
and the specified
vertx
instance.
The test suite will be executed on the event loop provided by the
vertx
argument when
TestOptions.setUseEventLoop(Boolean)
is not set to
false
.
- RunTestOnContext - Class in io.vertx.ext.unit.junit
-
A JUnit rule that runs tests on a Vert.x context.
When used as a
Rule
a new context is created for each tested method, the context will be same
for the before and after method, but different for all the tested methods.
When used as a
ClassRule
, a single context is created for all the tested method, the
beforeClass
and
afterClass method will also executed in this context.
- RunTestOnContext() - Constructor for class io.vertx.ext.unit.junit.RunTestOnContext
-
Create a new rule managing a Vertx instance created with default options.
- RunTestOnContext(VertxOptions) - Constructor for class io.vertx.ext.unit.junit.RunTestOnContext
-
Create a new rule managing a Vertx instance created with specified options.
- RunTestOnContext(Supplier<Vertx>, BiConsumer<Vertx, Consumer<Void>>) - Constructor for class io.vertx.ext.unit.junit.RunTestOnContext
-
Create a new rule with supplier/consumer for creating/closing a Vert.x instance.
- RunTestOnContext(Supplier<Vertx>) - Constructor for class io.vertx.ext.unit.junit.RunTestOnContext
-
Create a new rule with supplier for creating a Vert.x instance.
- test(String, Handler<TestContext>) - Method in interface io.vertx.ext.unit.TestSuite
-
Add a new test case to the suite.
- test(String, int, Handler<TestContext>) - Method in interface io.vertx.ext.unit.TestSuite
-
Add a new test case to the suite.
- TestCase - Interface in io.vertx.ext.unit
-
A test case object can be used to create a single test.
- TestCaseReport - Interface in io.vertx.ext.unit.report
-
Report the execution of a test case.
- TestCompletion - Interface in io.vertx.ext.unit
-
This object provides callback-ability for the end of a test suite, the completion succeeds
when all tests pass otherwise it fails.
- TestContext - Interface in io.vertx.ext.unit
-
The test context is used for performing test assertions and manage the completion of the test.
- testName(FrameworkMethod) - Method in class io.vertx.ext.unit.junit.VertxUnitRunnerWithParameters
-
- TestOptions - Class in io.vertx.ext.unit
-
Test execution options:
the timeout
in milliseconds, the default value is 2 minutes
the useEventLoop
configures the event loop usage
true
always runs with an event loop
false
never runs with an event loop
null
uses an event loop if there is one (provided by Vertx.currentContext()
)
otherwise run without
the reporters
is an array of reporter configurations
- TestOptions() - Constructor for class io.vertx.ext.unit.TestOptions
-
Create a new empty options, with the default time out and no reporters.
- TestOptions(TestOptions) - Constructor for class io.vertx.ext.unit.TestOptions
-
Copy constructor.
- TestOptions(JsonObject) - Constructor for class io.vertx.ext.unit.TestOptions
-
Create a new options from the specified json.
- TestOptionsConverter - Class in io.vertx.ext.unit
-
- TestOptionsConverter() - Constructor for class io.vertx.ext.unit.TestOptionsConverter
-
- TestResult - Interface in io.vertx.ext.unit.report
-
The result of a test.
- TestSuite - Interface in io.vertx.ext.unit
-
A named suite of test cases that are executed altogether.
- TestSuiteReport - Interface in io.vertx.ext.unit.report
-
The test suite reports is basically a stream of events reporting the test suite execution.
- Timeout - Class in io.vertx.ext.unit.junit
-
A rule for configuring the tests timeout.
- Timeout(long, TimeUnit) - Constructor for class io.vertx.ext.unit.junit.Timeout
-
- toJson() - Method in class io.vertx.ext.unit.report.ReportingOptions
-
- toJson(ReportingOptions, JsonObject) - Static method in class io.vertx.ext.unit.report.ReportingOptionsConverter
-
- toJson() - Method in class io.vertx.ext.unit.report.ReportOptions
-
- toJson(ReportOptions, JsonObject) - Static method in class io.vertx.ext.unit.report.ReportOptionsConverter
-
- toJson() - Method in class io.vertx.ext.unit.TestOptions
-
- toJson(TestOptions, JsonObject) - Static method in class io.vertx.ext.unit.TestOptionsConverter
-