+++ /dev/null
-package net.pterodactylus.sone.data;
-
-import net.pterodactylus.sone.data.Profile.Field;
-
-import org.hamcrest.MatcherAssert;
-import org.hamcrest.Matchers;
-import org.junit.Test;
-import org.mockito.Mockito;
-
-/**
- * Unit test for {@link Profile}.
- */
-public class ProfileTest {
-
- private final Sone sone = Mockito.mock(Sone.class);
- private final Profile profile = new Profile(sone);
-
- @Test
- public void newFieldsAreInitializedWithAnEmptyString() {
- Field newField = profile.addField("testField");
- MatcherAssert.assertThat(newField.getValue(), Matchers.is(""));
- }
-
-}
--- /dev/null
+package net.pterodactylus.sone.data
+
+import net.pterodactylus.sone.test.*
+import org.hamcrest.MatcherAssert.*
+import org.hamcrest.Matchers.*
+import org.junit.*
+
+/**
+ * Unit test for [Profile].
+ */
+class ProfileTest {
+
+ private val sone = mock<Sone>()
+ private val profile = Profile(sone)
+
+ @Test
+ fun `new fields are initialized with an empty string`() {
+ val newField = profile.addField("testField")
+ assertThat(newField.value, equalTo(""))
+ }
+
+}