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.

Use TestSupport.getContext() to access the context support object and TestSupport.getContextClient() to access the context client.

  • Method Summary

    Modifier and Type
    Method
    Description
    run(com.google.inject.Injector injector)
    Execute custom logic while application started (using DropwizardTestSupport or GuiceyTestSupport).
  • Method Details

    • run

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