Package org.eclipse.sisu.launch
Class InjectedTest
java.lang.Object
org.eclipse.sisu.launch.InjectedTest
- All Implemented Interfaces:
com.google.inject.Module
Abstract TestNG/JUnit4 test that automatically binds and injects itself.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(com.google.inject.Binder binder) Custom injection bindings.void
configure
(Properties properties) Custom property values.final String
private <T> T
lookup
(com.google.inject.Key<T> key) final <T> T
final <T> T
lookup
(Class<T> type, Annotation qualifier) final <T> T
lookup
(Class<T> type, Class<? extends Annotation> qualifier) final <T> T
scanning()
void
setUp()
space()
void
tearDown()
-
Field Details
-
basedir
-
locator
-
-
Constructor Details
-
InjectedTest
public InjectedTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
spaceModule
-
space
-
scanning
-
configure
public void configure(com.google.inject.Binder binder) Custom injection bindings.- Specified by:
configure
in interfacecom.google.inject.Module
- Parameters:
binder
- The Guice binder
-
configure
Custom property values.- Parameters:
properties
- The test properties
-
lookup
-
lookup
-
lookup
-
lookup
-
getBasedir
-
lookup
private <T> T lookup(com.google.inject.Key<T> key)
-