Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
@RunWith(JukitoRunner.class)
public class AssistedInjectTest {
public static class Module extends JukitoModule {
@Override
protected void configureTest() {
install(new GinFactoryModuleBuilder().build(MyFactory.class));
}
}
@Inject
private MyFactory factory;
private MyPresenter presenter;
@Before
public void setUp() {
SomeDto dto = new SomeDto();
presenter = factory.create(dto);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment