Split out the setUp, Travis is giving an NPE

This commit is contained in:
Bradlee Speice 2014-05-31 00:02:47 -04:00
parent bd60b9a038
commit 457ab021c7

View File

@ -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() {