Interface TestSupport.RunCallback<T>

  • Type Parameters:
    T - result type
    Enclosing class:
    TestSupport
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface TestSupport.RunCallback<T>
    Callback interface used for utility run application methods in TestSupport.
    • Method Detail

      • run

        T run​(com.google.inject.Injector injector)
        throws java.lang.Exception
        Execute custom logic while application started (using DropwizardTestSupport or GuiceyTestSupport).
        Parameters:
        injector - application injector
        Returns:
        value or null
        Throws:
        java.lang.Exception - errors propagated