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/5 test that automatically binds and injects itself.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) Custom injection bindings.voidconfigure(Properties properties) Custom property values.final Stringfinal <T> Tfinal <T> Tlookup(Class<T> type, Annotation qualifier) final <T> Tlookup(Class<T> type, Class<? extends Annotation> qualifier) final <T> Tscanning()voidsetUp()space()voidtearDown()
-
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:
configurein interfacecom.google.inject.Module- Parameters:
binder- The Guice binder
-
configure
Custom property values.- Parameters:
properties- The test properties
-
lookup
-
lookup
-
lookup
-
lookup
-
getBasedir
-