Annotation Type ProvidedBy


@Retention(RUNTIME) @Target(PARAMETER) public @interface ProvidedBy
Parameter annotation used on Vertx test method or constructor parameters to specify a VertxProvider implementation that supplies the Vertx instance.

The provider class must have a public no-arg constructor.

Usage example:

@Test
void myTest(@ProvidedBy(MyProvider.class) Vertx vertx) {
  // vertx is created by MyProvider
}
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends VertxProvider>
    The VertxProvider implementation class to use for creating the Vertx instance.