Replace image implementation test with Kotlin version
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / data / impl / ImageImplTest.kt
diff --git a/src/test/kotlin/net/pterodactylus/sone/data/impl/ImageImplTest.kt b/src/test/kotlin/net/pterodactylus/sone/data/impl/ImageImplTest.kt
new file mode 100644 (file)
index 0000000..022bde0
--- /dev/null
@@ -0,0 +1,18 @@
+package net.pterodactylus.sone.data.impl
+
+import net.pterodactylus.sone.data.Image
+import org.junit.Test
+
+/**
+ * Unit test for [ImageImpl].
+ */
+class ImageImplTest {
+
+    private val image = ImageImpl()
+
+    @Test(expected = Image.Modifier.ImageTitleMustNotBeEmpty::class)
+    fun `modifier does not allow title to be empty`() {
+        image.modify().setTitle("").update()
+    }
+
+}