mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Update tests for new JNI
This commit is contained in:
parent
91972ef941
commit
078998a9b5
@ -49,8 +49,8 @@ public class TestJNIModule{
|
||||
byte[] summary = IOUtils.toByteArray(inStream);
|
||||
InputStream inStream2 = TestJNIModule.class.getClassLoader().getResourceAsStream("testpage");
|
||||
byte[] fool = IOUtils.toByteArray(inStream2);
|
||||
doReturn(summary).when(jniKiwix).getContent(eq("A/index.htm"),any(),any());
|
||||
doReturn(fool).when(jniKiwix).getContent(eq("A/A_Fool_for_You.html"),any(),any());
|
||||
doReturn(summary).when(jniKiwix).getContent(eq("A/index.htm"),any(),any(),any());
|
||||
doReturn(fool).when(jniKiwix).getContent(eq("A/A_Fool_for_You.html"),any(),any(),any());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user