Interface Plugin


  • public interface Plugin
    Plugin that can inject into fields.

    The avaje-jex-test provides a plugin that would start a http server and inject a http client into the field for the tests to use.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Plugin.Scope
      The plugin scope for the test.
    • Method Detail

      • forType

        boolean forType​(Class<?> type)
        Return true if this plugin should inject for this class.
      • createScope

        Plugin.Scope createScope​(BeanScope beanScope)
        Create a plugin scope for either EACH or ALL (per test or per class)

        The scope will be closed appropriately (afterEach or afterAll).