You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/app/src/androidTest/java/org/tasks/injection/InjectingTestCase.java

23 lines
540 B
Java

package org.tasks.injection;
import static androidx.test.InstrumentationRegistry.getTargetContext;
import static org.tasks.TestUtilities.initializeMockito;
import org.junit.Before;
public abstract class InjectingTestCase {
private TestComponent component;
@Before
public void setUp() {
initializeMockito(getTargetContext());
component =
DaggerTestComponent.builder().testModule(new TestModule(getTargetContext())).build();
inject(component);
}
protected abstract void inject(TestComponent component);
}