Assert the expected
argument is equals to the actual
argument. If the arguments are not equals
an assertion error is thrown otherwise the execution continue.
Assert the expected
argument is equals to the actual
argument. If the arguments are not equals
an assertion error is thrown otherwise the execution continue.
Assert the specified condition
is false
. If the condition is true
, an assertion error is thrown
otherwise the execution continue.
Assert the specified condition
is false
. If the condition is true
, an assertion error is thrown
otherwise the execution continue.
Asserts that the expected
double argument is equals to the actual
double argument
within a positive delta. If the arguments do not satisfy this, an assertion error is thrown otherwise
the execution continue.
Asserts that the expected
double argument is equals to the actual
double argument
within a positive delta. If the arguments do not satisfy this, an assertion error is thrown otherwise
the execution continue.
Assert the first
argument is not equals to the second
argument. If the arguments are equals
an assertion error is thrown otherwise the execution continue.
Assert the first
argument is not equals to the second
argument. If the arguments are equals
an assertion error is thrown otherwise the execution continue.
Assert the expected
argument is not null
. If the argument is null
, an assertion error is thrown
otherwise the execution continue.
Assert the expected
argument is not null
. If the argument is null
, an assertion error is thrown
otherwise the execution continue.
Assert the expected
argument is null
. If the argument is not, an assertion error is thrown
otherwise the execution continue.
Assert the expected
argument is null
. If the argument is not, an assertion error is thrown
otherwise the execution continue.
Assert the specified condition
is true
. If the condition is false
, an assertion error is thrown
otherwise the execution continue.
Assert the specified condition
is true
. If the condition is false
, an assertion error is thrown
otherwise the execution continue.
Create and returns a new async object, the returned async controls the completion of the test. Calling the {@link Async#complete} completes the async operation.
The test case will complete when all the async objects have their {@link Async#complete} method called at least once.
This method shall be used for creating asynchronous exit points for the executed test.
Create and returns a new async object, the returned async controls the completion of the test. This async operation
completes when the {@link Async#countDown} is called count
times.
The test case will complete when all the async objects have their {@link Async#complete} method called at least once.
This method shall be used for creating asynchronous exit points for the executed test.
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.
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.
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.
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. The test completes after the result handler is invoked and does not fails.
When the returned handler is called back with a failed result it fails the test with the cause of the failure.
Note that the result handler can create other async objects during its invocation that would postpone the completion of the test case until those objects are resolved.
Throw a failure.
Throw a failure with the specified failure message
.
Throw a failure with the specified failure cause
.
Get some data from the context.
Put some data in the context.
This can be used to share data between different tests and before/after phases.
Remove some data from the context.
Create and returns a new async object, the returned async controls the completion of the test.
This async operation completes when the {@link Async#countDown} is called count
times.
count
times, an IllegalStateException is thrown.
The test case will complete when all the async objects have their {@link Async#complete} method called at least once.
This method shall be used for creating asynchronous exit points for the executed test.
Execute the provided handler, which may contain assertions, possibly from any third-party assertion framework. Any AssertionError thrown will be caught (and propagated) in order to fulfill potential expected async completeness.
Generated using TypeDoc
The test context is used for performing test assertions and manage the completion of the test. This context is provided by vertx-unit as argument of the test case.