open class TestSuite
A named suite of test cases that are executed altogether. The suite suite is created with the io.vertx.reactivex.ext.unit.TestSuite#create and the returned suite contains initially no tests. The suite can declare a callback before the suite with io.vertx.reactivex.ext.unit.TestSuite#before or after the suite with io.vertx.reactivex.ext.unit.TestSuite#after. The suite can declare a callback before each test with io.vertx.reactivex.ext.unit.TestSuite#beforeEach or after each test with io.vertx.reactivex.ext.unit.TestSuite#afterEach. Each test case of the suite is declared by calling the io.vertx.reactivex.ext.unit.TestSuite#test method. NOTE: This class has been automatically generated from the io.vertx.ext.unit.TestSuite non RX-ified interface using Vert.x codegen.
TestSuite(delegate: TestSuite) |
static val __TYPE_ARG: TypeArg<TestSuite> |
open fun after(callback: Handler<TestContext>): TestSuite
Set a callback executed after the tests. |
|
open fun afterEach(callback: Handler<TestContext>): TestSuite
Set a callback executed after each test and before the suite |
|
open fun before(callback: Handler<TestContext>): TestSuite
Set a callback executed before the tests. |
|
open fun beforeEach(callback: Handler<TestContext>): TestSuite
Set a callback executed before each test and after the suite |
|
open static fun create(name: String): TestSuite
Create and return a new test suite. |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): TestSuite |
|
open fun hashCode(): Int |
|
open static fun newInstance(arg: TestSuite): TestSuite |
|
open fun run(): TestCompletion
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. Otherwise it is executed in the current thread. The returned io.vertx.reactivex.ext.unit.Completion object can be used to get a completion callback. open fun run(options: TestOptions): TestCompletion
Run the testsuite with the specified open fun run(vertx: Vertx): TestCompletion
Run the testsuite with the default options and the specified open fun run(vertx: Vertx, options: TestOptions): TestCompletion
Run the testsuite with the specified |
|
open fun test(name: String, testCase: Handler<TestContext>): TestSuiteopen fun test(name: String, repeat: Int, testCase: Handler<TestContext>): TestSuite
Add a new test case to the suite. |
|
open fun toString(): String |