diff options
Diffstat (limited to 'core/src/androidTest')
3 files changed, 5 insertions, 7 deletions
diff --git a/core/src/androidTest/kotlin/ca/allanwang/kau/xml/ChangelogTest.kt b/core/src/androidTest/kotlin/ca/allanwang/kau/xml/ChangelogTest.kt index e3b3170..1a0eaac 100644 --- a/core/src/androidTest/kotlin/ca/allanwang/kau/xml/ChangelogTest.kt +++ b/core/src/androidTest/kotlin/ca/allanwang/kau/xml/ChangelogTest.kt @@ -11,7 +11,7 @@ import org.junit.runner.RunWith @MediumTest class ChangelogTest { -// @Test //todo internal function sharing is only available on gradle 3.0.0+ + // @Test //todo internal function sharing is only available on gradle 3.0.0+ fun simpleTest() { // val data = parse(InstrumentationRegistry.getTargetContext(), R.xml.test_changelog) } diff --git a/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt b/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt index 1b185f3..c2ffa8a 100644 --- a/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt +++ b/core/src/androidTest/kotlin/ca/allanwang/kau/xml/FaqTest.kt @@ -17,8 +17,7 @@ class FaqTest { @Test fun simpleTest() { - InstrumentationRegistry.getTargetContext().kauParseFaq(R.xml.test_faq) { - data -> + InstrumentationRegistry.getTargetContext().kauParseFaq(R.xml.test_faq) { data -> assertEquals(2, data.size, "FAQ size is incorrect") assertEquals("1. This is a question", data.first().first.toString(), "First question does not match") assertEquals("This is an answer", data.first().second.toString(), "First answer does not match") @@ -29,8 +28,7 @@ class FaqTest { @Test fun withoutNumbering() { - InstrumentationRegistry.getTargetContext().kauParseFaq(R.xml.test_faq, false) { - data -> + InstrumentationRegistry.getTargetContext().kauParseFaq(R.xml.test_faq, false) { data -> assertEquals(2, data.size, "FAQ size is incorrect") assertEquals("This is a question", data.first().first.toString(), "First question does not match") assertEquals("This is an answer", data.first().second.toString(), "First answer does not match") diff --git a/core/src/androidTest/res/xml/test_changelog.xml b/core/src/androidTest/res/xml/test_changelog.xml index 2e90561..2c43d36 100644 --- a/core/src/androidTest/res/xml/test_changelog.xml +++ b/core/src/androidTest/res/xml/test_changelog.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <version title="v1.1"/> + <version title="v1.1" /> <item text="This is version 1.1" /> <item text="This is the last line to be displayed" /> <item text="" /> - <version title="v1.0"/> + <version title="v1.0" /> <item text="potato 1.0" /> </resources>
\ No newline at end of file |