From a8c734070c67d84e10f617602467339f113521b4 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 3 Jan 2019 23:50:46 -0500 Subject: Add custom gradle function and ignore some tests --- .../kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt | 4 +++- .../kotlin/com/pitchedapps/frost/facebook/requests/FbRequestTest.kt | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'app/src/test') diff --git a/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt index 07c92fbf..a2bafba9 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt @@ -24,11 +24,12 @@ import okhttp3.mockwebserver.MockResponse import okhttp3.mockwebserver.MockWebServer import okhttp3.mockwebserver.RecordedRequest import org.junit.Assume.assumeTrue -import org.junit.Test import java.io.File import java.util.zip.ZipFile import kotlin.test.AfterTest +import kotlin.test.Test import kotlin.test.BeforeTest +import kotlin.test.Ignore import kotlin.test.assertEquals import kotlin.test.assertNotNull import kotlin.test.assertTrue @@ -78,6 +79,7 @@ class OfflineWebsiteTest { ) } + @Ignore @Test fun fbOffline() { // Not really a test. Skip in CI diff --git a/app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbRequestTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbRequestTest.kt index 3a7abec4..ec765448 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbRequestTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/requests/FbRequestTest.kt @@ -23,6 +23,7 @@ import com.pitchedapps.frost.internal.USER_ID import com.pitchedapps.frost.internal.authDependent import okhttp3.Call import org.junit.BeforeClass +import org.junit.Ignore import org.junit.Test import kotlin.test.assertEquals import kotlin.test.assertFalse @@ -69,12 +70,13 @@ class FbRequestTest { AUTH.markNotificationRead(notifId).call.assertNoError() } + @Ignore("Broken as of 2019/01/03; however, this was never used in production to begin with") @Test fun fullSizeImage() { - val fbid = 10155966932992838L // google's current cover photo + val fbid = 10150706277522838L // google's current cover photo val url = AUTH.getFullSizedImage(fbid).invoke() println(url) - assertEquals(url?.startsWith("https://scontent"), true) + assertEquals(true, url?.startsWith("https://scontent"), "Bad start for url $url") } @Test -- cgit v1.2.3