A B C D E F G H I M N P R S T V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- 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
aftercallback. - 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
expectedargument is equals to theactualargument. - assertEquals(Object, Object, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the
expectedargument is equals to theactualargument. - assertFalse(boolean) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the specified
conditionisfalse. - assertFalse(boolean, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the specified
conditionisfalse. - assertInRange(double, double, double) - Method in interface io.vertx.ext.unit.TestContext
-
Asserts that the
expecteddouble argument is equals to theactualdouble argument within a positive delta. - assertInRange(double, double, double, String) - Method in interface io.vertx.ext.unit.TestContext
-
Asserts that the
expecteddouble argument is equals to theactualdouble argument within a positive delta. - assertNotEquals(Object, Object) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the
firstargument is not equals to thesecondargument. - assertNotEquals(Object, Object, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the
firstargument is not equals to thesecondargument. - assertNotNull(Object) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the
expectedargument is notnull. - assertNotNull(Object, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the
expectedargument is notnull. - assertNull(Object) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the
expectedargument isnull. - assertNull(Object, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the
expectedargument isnull. - assertTrue(boolean) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the specified
conditionistrue. - assertTrue(boolean, String) - Method in interface io.vertx.ext.unit.TestContext
-
Assert the specified
conditionistrue. - 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.
- Async - Interface in io.vertx.ext.unit
-
An asynchronous exit point for a 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.
- 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.
- 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.
- 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.
- await() - Method in interface io.vertx.ext.unit.Completion
-
Cause the current thread to wait until this completion completes.
- await(long) - Method in interface io.vertx.ext.unit.Completion
-
Cause the current thread to wait until this completion completes with a configurable timeout.
- awaitSuccess() - Method in interface io.vertx.ext.unit.Completion
-
Cause the current thread to wait until this completion completes and succeeds.
- awaitSuccess() - Method in interface io.vertx.ext.unit.TestCase
-
Assert the test case passes and block until it is executed.
- 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.
- 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.
B
- before(Handler<TestContext>) - Method in interface io.vertx.ext.unit.TestSuite
-
Set a callback executed before the tests.
- beforeEach(Handler<TestContext>) - Method in interface io.vertx.ext.unit.TestSuite
-
Set a callback executed before each test and after the suite
beforecallback. - beginTime() - Method in interface io.vertx.ext.unit.report.TestResult
-
The time at which the test began in millis.
C
- cause() - Method in interface io.vertx.ext.unit.report.Failure
- classBlock(RunNotifier) - Method in class io.vertx.ext.unit.junit.VertxUnitRunnerWithParameters
- complete() - Method in interface io.vertx.ext.unit.Async
-
Signals the asynchronous operation is done, this method must be called with a count greater than
0, otherwise it throws anIllegalStateExceptionto signal the error. - Completion<T> - Interface in io.vertx.ext.unit
-
A completion object that emits completion notifications either succeeded or failed.
- count() - Method in interface io.vertx.ext.unit.Async
- countDown() - Method in interface io.vertx.ext.unit.Async
-
Count down the async.
- create(Vertx, Handler<TestSuiteReport>) - Static method in interface io.vertx.ext.unit.collect.EventBusCollector
- create(Vertx, ReportingOptions) - Static method in interface io.vertx.ext.unit.collect.EventBusCollector
-
Create a message handler reporting with the specified options.
- create(Object) - Static method in interface io.vertx.ext.unit.TestSuite
-
Create and return a new test suite configured after the
testSuiteObjectargument. - create(String) - Static method in interface io.vertx.ext.unit.TestSuite
-
Create and return a new test suite.
- create(String, Handler<TestContext>) - Static method in interface io.vertx.ext.unit.TestCase
-
Create a test case.
- createRunnerForTestWithParameters(TestWithParameters) - Method in class io.vertx.ext.unit.junit.VertxUnitRunnerWithParametersFactory
- createTest() - Method in class io.vertx.ext.unit.junit.VertxUnitRunnerWithParameters
D
- DEFAULT_FORMAT - Static variable in class io.vertx.ext.unit.report.ReportOptions
-
The
simpleformat is the defaultformatvalue. - DEFAULT_TIMEOUT - Static variable in class io.vertx.ext.unit.TestOptions
-
The default time out value in milliseconds: 2 minutes.
- DEFAULT_TO - Static variable in class io.vertx.ext.unit.report.ReportOptions
-
The
consoleis the defaulttovalue. - DEFAULT_USE_EVENT_LOOP - Static variable in class io.vertx.ext.unit.TestOptions
-
The default value for using or not the event loop:
null. - durationTime() - Method in interface io.vertx.ext.unit.report.TestResult
-
How long the test lasted in millis.
E
- endHandler(Handler<TestResult>) - Method in interface io.vertx.ext.unit.report.TestCaseReport
-
Set a callback for completion, the specified
handleris 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
typefield 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
typefield 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
typefield 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
typefield 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
typefield 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() - Method in interface io.vertx.ext.unit.TestContext
- 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.
F
- factory - Static variable in interface io.vertx.ext.unit.report.Reporter
- fail() - Method in interface io.vertx.ext.unit.TestContext
-
Throw a failure.
- fail(String) - Method in interface io.vertx.ext.unit.TestContext
-
Throw a failure with the specified failure
message. - fail(Throwable) - Method in interface io.vertx.ext.unit.TestContext
-
Throw a failure with the specified failure
cause. - failed() - Method in interface io.vertx.ext.unit.report.TestResult
-
Did it fail?
- failure() - Method in interface io.vertx.ext.unit.report.TestResult
-
An exception describing failure, null if the test succeeded.
- Failure - Interface in io.vertx.ext.unit.report
-
A failure provides the details of a failure that happened during the execution of a test case.
G
- get(String) - Method in interface io.vertx.ext.unit.TestContext
-
Get some data from the context.
- getFormat() - Method in class io.vertx.ext.unit.report.ReportOptions
- getName() - Method in class io.vertx.ext.unit.junit.VertxUnitRunnerWithParameters
- getReporters() - Method in class io.vertx.ext.unit.report.ReportingOptions
- getRunnerAnnotations() - Method in class io.vertx.ext.unit.junit.VertxUnitRunnerWithParameters
- getTimeout() - Method in class io.vertx.ext.unit.TestOptions
- getTo() - Method in class io.vertx.ext.unit.report.ReportOptions
H
- handler(Handler<AsyncResult<T>>) - Method in interface io.vertx.ext.unit.Completion
-
Completion handler to receive a completion signal when this completions completes.
- handler(Handler<TestCaseReport>) - Method in interface io.vertx.ext.unit.report.TestSuiteReport
I
- invokeTestMethod(FrameworkMethod, Object, TestContext) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- io.vertx.ext.unit - package io.vertx.ext.unit
- io.vertx.ext.unit.collect - package io.vertx.ext.unit.collect
- io.vertx.ext.unit.junit - package io.vertx.ext.unit.junit
- io.vertx.ext.unit.report - package io.vertx.ext.unit.report
- io.vertx.testing.unit - module io.vertx.testing.unit
- isCompleted() - Method in interface io.vertx.ext.unit.Completion
- isError() - Method in interface io.vertx.ext.unit.report.Failure
- isFailed() - Method in interface io.vertx.ext.unit.Completion
- isSucceeded() - Method in interface io.vertx.ext.unit.Completion
- isUseEventLoop() - Method in class io.vertx.ext.unit.TestOptions
M
- message() - Method in interface io.vertx.ext.unit.report.Failure
- methodBlock(FrameworkMethod) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- methodInvoker(FrameworkMethod, Object) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- millis(long) - Static method in class io.vertx.ext.unit.junit.Timeout
N
- name() - Method in interface io.vertx.ext.unit.report.TestCaseReport
- name() - Method in interface io.vertx.ext.unit.report.TestResult
-
The test description, may be null if none was provided.
- name() - Method in interface io.vertx.ext.unit.report.TestSuiteReport
P
- pause() - Method in interface io.vertx.ext.unit.report.TestSuiteReport
- put(String, Object) - Method in interface io.vertx.ext.unit.TestContext
-
Put some data in the context.
R
- 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(Vertx, ReportOptions) - Static method in interface io.vertx.ext.unit.report.Reporter
- reporter(Vertx, ReportOptions) - Method in interface io.vertx.ext.unit.report.ReporterFactory
- Reporter<R> - Interface in io.vertx.ext.unit.report
-
The reporter defines a set of callback for the life cycle events.
- ReporterFactory - Interface in io.vertx.ext.unit.report
- reportError(R, Throwable) - Method in interface io.vertx.ext.unit.report.Reporter
-
Report a global test suite error, it can be called mulitple times between the
Reporter.reportBeginTestSuite(java.lang.String)and theReporter.reportEndTestSuite(R). - ReportingOptions - Class in io.vertx.ext.unit.report
-
Reporting options: the
reportersis 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(JsonObject) - Constructor for class io.vertx.ext.unit.report.ReportingOptions
-
Create a new options from the specified json.
- ReportingOptions(ReportingOptions) - Constructor for class io.vertx.ext.unit.report.ReportingOptions
-
Copy constructor.
- ReportingOptionsConverter - Class in io.vertx.ext.unit.report
-
Converter and mapper for
ReportingOptions. - 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 addressatand an optionalformat. - ReportOptions() - Constructor for class io.vertx.ext.unit.report.ReportOptions
- ReportOptions(JsonObject) - Constructor for class io.vertx.ext.unit.report.ReportOptions
- ReportOptions(ReportOptions) - Constructor for class io.vertx.ext.unit.report.ReportOptions
- ReportOptionsConverter - Class in io.vertx.ext.unit.report
-
Converter and mapper for
ReportOptions. - ReportOptionsConverter() - Constructor for class io.vertx.ext.unit.report.ReportOptionsConverter
- resolve(Promise<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.
- run(Vertx) - Method in interface io.vertx.ext.unit.TestSuite
-
Run the testsuite with the default options and the specified
vertxinstance. - run(Vertx, TestOptions) - Method in interface io.vertx.ext.unit.TestSuite
-
Run the testsuite with the specified
optionsand the specifiedvertxinstance. - run(TestOptions) - Method in interface io.vertx.ext.unit.TestSuite
-
Run the testsuite with the specified
options. - RunTestOnContext - Class in io.vertx.ext.unit.junit
-
A JUnit rule that runs tests on a Vert.x context.
- RunTestOnContext() - Constructor for class io.vertx.ext.unit.junit.RunTestOnContext
-
Create a new rule managing a Vertx instance created with default options.
- RunTestOnContext(Future<Vertx>) - Constructor for class io.vertx.ext.unit.junit.RunTestOnContext
-
Create a new rule with an asynchronous supplier for creating a Vert.x instance.
- RunTestOnContext(Future<Vertx>, BiConsumer<Vertx, Consumer<Void>>) - Constructor for class io.vertx.ext.unit.junit.RunTestOnContext
-
Create a new rule with an asynchronous supplier and consumer for creating and closing a Vert.x instance.
- 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>) - Constructor for class io.vertx.ext.unit.junit.RunTestOnContext
-
Create a new rule with supplier for creating a Vert.x instance.
- 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.
S
- seconds(long) - Static method in class io.vertx.ext.unit.junit.Timeout
- setFormat(String) - Method in class io.vertx.ext.unit.report.ReportOptions
-
Set the current reporter format.
- setReporters(List<ReportOptions>) - Method in class io.vertx.ext.unit.report.ReportingOptions
-
Replace the current list of reporters with a new one.
- setReporters(List<ReportOptions>) - Method in class io.vertx.ext.unit.TestOptions
- setTimeout(long) - Method in class io.vertx.ext.unit.TestOptions
-
Set the test timeout.
- setTo(String) - Method in class io.vertx.ext.unit.report.ReportOptions
-
Set the current reporter name.
- setUseEventLoop(Boolean) - Method in class io.vertx.ext.unit.TestOptions
-
Configure the execution to use an event loop when there is no one existing.
- silent() - Method in annotation type io.vertx.ext.unit.junit.Repeat
- stackTrace() - Method in interface io.vertx.ext.unit.report.Failure
- strictAsync(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.
- succeeded() - Method in interface io.vertx.ext.unit.report.TestResult
-
Did it succeed?
T
- test(String, int, Handler<TestContext>) - Method in interface io.vertx.ext.unit.TestSuite
-
Add a new test case to the suite.
- test(String, 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.
- TestOptions - Class in io.vertx.ext.unit
-
Test execution options: the
timeoutin milliseconds, the default value is 2 minutes theuseEventLoopconfigures the event loop usagetruealways runs with an event loopfalsenever runs with an event loopnulluses an event loop if there is one (provided byVertx.currentContext()) otherwise run without thereportersis 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(JsonObject) - Constructor for class io.vertx.ext.unit.TestOptions
-
Create a new options from the specified json.
- TestOptions(TestOptions) - Constructor for class io.vertx.ext.unit.TestOptions
-
Copy constructor.
- TestOptionsConverter - Class in io.vertx.ext.unit
-
Converter and mapper for
TestOptions. - 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() - Method in class io.vertx.ext.unit.report.ReportOptions
- toJson() - Method in class io.vertx.ext.unit.TestOptions
V
- validateConstructor(List<Throwable>) - Method in class io.vertx.ext.unit.junit.VertxUnitRunnerWithParameters
- validateFields(List<Throwable>) - Method in class io.vertx.ext.unit.junit.VertxUnitRunnerWithParameters
- validatePublicVoidNoArgMethods(Class<? extends Annotation>, boolean, List<Throwable>) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- validateTestMethod(FrameworkMethod) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- value() - Method in annotation type io.vertx.ext.unit.junit.Repeat
- verify(Handler<Void>) - Method in interface io.vertx.ext.unit.TestContext
-
Execute the provided handler, which may contain assertions, possibly from any third-party assertion framework.
- vertx() - Method in class io.vertx.ext.unit.junit.RunTestOnContext
-
Retrieves the current Vert.x instance, this value varies according to the test life cycle.
- VertxUnitRunner - Class in io.vertx.ext.unit.junit
-
A JUnit runner for writing asynchronous tests.
- VertxUnitRunner(Class<?>) - Constructor for class io.vertx.ext.unit.junit.VertxUnitRunner
- VertxUnitRunnerWithParameters - Class in io.vertx.ext.unit.junit
- VertxUnitRunnerWithParameters(TestWithParameters) - Constructor for class io.vertx.ext.unit.junit.VertxUnitRunnerWithParameters
- VertxUnitRunnerWithParametersFactory - Class in io.vertx.ext.unit.junit
-
A
ParametersRunnerFactoryfor aVertxUnitRunnerfor enabling Vert.x Unit parameterized tests. - VertxUnitRunnerWithParametersFactory() - Constructor for class io.vertx.ext.unit.junit.VertxUnitRunnerWithParametersFactory
W
- withAfterClasses(Statement) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- withAfters(FrameworkMethod, Object, Statement) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- withBeforeClasses(Statement) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- withBefores(FrameworkMethod, Object, Statement) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
- withPotentialTimeout(FrameworkMethod, Object, Statement) - Method in class io.vertx.ext.unit.junit.VertxUnitRunner
All Classes All Packages