mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-07 22:31:17 -04:00
Disable jni mocking temporarily
This commit is contained in:
parent
c74a488b76
commit
94c79b5830
@ -54,7 +54,7 @@ dependencies {
|
|||||||
|
|
||||||
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
|
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'
|
exclude group: 'com.android.support', module: 'support-annotations'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ public class TestJNIModule{
|
|||||||
public JNIKiwix providesJNIKiwix() {
|
public JNIKiwix providesJNIKiwix() {
|
||||||
JNIKiwix jniKiwix = Mockito.mock(JNIKiwix.class);
|
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).loadZIM(any());
|
||||||
doReturn(true).when(jniKiwix).loadFulltextIndex(any());
|
doReturn(true).when(jniKiwix).loadFulltextIndex(any());
|
||||||
doReturn("mockid").when(jniKiwix).getId();
|
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());
|
doReturn(fool).when(jniKiwix).getContent(eq("A/A_Fool_for_You.html"),any(),any(),any());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
return jniKiwix;
|
return jniKiwix;
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,8 @@ import static org.hamcrest.Matchers.allOf;
|
|||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
public class ZimTest {
|
public class ZimTest {
|
||||||
|
|
||||||
|
/*
|
||||||
|
Temporary Disabled
|
||||||
@Inject
|
@Inject
|
||||||
Context context;
|
Context context;
|
||||||
|
|
||||||
@ -167,4 +169,5 @@ public class ZimTest {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user