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