Package org.eclipse.sisu.launch
Class InjectedTest
- java.lang.Object
-
- org.eclipse.sisu.launch.InjectedTest
-
- All Implemented Interfaces:
com.google.inject.Module
public abstract class InjectedTest extends Object implements com.google.inject.Module
Abstract TestNG/JUnit4 test that automatically binds and injects itself.
-
-
Constructor Summary
Constructors Constructor Description InjectedTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)Custom injection bindings.voidconfigure(Properties properties)Custom property values.StringgetBasedir()<T> Tlookup(Class<T> type)<T> Tlookup(Class<T> type, Annotation qualifier)<T> Tlookup(Class<T> type, Class<? extends Annotation> qualifier)<T> Tlookup(Class<T> type, String name)BeanScanningscanning()voidsetUp()ClassSpacespace()SpaceModulespaceModule()voidtearDown()
-
-
-
Method Detail
-
spaceModule
public SpaceModule spaceModule()
-
space
public ClassSpace space()
-
scanning
public BeanScanning scanning()
-
configure
public void configure(com.google.inject.Binder binder)
Custom injection bindings.- Specified by:
configurein interfacecom.google.inject.Module- Parameters:
binder- The Guice binder
-
configure
public void configure(Properties properties)
Custom property values.- Parameters:
properties- The test properties
-
lookup
public final <T> T lookup(Class<T> type)
-
lookup
public final <T> T lookup(Class<T> type, Class<? extends Annotation> qualifier)
-
lookup
public final <T> T lookup(Class<T> type, Annotation qualifier)
-
getBasedir
public final String getBasedir()
-
-