Disable jni mocking temporarily

This commit is contained in:
mhutti1 2017-11-27 20:16:25 +00:00
parent c74a488b76
commit 94c79b5830
3 changed files with 6 additions and 3 deletions

View File

@ -54,7 +54,7 @@ dependencies {
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.0', {
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
}

View File

@ -30,7 +30,7 @@ public class TestJNIModule{
public JNIKiwix providesJNIKiwix() {
JNIKiwix jniKiwix = Mockito.mock(JNIKiwix.class);
doReturn("A/index.htm").when(jniKiwix).getMainPage();
/*doReturn("A/index.htm").when(jniKiwix).getMainPage();
doReturn(true).when(jniKiwix).loadZIM(any());
doReturn(true).when(jniKiwix).loadFulltextIndex(any());
doReturn("mockid").when(jniKiwix).getId();
@ -53,7 +53,7 @@ public class TestJNIModule{
doReturn(fool).when(jniKiwix).getContent(eq("A/A_Fool_for_You.html"),any(),any(),any());
} catch (IOException e) {
e.printStackTrace();
}
}*/
return jniKiwix;
}

View File

@ -54,6 +54,8 @@ import static org.hamcrest.Matchers.allOf;
@RunWith(AndroidJUnit4.class)
public class ZimTest {
/*
Temporary Disabled
@Inject
Context context;
@ -167,4 +169,5 @@ public class ZimTest {
}
};
}
*/
}