mirror of
https://github.com/MinimalBible/MinimalBible
synced 2025-07-07 00:34:42 -04:00
Test cases pass now with the navbar
This commit is contained in:
@ -1,26 +1,24 @@
|
||||
package org.bspeice.minimalbible;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.test.ActivityUnitTestCase;
|
||||
import android.util.Log;
|
||||
|
||||
/**
|
||||
* Created by Bradlee Speice on 7/5/2014.
|
||||
*/
|
||||
public class DownloadActivityTest extends ActivityUnitTestCase<DownloadActivity> {
|
||||
/* Please note that it is necessary to extend the ActivityInstrumentationTestCase2 if you plan
|
||||
on using an activity that sets up any underlying fragments (includes navigation drawers).
|
||||
The ActivityUnitTestCase doesn't set up enough of the Activity lifecycle.
|
||||
*/
|
||||
public class DownloadActivityTest extends ActivityInstrumentationTestCase2<DownloadActivity> {
|
||||
|
||||
public DownloadActivityTest() {
|
||||
super(DownloadActivity.class);
|
||||
}
|
||||
|
||||
public void testAndroidTestInjection() {
|
||||
MinimalBible m = new MinimalBible();
|
||||
m.buildObjGraph();
|
||||
setApplication(m);
|
||||
|
||||
startActivity(new Intent(getInstrumentation().getTargetContext(),
|
||||
DownloadActivity.class), null, null);
|
||||
|
||||
DownloadActivity a = getActivity();
|
||||
assertNotNull(a);
|
||||
|
||||
|
Reference in New Issue
Block a user