Package ru.vyarus.dropwizard.guice.test
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 inTestSupport.Use
TestSupport.getContext()to access the context support object andTestSupport.getContextClient()to access the context client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Trun(com.google.inject.Injector injector)Execute custom logic while application started (usingDropwizardTestSupportorGuiceyTestSupport).
-
-
-
Method Detail
-
run
T run(com.google.inject.Injector injector) throws java.lang.Exception
Execute custom logic while application started (usingDropwizardTestSupportorGuiceyTestSupport).- Parameters:
injector- application injector- Returns:
- value or null
- Throws:
java.lang.Exception- errors propagated
-
-