From: David ‘Bombe’ Roden Date: Sun, 4 Jun 2017 10:22:05 +0000 (+0200) Subject: Rename test images X-Git-Tag: 0.9.7^2~171 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0f1504a0e5f8f3f0efc4c8d0e5031ad4c53baa17;p=Sone.git Rename test images --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/UploadImagePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/UploadImagePageTest.kt index dfb9aca..6d41b3f 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/UploadImagePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/UploadImagePageTest.kt @@ -67,7 +67,7 @@ class UploadImagePageTest : WebPageTest() { addAlbum("parent-id", parentAlbum) addHttpRequestPart("parent", "parent-id") addHttpRequestPart("title", "title") - addUploadedFile("image", "image.png", "image/png", "no-image.png") + addUploadedFile("image", "image.png", "image/png", "upload-image-invalid-image.png") verifyNoRedirect { verify(core, never()).createTemporaryImage(any(), any()) assertThat(templateContext["messages"] as String?, equalTo("Page.UploadImage.Error.InvalidImage")) @@ -81,7 +81,7 @@ class UploadImagePageTest : WebPageTest() { addHttpRequestPart("parent", "parent-id") addHttpRequestPart("title", "Title") addHttpRequestPart("description", "Description") - addUploadedFile("image", "image.png", "image/png", "image.png") + addUploadedFile("image", "upload-image-value-image.png", "image/png", "upload-image-value-image.png") val temporaryImage = TemporaryImage("temp-image") val imageModifier = mockBuilder() val image = mock().apply { diff --git a/src/test/resources/net/pterodactylus/sone/web/pages/image.png b/src/test/resources/net/pterodactylus/sone/web/pages/image.png deleted file mode 100644 index 6daa837..0000000 Binary files a/src/test/resources/net/pterodactylus/sone/web/pages/image.png and /dev/null differ diff --git a/src/test/resources/net/pterodactylus/sone/web/pages/no-image.png b/src/test/resources/net/pterodactylus/sone/web/pages/no-image.png deleted file mode 100644 index e69de29..0000000 diff --git a/src/test/resources/net/pterodactylus/sone/web/pages/upload-image-invalid-image.png b/src/test/resources/net/pterodactylus/sone/web/pages/upload-image-invalid-image.png new file mode 100644 index 0000000..e69de29 diff --git a/src/test/resources/net/pterodactylus/sone/web/pages/upload-image-value-image.png b/src/test/resources/net/pterodactylus/sone/web/pages/upload-image-value-image.png new file mode 100644 index 0000000..6daa837 Binary files /dev/null and b/src/test/resources/net/pterodactylus/sone/web/pages/upload-image-value-image.png differ