aboutsummaryrefslogtreecommitdiff
path: root/app/src/androidTest/kotlin/com/pitchedapps
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-03-04 15:25:44 -0500
committerAllan Wang <me@allanwang.ca>2019-03-04 15:25:44 -0500
commit7e5894aa51ea27dafa85534c0c66e274dddd3096 (patch)
tree540df876645b1a0da99c672f0faba435c7a586ee /app/src/androidTest/kotlin/com/pitchedapps
parente591fb30cef575dce83b6f10777f52caa0001a88 (diff)
downloadfrost-7e5894aa51ea27dafa85534c0c66e274dddd3096.tar.gz
frost-7e5894aa51ea27dafa85534c0c66e274dddd3096.tar.bz2
frost-7e5894aa51ea27dafa85534c0c66e274dddd3096.zip
Reorder test args
Diffstat (limited to 'app/src/androidTest/kotlin/com/pitchedapps')
-rw-r--r--app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt b/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt
index d32b956e..f1accefd 100644
--- a/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt
+++ b/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt
@@ -83,7 +83,7 @@ class ImageActivityTest {
mockServer.takeRequest()
with(activity.activity) {
assertEquals(1, mockServer.requestCount, "One http request expected")
- assertEquals(fabAction, FabStates.DOWNLOAD, "Image should be successful, image should be downloaded")
+ assertEquals(FabStates.DOWNLOAD, fabAction, "Image should be successful, image should be downloaded")
assertTrue(tempFile.exists(), "Image should be located at temp file")
assertTrue(
System.currentTimeMillis() - tempFile.lastModified() < 2000L,
@@ -100,7 +100,7 @@ class ImageActivityTest {
mockServer.takeRequest()
with(activity.activity) {
assertEquals(1, mockServer.requestCount, "One http request expected")
- assertEquals(fabAction, FabStates.ERROR, "Text should not be a valid image format, error state expected")
+ assertEquals(FabStates.ERROR, fabAction, "Text should not be a valid image format, error state expected")
assertEquals("Image format not supported", errorRef?.message, "Error message mismatch")
assertFalse(tempFile.exists(), "Temp file should have been removed")
}
@@ -112,7 +112,7 @@ class ImageActivityTest {
mockServer.takeRequest()
with(activity.activity) {
assertEquals(1, mockServer.requestCount, "One http request expected")
- assertEquals(fabAction, FabStates.ERROR, "Error response code, error state expected")
+ assertEquals(FabStates.ERROR, fabAction, "Error response code, error state expected")
assertEquals(
"Unsuccessful response for image: Error mock response",
errorRef?.message,