For example test classes that scan, bind, and auto-wire the test classpath:
@Test public class MyJUnit4orTestNGTest extendsAInjectedTest{ // ...tests... } public class MyJUnit3TestCase extendsInjectedTestCase{ // ...tests... }
Main class that launches Sisu applications from the command-line:
java -classpath myapp.jar:javax.inject.jar:aopalliance.jar:guice-3.0.jar:org.eclipse.sisu.inject.jar org.eclipse.sisu.launch.MainAnd a class that discovers
Sisu extensions registered under META-INF/services.
| InjectedTest | Abstract TestNG/JUnit4 test that automatically binds and injects itself. |
| InjectedTestCase | Abstract JUnit3 TestCase that automatically binds and injects itself. |
| Main | Bootstrap class that creates a static Injector by scanning the current class-path for beans. |
| SisuExtensions | SPI mechanism for discovering Module and Strategy extensions. |