mirror of
https://github.com/MinimalBible/MinimalBible-Legacy
synced 2024-11-14 12:08:51 -05:00
Split out the setUp, Travis is giving an NPE
This commit is contained in:
parent
bd60b9a038
commit
457ab021c7
@ -19,6 +19,7 @@ import javax.inject.Inject;
|
||||
import javax.inject.Provider;
|
||||
|
||||
import dagger.Module;
|
||||
import dagger.ObjectGraph;
|
||||
|
||||
import static com.jayway.awaitility.Awaitility.*;
|
||||
|
||||
@ -36,8 +37,9 @@ public class DownloadActivityTest extends InstrumentationTestCase {
|
||||
@Inject RefreshManager rm;
|
||||
|
||||
public void setUp() {
|
||||
MinimalBible.getApplication().getObjGraph()
|
||||
.plus(DownloadActivityTestModule.class).inject(this);
|
||||
MinimalBible application = MinimalBible.getApplication();
|
||||
ObjectGraph graph = application.getObjGraph();
|
||||
graph.plus(DownloadActivityTestModule.class).inject(this);
|
||||
}
|
||||
|
||||
public void testBasicAssertion() {
|
||||
|
Loading…
Reference in New Issue
Block a user