Verify that a missing <replies> section does not cause an error.
[Sone.git] / src / test / java / net / pterodactylus / sone / core / SoneParserTest.java
index 20d34dc..ef6487e 100644 (file)
@@ -126,6 +126,11 @@ public class SoneParserTest {
        }
 
        @Test
+       public void verifyThatMissingRepliesDoNotCauseAnError() {
+               soneParser.parseSone(database, originalSone, getXml("missing-replies"));
+       }
+
+       @Test
        public void verifyThatAnEmptyProfileIsParsedWithoutError() {
                Sone sone = soneParser.parseSone(database, originalSone, getXml("empty-profile"));
                assertThat(sone.getProfile().getFirstName(), nullValue());