+++ /dev/null
-package net.pterodactylus.sone.data.impl;
-
-import net.pterodactylus.sone.data.Image;
-import net.pterodactylus.sone.data.Image.Modifier.ImageTitleMustNotBeEmpty;
-
-import org.junit.Test;
-
-/**
- * Unit test for {@link ImageImpl}.
- */
-public class ImageImplTest {
-
- private final Image image = new ImageImpl();
-
- @Test(expected = ImageTitleMustNotBeEmpty.class)
- public void modifierDoesNotAllowTitleDoBeEmpty() {
- image.modify().setTitle("").update();
- }
-
-}
--- /dev/null
+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()
+ }
+
+}