From 457ab021c7fbb803d82fb6caf6a88e576d028254 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 31 May 2014 00:02:47 -0400 Subject: [PATCH] Split out the setUp, Travis is giving an NPE --- .../org/bspeice/minimalbible/test/DownloadActivityTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java b/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java index 8d31001..3f01068 100644 --- a/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java +++ b/MinimalBible/src/test/java/org/bspeice/minimalbible/test/DownloadActivityTest.java @@ -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() {