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.
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 TypeMethodDescriptionrun(com.google.inject.Injector injector) Execute custom logic while application started (usingDropwizardTestSupportorGuiceyTestSupport).
-
Method Details
-
run
Execute custom logic while application started (usingDropwizardTestSupportorGuiceyTestSupport).- Parameters:
injector- application injector- Returns:
- value or null
- Throws:
Exception- errors propagated
-