Don’t throw exception when removing a field that is not in the profile.
[Sone.git] / src / test / java / net / pterodactylus / sone / data / ProfileTest.java
index 33d7fff..ab68bc9 100644 (file)
@@ -119,6 +119,13 @@ public class ProfileTest {
        }
 
        @Test
+       public void testDeletingANonExistingField() {
+               Field testField = profile.addField("TestField");
+               profile.removeField(testField);
+               profile.removeField(testField);
+       }
+
+       @Test
        public void testGettingFieldList() {
                Field firstField = profile.addField("First");
                Field secondField = profile.addField("Second");