Interface TestCase
public interface TestCase
A test case object can be used to create a single test.
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionvoidAssert the test case passes and block until it is executed.voidawaitSuccess(long timeout, TimeUnit unit) Assert the test case passes and block until it is executed.voidawaitSuccess(Vertx vertx) Assert the test case passes and block until it is executed.voidawaitSuccess(Vertx vertx, long timeout, TimeUnit unit) Assert the test case passes and block until it is executed.static TestCasecreate(String name, Handler<TestContext> testCase) Create a test case.
-
Method Details
-
create
Create a test case.- Parameters:
name- the test case nametestCase- the test case- Returns:
- the created test case
-
awaitSuccess
void awaitSuccess()Assert the test case passes and block until it is executed. This method should be used from a non Vert.x context, like a Junit test. -
awaitSuccess
Assert the test case passes and block until it is executed. This method should be used from a non Vert.x context, like a Junit test.- Parameters:
timeout- the suite timeout expressed in theunitargumentunit- the suitetimeoutunit
-
awaitSuccess
Assert the test case passes and block until it is executed. This method should be used from a non Vert.x context, like a Junit test.- Parameters:
vertx- the vert.x instance
-
awaitSuccess
-