Package: io.vertx.groovy.ext.unit.collect

## [Groovy] Class EventBusCollector

- io.vertx.groovy.ext.unit.collect.EventBusCollector

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

- - ### Constructor Summary

    Constructors
    Constructor and description
    `EventBusCollector (Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `static EventBusCollector` | `create(Vertx vertx, Map<String, Object> options)` Create a message handler reporting with the specified options.
    `static EventBusCollector` | `create(Vertx vertx, Handler<TestSuiteReport> reporter)`
    `Object` | `getDelegate()`
    `MessageConsumer` | `register(String address)` Register the collector as a consumer of the event bus with the specified address.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### EventBusCollector(Object delegate)

  - ### Method Detail

    - #### static EventBusCollector create(Vertx vertx, Map<String, Object> options)

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

      Returns:
        the message handler
      Parameters:
        vertx
        `options` - the reporting options (see ReportingOptions)

    - #### static EventBusCollector create(Vertx vertx, Handler<TestSuiteReport> reporter)

    - #### Object getDelegate()

    - #### MessageConsumer register(String address)

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

      Returns:
        the subscribed message consumer
      Parameters:
        `address` - the registration address