diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/DownloadTest.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/DownloadTest.java index 0cd0bd7ba..0ed092f15 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/DownloadTest.java +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/DownloadTest.java @@ -50,12 +50,12 @@ import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.c import static com.schibsted.spain.barista.interaction.BaristaSwipeRefreshInteractions.refresh; import static junit.framework.Assert.fail; import static org.hamcrest.Matchers.allOf; -import static org.kiwix.kiwixmobile.testutils.TestUtils.TEST_PAUSE_MS; import static org.kiwix.kiwixmobile.testutils.TestUtils.allowPermissionsIfNeeded; import static org.kiwix.kiwixmobile.testutils.TestUtils.captureAndSaveScreenshot; import static org.kiwix.kiwixmobile.testutils.TestUtils.getResourceString; import static org.kiwix.kiwixmobile.testutils.TestUtils.withContent; import static org.kiwix.kiwixmobile.utils.StandardActions.deleteZimIfExists; +import static org.kiwix.sharedFunctions.TestConstantsKt.TEST_PAUSE_MS; @LargeTest @RunWith(AndroidJUnit4.class) diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/NetworkTest.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/NetworkTest.java index 99d786ba3..fb219ce31 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/NetworkTest.java +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/NetworkTest.java @@ -37,12 +37,14 @@ import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.kiwix.kiwixmobile.core.CoreApp; -import org.kiwix.kiwixmobile.core.reader.ZimContentProvider; import org.kiwix.kiwixmobile.core.di.components.DaggerTestComponent; import org.kiwix.kiwixmobile.core.di.components.TestComponent; +import org.kiwix.kiwixmobile.core.reader.ZimContentProvider; import org.kiwix.kiwixmobile.main.KiwixMainActivity; import org.kiwix.kiwixmobile.testutils.TestUtils; import org.kiwix.kiwixmobile.utils.KiwixIdlingResource; +import static org.kiwix.sharedFunctions.TestConstantsKt.TEST_PAUSE_MS; + import static androidx.test.InstrumentationRegistry.getInstrumentation; import static androidx.test.espresso.Espresso.onData; @@ -55,7 +57,6 @@ import static com.schibsted.spain.barista.interaction.BaristaDialogInteractions. import static com.schibsted.spain.barista.interaction.BaristaMenuClickInteractions.clickMenu; import static com.schibsted.spain.barista.interaction.BaristaSwipeRefreshInteractions.refresh; import static org.hamcrest.CoreMatchers.allOf; -import static org.kiwix.kiwixmobile.testutils.TestUtils.TEST_PAUSE_MS; import static org.kiwix.kiwixmobile.testutils.TestUtils.getResourceString; import static org.kiwix.kiwixmobile.testutils.TestUtils.withContent; diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/data/local/dao/BookDaoTest.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/data/local/dao/BookDaoTest.java index f7f48b14c..1e0f53bbc 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/data/local/dao/BookDaoTest.java +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/data/local/dao/BookDaoTest.java @@ -16,7 +16,7 @@ * */ -package org.kiwix.kiwixmobile.data.local.dao;/* +package org.kiwix.kiwixmobile.data.local.dao; import android.content.Context; import androidx.test.InstrumentationRegistry; diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/data/local/dao/RecentSearchDaoTest.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/data/local/dao/RecentSearchDaoTest.java index f15ab78a9..65b93921c 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/data/local/dao/RecentSearchDaoTest.java +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/data/local/dao/RecentSearchDaoTest.java @@ -16,7 +16,7 @@ * */ -package org.kiwix.kiwixmobile.data.local.dao;/* +package org.kiwix.kiwixmobile.data.local.dao; import androidx.test.ext.junit.runners.AndroidJUnit4; import com.yahoo.squidb.data.AbstractModel; diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/language/LanguageActivityTest.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/language/LanguageActivityTest.java index 8e12b0096..100aa1778 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/language/LanguageActivityTest.java +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/language/LanguageActivityTest.java @@ -48,7 +48,9 @@ import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.Matchers.allOf; import static org.hamcrest.core.IsNull.notNullValue; import static org.kiwix.kiwixmobile.testutils.Matcher.childAtPosition; -import static org.kiwix.kiwixmobile.testutils.TestUtils.TEST_PAUSE_MS; +import static org.kiwix.sharedFunctions.TestConstantsKt.TEST_PAUSE_MS; + + @RunWith(AndroidJUnit4.class) public class LanguageActivityTest { diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/main/MainActivityTest.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/main/MainActivityTest.java index f4d79c8ef..d4b877b8b 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/main/MainActivityTest.java +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/main/MainActivityTest.java @@ -32,7 +32,9 @@ import org.junit.runner.RunWith; import org.kiwix.kiwixmobile.core.R; import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn; -import static org.kiwix.kiwixmobile.testutils.TestUtils.TEST_PAUSE_MS; +import static org.kiwix.sharedFunctions.TestConstantsKt.TEST_PAUSE_MS; + + import static org.kiwix.kiwixmobile.testutils.TestUtils.getResourceString; import static org.kiwix.kiwixmobile.utils.StandardActions.enterSettings; diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/testutils/TestUtils.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/testutils/TestUtils.java index 7f76c0257..72881d2a0 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/testutils/TestUtils.java +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/testutils/TestUtils.java @@ -48,7 +48,7 @@ import org.kiwix.kiwixmobile.core.entity.LibraryNetworkEntity.Book; public class TestUtils { private static final String TAG = "TESTUTILS"; - public static int TEST_PAUSE_MS = 250; + /* TEST_PAUSE_MS is used as such: BaristaSleepInteractions.sleep(TEST_PAUSE_MS); diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/IOUtils.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/IOUtils.java deleted file mode 100644 index 7b04f6d6d..000000000 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/IOUtils.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Kiwix Android - * Copyright (c) 2019 Kiwix - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -package org.kiwix.kiwixmobile.utils; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; - -public class IOUtils { - private IOUtils() { - //utility class - } - - private static final int DEFAULT_BUFFER_SIZE = 1024 * 4; - private static final int EOF = -1; - - public static byte[] toByteArray(final InputStream input) throws IOException { - try (final ByteArrayOutputStream output = new ByteArrayOutputStream()) { - copy(input, output); - return output.toByteArray(); - } - } - - private static int copy(final InputStream input, final OutputStream output) throws IOException { - final long count = copyLarge(input, output); - if (count > Integer.MAX_VALUE) { - return -1; - } - return (int) count; - } - - private static long copyLarge(final InputStream input, final OutputStream output) - throws IOException { - final byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; - long count = 0; - int n; - while (EOF != (n = input.read(buffer))) { - output.write(buffer, 0, n); - count += n; - } - return count; - } -} diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/StandardActions.java b/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/StandardActions.java index 79cb3c69c..e9d4b8d19 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/StandardActions.java +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/StandardActions.java @@ -26,7 +26,9 @@ import static androidx.test.espresso.Espresso.onData; import static androidx.test.espresso.action.ViewActions.longClick; import static androidx.test.espresso.matcher.ViewMatchers.withId; import static com.schibsted.spain.barista.interaction.BaristaDialogInteractions.clickDialogPositiveButton; -import static org.kiwix.kiwixmobile.testutils.TestUtils.TEST_PAUSE_MS; +import static org.kiwix.sharedFunctions.TestConstantsKt.TEST_PAUSE_MS; + + import static org.kiwix.kiwixmobile.testutils.TestUtils.getResourceString; import static org.kiwix.kiwixmobile.testutils.TestUtils.withContent; diff --git a/buildSrc/src/main/kotlin/plugin/AllProjectConfigurer.kt b/buildSrc/src/main/kotlin/plugin/AllProjectConfigurer.kt index 907639379..726b720bd 100644 --- a/buildSrc/src/main/kotlin/plugin/AllProjectConfigurer.kt +++ b/buildSrc/src/main/kotlin/plugin/AllProjectConfigurer.kt @@ -23,13 +23,16 @@ import Libs import com.android.build.gradle.BaseExtension import org.gradle.api.Project import org.gradle.api.tasks.testing.Test +import org.gradle.kotlin.dsl.DependencyHandlerScope import org.gradle.kotlin.dsl.KotlinClosure1 import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.dependencies +import org.gradle.kotlin.dsl.exclude import org.gradle.testing.jacoco.plugins.JacocoPluginExtension import org.gradle.testing.jacoco.plugins.JacocoTaskExtension import org.jetbrains.kotlin.gradle.internal.AndroidExtensionsExtension import org.jlleitschuh.gradle.ktlint.KtlintExtension +import java.io.File class AllProjectConfigurer { @@ -148,11 +151,6 @@ class AllProjectConfigurer { implementation(Libs.logging_interceptor) implementation(Libs.retrofit) implementation(Libs.adapter_rxjava2) - testImplementation(Libs.junit_jupiter) - testImplementation(Libs.mockk) - testImplementation(Libs.assertj_core) - testImplementation(Libs.testing_ktx) - testImplementation(Libs.core_testing) compileOnly(Libs.javax_annotation_api) implementation(Libs.dagger) implementation(Libs.dagger_android) @@ -167,6 +165,45 @@ class AllProjectConfigurer { implementation(Libs.xfetch2okhttp) implementation(Libs.rxandroid) implementation(Libs.rxjava) + unitTestDependencies() + instrumentationDependencies() } } + + private fun DependencyHandlerScope.unitTestDependencies() { + testImplementation(Libs.junit_jupiter) + testImplementation(Libs.mockk) + testImplementation(Libs.assertj_core) + testImplementation(Libs.testing_ktx) + testImplementation(Libs.core_testing) + } + + private fun DependencyHandlerScope.instrumentationDependencies() { + androidTestImplementation(Libs.espresso_core) + androidTestImplementation(Libs.espresso_web) + androidTestImplementation(Libs.espresso_intents) + androidTestImplementation(Libs.espresso_contrib) + androidTestImplementation(Libs.androidx_annotation) + androidTestImplementation(Libs.junit) + androidTestImplementation(Libs.junit_jupiter) + androidTestImplementation(Libs.androidx_test_runner) + androidTestImplementation(Libs.androidx_test_rules) + androidTestImplementation(Libs.androidx_test_core) + androidTestImplementation(Libs.mockwebserver) + androidTestImplementation(Libs.barista) { + exclude(group = "com.android.support.test.uiautomator") + } + androidTestImplementation(Libs.simple_xml) { + exclude(module = "stax") + exclude(module = "stax-api") + exclude(module = "xpp3") + } + androidTestUtil(Libs.orchestrator) + androidTestImplementation(Libs.mockito_android) + androidTestCompileOnly(Libs.javax_annotation_api) + kaptAndroidTest(Libs.dagger_compiler) + androidTestImplementation(Libs.mockk_android) + androidTestImplementation(Libs.uiautomator) + androidTestImplementation(Libs.assertj_core) + } } diff --git a/buildSrc/src/main/kotlin/plugin/AppConfigurer.kt b/buildSrc/src/main/kotlin/plugin/AppConfigurer.kt index 0c40d90fc..1b933f83d 100644 --- a/buildSrc/src/main/kotlin/plugin/AppConfigurer.kt +++ b/buildSrc/src/main/kotlin/plugin/AppConfigurer.kt @@ -18,11 +18,9 @@ package plugin -import Libs import com.android.build.gradle.AppExtension import org.gradle.api.Project import org.gradle.kotlin.dsl.dependencies -import org.gradle.kotlin.dsl.exclude import org.gradle.kotlin.dsl.project class AppConfigurer { @@ -53,32 +51,6 @@ class AppConfigurer { private fun configureDependencies(target: Project) { target.dependencies { add("implementation", project(":core")) - androidTestImplementation(Libs.espresso_core) - androidTestImplementation(Libs.espresso_web) - androidTestImplementation(Libs.espresso_intents) - androidTestImplementation(Libs.espresso_contrib) - androidTestImplementation(Libs.androidx_annotation) - androidTestImplementation(Libs.junit) - androidTestImplementation(Libs.junit_jupiter) - androidTestImplementation(Libs.androidx_test_runner) - androidTestImplementation(Libs.androidx_test_rules) - androidTestImplementation(Libs.androidx_test_core) - androidTestImplementation(Libs.mockwebserver) - androidTestImplementation(Libs.barista) { - exclude(group = "com.android.support.test.uiautomator") - } - androidTestImplementation(Libs.simple_xml) { - exclude(module = "stax") - exclude(module = "stax-api") - exclude(module = "xpp3") - } - androidTestUtil(Libs.orchestrator) - androidTestImplementation(Libs.mockito_android) - androidTestCompileOnly(Libs.javax_annotation_api) - kaptAndroidTest(Libs.dagger_compiler) - androidTestImplementation(Libs.mockk_android) - androidTestImplementation(Libs.uiautomator) - androidTestImplementation(Libs.assertj_core) } } } diff --git a/core/build.gradle b/core/build.gradle index a98ce1577..43af1c8bb 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -26,6 +26,11 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + sourceSets { + androidTest { + java.srcDirs += "$rootDir/core/src/sharedTestFunctions/java" + } + } } private boolean shouldUseLocalVersion() { diff --git a/core/src/androidTest/AndroidManifest.xml b/core/src/androidTest/AndroidManifest.xml new file mode 100644 index 000000000..3a75bc37f --- /dev/null +++ b/core/src/androidTest/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java b/core/src/androidTest/java/org/kiwix/kiwixmobile/core/splash/SplashActivityTest.java similarity index 89% rename from app/src/androidTest/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java rename to core/src/androidTest/java/org/kiwix/kiwixmobile/core/splash/SplashActivityTest.java index c1bf74827..989053113 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java +++ b/core/src/androidTest/java/org/kiwix/kiwixmobile/core/splash/SplashActivityTest.java @@ -16,9 +16,11 @@ * */ -package org.kiwix.kiwixmobile.splash; +package org.kiwix.kiwixmobile.core.splash; import android.Manifest; +import android.app.Activity; +import android.app.Instrumentation; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; @@ -36,15 +38,15 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.kiwix.kiwixmobile.core.intro.IntroActivity; import org.kiwix.kiwixmobile.core.main.CoreMainActivity; -import org.kiwix.kiwixmobile.core.splash.SplashActivity; import static androidx.test.InstrumentationRegistry.getInstrumentation; import static androidx.test.espresso.intent.Intents.intended; +import static androidx.test.espresso.intent.Intents.intending; import static androidx.test.espresso.intent.matcher.IntentMatchers.hasAction; import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent; import static org.junit.Assert.assertEquals; import static org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil.PREF_SHOW_INTRO; -import static org.kiwix.kiwixmobile.testutils.TestUtils.TEST_PAUSE_MS; +import static org.kiwix.sharedFunctions.TestConstantsKt.TEST_PAUSE_MS; @LargeTest @RunWith(AndroidJUnit4.class) @@ -83,12 +85,9 @@ public class SplashActivityTest { @Test public void testNormalRun() { shouldShowIntro(false); - + intending(hasAction(CoreMainActivity.class.getCanonicalName())).respondWith( + new Instrumentation.ActivityResult(Activity.RESULT_OK, new Intent())); activityTestRule.launchActivity(new Intent()); - BaristaSleepInteractions.sleep(TEST_PAUSE_MS); - - // Verify that the SplashActivity is followed by CoreMainActivity - intended(hasAction(CoreMainActivity.class.getCanonicalName())); } @After diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/files/FileUtilsInstrumentationTest.java b/core/src/androidTest/java/org/kiwix/kiwixmobile/core/utils/files/FileUtilsInstrumentationTest.java similarity index 99% rename from app/src/androidTest/java/org/kiwix/kiwixmobile/utils/files/FileUtilsInstrumentationTest.java rename to core/src/androidTest/java/org/kiwix/kiwixmobile/core/utils/files/FileUtilsInstrumentationTest.java index ed14232c1..c9e95d682 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/utils/files/FileUtilsInstrumentationTest.java +++ b/core/src/androidTest/java/org/kiwix/kiwixmobile/core/utils/files/FileUtilsInstrumentationTest.java @@ -16,7 +16,7 @@ * */ -package org.kiwix.kiwixmobile.utils.files; +package org.kiwix.kiwixmobile.core.utils.files; import android.content.Context; import androidx.test.InstrumentationRegistry; diff --git a/core/src/androidTest/resources/library.xml b/core/src/androidTest/resources/library.xml new file mode 100644 index 000000000..7f6c6e26e --- /dev/null +++ b/core/src/androidTest/resources/library.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + diff --git a/core/src/androidTest/resources/summary b/core/src/androidTest/resources/summary new file mode 100644 index 000000000..b792e3c4c --- /dev/null +++ b/core/src/androidTest/resources/summary @@ -0,0 +1,102 @@ + + + Summary + + + + +
+ +

Summary

+
+
+
+ + + + \ No newline at end of file diff --git a/core/src/androidTest/resources/test.zim.meta4 b/core/src/androidTest/resources/test.zim.meta4 new file mode 100644 index 000000000..4146cfc62 --- /dev/null +++ b/core/src/androidTest/resources/test.zim.meta4 @@ -0,0 +1,104 @@ + + + MirrorBrain/2.18.1 + http://download.kiwix.org/zim/wikipedia/wikipedia_ab_all_2017-03.zim.meta4 + 2016-06-08T08:59:18Z + + Kiwix project + http://www.kiwix.org + + + + 357269 + + + + + 6f06866b61c4a921b57f28cfd4307220 + 8aac4c7f89e3cdd45b245695e19ecde5aac59593 + 83126775538cf588a85edb10db04d6e012321a2025278a08a084b258849b3a5c + + f36815d904d4fd563aaef4ee6ef2600fb1fd70b2 + cd34a8a85ed1dd275417ce224ff0cd8d9893d101 + 7702114faf59441937c9075ad695fad61cdb13f3 + 532553bfb04c870375a53368b17838e50b169ab8 + fcda3eba296502965015ef3f07b05adeb4d95dfc + 97af1a7b1327a6f13dfc63524c63077c4aaa1278 + 4c02b16d3d0cb1acc5b0eb02a46e3047245ca65c + 163927a9e7405b20c0544d06243baecfdf3c13d3 + 1d4ccf5570fecefc93793aa1ebb73d95eb46cf03 + a0e5200bde74ba58c7318e15a34d5f891fb36841 + e862a19ce5a4066efdcc15bf3c74462292251171 + 1c964b3029b6eda5ddff6815bf5298ca9a4c4196 + 29f52efd444b496fc55c99541de62823605bdce7 + d5ae5e610f0b2f102bc16d7eeea55cacf259dda8 + b7e0102f182a84d76c3a8ca02d0e9319a320eed6 + bd63b665f1ac5620226481bacbe4dee1d31d48ba + 54393351f78e24c4ebb4dbfd22fcdfff279f39fb + 8845733b1da2876ad81aa1f7596dfd0e49bcc293 + 94c2bb5e297a1c61bd1e4a3b47a2ffa8457dc9aa + b2c1229eb3ffa88c71f0584c9714b7cf2d7df091 + d0978cf7aaba0320442673fc47f400e43df84a99 + 5b8e68db7197089a78e92eb77f1c63859d098b1b + d4ff1f37c101735c81a06ebd98e1c3be465e0314 + e9399f2c1f883816d3007765443cd38a1b4c6f9f + b6fa56a9dc6893bd67deebd14e9f2ccd42d63355 + 73efed5e8fd6480fece063826d62241783126b63 + b24ec4bd6f1f6ad2de9724275ac141c92692edd2 + 3d35dee6ee7e1add3e8f30fe601f4f74ed11e704 + 9af07844246402bc6e28f37f8eb8c0329033a874 + 1be6178907a740670d8e61f72ebc8d47860015ce + 6e954cc098392cf7f515e07f4d666d8b0a5fe329 + e9f09f347f07585338073fea96f8d009a5aa3e0d + a48801add4c60733a023bdcce5e62aacb33becf0 + 90ca6abeeb08fbc136f1d0234741ca6b506869bc + 7c426983069ea0556168f9e7343426f79d233bc1 + 18e893707d86bb778f9be3957e2645502ae1469d + c7a984439cb7e7fbbc805ea9eb77bebcfbaa25a5 + 9614ca49b5611494e4aaa0a3ffd3e23f5bfae86a + d344c4cd8db6c0859eb00ba90cdeb1e12b9922c4 + ef777338b04c4b638721e1a043c3ae433a885c82 + 04504c63113f7719f5ac13c8e30f1feec4648268 + 1411ad174573f8c2a9a2d33c33f77f776db40f35 + bc771262c4abf687b49321c83fd4613dbdcc1aa3 + 6762c76f99280283fa73037a0358efe5fd903eee + 8ba56ea08fe4c2f9e76ee8273ce9dad4c4bd977a + 97d8246b1db42afb9048109f920811fb5e723e71 + 6c59c23baeb706f6902f5a8dc822bcf932721cdc + 1dff0732d971bc25af5afa9768493f435e5ab5d0 + 133ff15a2992b0d5337eeddc62da839f86cee1e0 + 0590bc490e4f12782849b8b36b87e1b68becdb83 + 705e5c62c96c6b41a9cfea97796ebdcc981145a6 + e03ba6cf2deba1dfc8d781e4b8d0c602e033eea4 + a5c46e2093d7c138df4553bfc92604de91b8fe89 + 035f0bd63b253c88a5ef7efaea96b3ee664e6f91 + 3b4732487b464d6164d9e460d990dcf8de8b499c + 3453494c2188f5bee8a86a7b3626129e61a8bb21 + 47a062cdd2f7024f6f6ebffe6ade5ca9474932ea + 5c30eee23b5b75680958760472c5c39aaaab108c + c93ae5c2faf3f3a898e01f5c9aef1d57f2969990 + debf6ed9bbfbc9db4505d89dc74f871049d5c918 + 3d0c0800396e5305ff1ddabba2371f817ec4839c + 8055e515aa6e78f2810bbb0e0cd07330838b8920 + + + + + + + + + + + + + + + http://ftpmirror.your.org/pub/kiwix/zim/wikipedia/wikipedia_ab_all_2017-03.zim + http://www.mirrorservice.org/sites/download.kiwix.org/zim/wikipedia/wikipedia_ab_all_2017-03.zim + http://download.wikimedia.org/kiwix/zim/wikipedia/wikipedia_ab_all_2017-03.zim + http://mirror.netcologne.de/kiwix/zim/wikipedia/wikipedia_ab_all_2017-03.zim + http://mirror3.kiwix.org/zim/wikipedia/wikipedia_ab_all_2017-03.zim + + diff --git a/core/src/androidTest/resources/testpage b/core/src/androidTest/resources/testpage new file mode 100644 index 000000000..fef7017de --- /dev/null +++ b/core/src/androidTest/resources/testpage @@ -0,0 +1,179 @@ + + + A Fool for You + + + + +
+ +

A Fool for You

+
+
"A Fool for You"
Single by Ray Charles
from the album Ray Charles (or, Hallelujah I Love Her So)
Released +1955
Recorded +1954-1955
Genre +Soul blues
Length +3:03
Label +Atlantic
Writer(s) +Ray Charles
Producer(s) +Jerry Wexler
Ray Charles singles chronology
+ + + + + +
"Greenbacks"
(1955)
"A Fool for You"
(1955)
"Hallelujah I Love Her So"
(1956)
+

"A Fool for You" is a bluesy, proto-soul single recording written by Ray Charles and released by him in 1955 on the Atlantic label.

+ +

Personnel

+ +
  • Lead vocal and piano by Ray Charles
  • +
  • Instrumentation by the Ray Charles band
  • +
  • Produced by Jerry Wexler
+ +

Covers

+
  • Otis Redding on The Immortal Otis Redding
  • +
  • Van Morrison on A Night in San Francisco
  • +
  • Michael Jackson on Soulsation!
+ + + + + + + + + + + + + +
This article is issued from Wikipedia - version of the Friday, October 31, 2014. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.
+
+ + + + \ No newline at end of file diff --git a/core/src/sharedTestFunctions/java/org/kiwix/sharedFunctions/TestConstants.kt b/core/src/sharedTestFunctions/java/org/kiwix/sharedFunctions/TestConstants.kt index e3f015164..ae53318cf 100644 --- a/core/src/sharedTestFunctions/java/org/kiwix/sharedFunctions/TestConstants.kt +++ b/core/src/sharedTestFunctions/java/org/kiwix/sharedFunctions/TestConstants.kt @@ -19,3 +19,4 @@ package org.kiwix.sharedFunctions const val TEST_PORT = 8080 const val MOCK_BASE_URL = "http://localhost:$TEST_PORT/" +const val TEST_PAUSE_MS = 250