@Target(value=TYPE) @Retention(value=RUNTIME) public @interface UseModules
@RunWith(JukitoRunner.class)
to use the bindings contained
in the specified modules for the test.
Example:
@RunWith(JukitoRunner.class) @UseModules({ FooModule.class, BarModule.class} public class MyTest { @Test public void someTest(TypeBoundInFooModule a, TypeBoundInBarModule b) { } }The example is equivalent to the following inner static module approach.
@RunWith(JukitoRunner.class) public class MyTest { static class Module extends JukitoModule { @Override protected void configureTest() { install(new FooModule()); install(new BarModule()); } } // Test methods }
Copyright © 2010-2013 ArcBees Inc.. All Rights Reserved.