use of net.rdrei.android.scdl2.guice.ActivityLayoutInflater in project scdl by passy.
the class DownloadActivityTest method setUp.
@Before
public void setUp() {
final AbstractModule module = new AbstractModule() {
@Override
protected void configure() {
final Injector injector = TestHelper.getInjector();
final AdViewManagerStub adViewManagerStub = new AdViewManagerStub(injector.getProvider(ApplicationPreferences.class), new ActivityLayoutInflater(Robolectric.buildActivity(Activity.class).create().get()));
this.bind(AdViewManager.class).toInstance(adViewManagerStub);
}
};
TestHelper.overridenInjector(this, module);
}
Aggregations