From 7e5894aa51ea27dafa85534c0c66e274dddd3096 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 4 Mar 2019 15:25:44 -0500 Subject: Reorder test args --- .../kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/androidTest') 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, -- cgit v1.2.3