Skip to content

Instantly share code, notes, and snippets.

View semenodm's full-sized avatar

Dmytro Obodowsky semenodm

  • Disney Streaming Services
  • DFW
View GitHub Profile
@semenodm
semenodm / VertxHandler.groovy
Created December 4, 2012 12:20 — forked from robfletcher/VertxHandler.groovy
A Spock extension for automatically registering and unregistering handlers on the Vert.x event bus
package co.freeside.spock.vertx
import org.spockframework.runtime.extension.ExtensionAnnotation
import java.lang.annotation.*
/**
* Add this annotation to any specification fields that should be registered as Vert.x event bus handlers during test
* execution. The field will be registered on the event bus before each feature method and unregistered afterwards. If
* the field is `@Shared` it will be registered and unregistered at the start and end of the spec.
*