vertx / io.vertx.ext.unit.collect / EventBusCollector

EventBusCollector

interface EventBusCollector

The event bus collector listen to events on the Vert.x event bus and translate them into reports.

Author
Julien Viet

Properties

EVENT_TEST_CASE_BEGIN

static val EVENT_TEST_CASE_BEGIN: String

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 val EVENT_TEST_CASE_END: String

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 val EVENT_TEST_SUITE_BEGIN: String

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 val EVENT_TEST_SUITE_END: String

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 val EVENT_TEST_SUITE_ERROR: String

Json type field value that reports a test suite error, used as part of the test reporting protocol for the event bus.

Functions

asMessageHandler

abstract fun asMessageHandler(): Handler<Message<JsonObject>>

create

open static fun create(vertx: Vertx, options: ReportingOptions): EventBusCollector

Create a message handler reporting with the specified options. The returned message handler can be registered to an event bus.

open static fun create(vertx: Vertx, reporter: Handler<TestSuiteReport>): EventBusCollector

register

abstract fun register(address: String): MessageConsumer<Any>

Register the collector as a consumer of the event bus with the specified address.