abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From calav...@apache.org
Subject svn commit: r679407 [2/2] - /incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FeedValidatorTest.java
Date Thu, 24 Jul 2008 13:37:53 GMT

Modified: incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FeedValidatorTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FeedValidatorTest.java?rev=679407&r1=679406&r2=679407&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FeedValidatorTest.java (original)
+++ incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FeedValidatorTest.java Thu Jul 24 06:37:53 2008
@@ -73,7 +73,7 @@
     // http://feedvalidator.org/testcases/atom/1.1/brief-noerror.xml
     IRI uri = baseURI.resolve("1.1/brief-noerror.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     assertNotNull(feed);
     Text title = feed.getTitleElement();
@@ -156,7 +156,7 @@
     //http://feedvalidator.org/testcases/atom/1.1/extensive-noerror.xml
     IRI uri = baseURI.resolve("1.1/extensive-noerror.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     assertNotNull(feed);
     assertNotNull(feed.getTitleElement());
@@ -252,7 +252,7 @@
     IRI uri = baseURI.resolve("1.2/missing-namespace.xml");
     Document<?> doc = null;
     doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertFalse(doc.getRoot() instanceof Feed);
   }
   
@@ -260,7 +260,7 @@
     //http://feedvalidator.org/testcases/atom/1.2/prefixed-namespace.xml
     IRI uri = baseURI.resolve("1.2/prefixed-namespace.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     assertNotNull(feed);
     assert(feed.getQName().getPrefix().equals("atom"));
@@ -271,7 +271,7 @@
     IRI uri = baseURI.resolve("1.2/wrong-namespace-case.xml");
     Document<?> doc = null;
     doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertFalse(doc.getRoot() instanceof Feed);
   }
 
@@ -280,7 +280,7 @@
     IRI uri = baseURI.resolve("1.2/wrong-namespace.xml");
     Document<?> doc = null;
     doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertFalse(doc.getRoot() instanceof Feed);
   }
   
@@ -288,7 +288,7 @@
     //http://feedvalidator.org/testcases/atom/2/brief-entry-noerror.xml
     IRI uri = baseURI.resolve("2/brief-entry-noerror.xml");
     Document<Entry> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot();
     assertNotNull(entry);
     assertNotNull(entry.getTitleElement());
@@ -308,7 +308,7 @@
     //http://feedvalidator.org/testcases/atom/2/infoset-attr-order.xml
     IRI uri = baseURI.resolve("2/infoset-attr-order.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     assertNotNull(feed);
     List<Link> links = feed.getLinks(Link.REL_ALTERNATE);
@@ -323,7 +323,7 @@
     //http://feedvalidator.org/testcases/atom/2/infoset-cdata.xml
     IRI uri = baseURI.resolve("2/infoset-cdata.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     List<Entry> entries = feed.getEntries();
     for (Entry entry : entries) {
@@ -340,7 +340,7 @@
     //http://feedvalidator.org/testcases/atom/2/infoset-char-ref.xml
     IRI uri = baseURI.resolve("2/infoset-char-ref.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     List<Entry> entries = feed.getEntries();
     for (Entry entry : entries) {
@@ -356,7 +356,7 @@
     //http://feedvalidator.org/testcases/atom/2/infoset-element-whitespace.xml
     IRI uri = baseURI.resolve("2/infoset-element-whitespace.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     assertNotNull(feed);
     Link link = feed.getAlternateLink();
@@ -368,7 +368,7 @@
     //http://feedvalidator.org/testcases/atom/2/infoset-empty1.xml
     IRI uri = baseURI.resolve("2/infoset-empty1.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     assertNotNull(feed);
     Entry entry = feed.getEntries().get(0);
@@ -379,7 +379,7 @@
     //http://feedvalidator.org/testcases/atom/2/infoset-empty2.xml
     IRI uri = baseURI.resolve("2/infoset-empty2.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     assertNotNull(feed);
     Entry entry = feed.getEntries().get(0);
@@ -390,7 +390,7 @@
     //http://feedvalidator.org/testcases/atom/2/infoset-quote-single.xml
     IRI uri = baseURI.resolve("2/infoset-quote-single.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getAlternateLink().getResolvedHref(), new IRI("http://example.org/"));
   }
   
@@ -398,7 +398,7 @@
     //http://feedvalidator.org/testcases/atom/2/invalid-xml-base.xml
     IRI uri = baseURI.resolve("2/invalid-xml-base.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     try {
       feed.getBaseUri();
@@ -411,7 +411,7 @@
     //http://feedvalidator.org/testcases/atom/2/invalid-xml-lang.xml
     IRI uri = baseURI.resolve("2/invalid-xml-lang.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertFalse(java.util.Locale.US.equals(doc.getRoot().getLocale()));
   }
   
@@ -419,7 +419,7 @@
     //http://feedvalidator.org/testcases/atom/2/iri.xml
     IRI uri = baseURI.resolve("2/iri.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -432,7 +432,7 @@
     //http://feedvalidator.org/testcases/atom/2/xml-base-ambiguous.xml
     IRI uri = baseURI.resolve("2/xml-base-ambiguous.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getAlternateLink().getResolvedHref(), new IRI("http://example.org/"));
   }
   
@@ -440,7 +440,7 @@
     //http://feedvalidator.org/testcases/atom/2/xml-base-elem-eq-doc.xml
     IRI uri = baseURI.resolve("2/xml-base-elem-eq-doc.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getAlternateLink().getResolvedHref(), new IRI("http://www.feedvalidator.org/2003/12/13/atom03"));
   }
@@ -449,7 +449,7 @@
     //http://feedvalidator.org/testcases/atom/2/xml-base-elem-ne-doc.xml
     IRI uri = baseURI.resolve("2/xml-base-elem-ne-doc.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getSelfLink().getResolvedHref(),new IRI("http://www.feedvalidator.org/testcases/atom/2/xml-base-elem-ne-doc.xml"));
   }
   
@@ -457,7 +457,7 @@
     //http://feedvalidator.org/testcases/atom/2/xml-base.xml
     IRI uri = baseURI.resolve("2/xml-base.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -471,7 +471,7 @@
     //http://feedvalidator.org/testcases/atom/2/xml-lang-blank.xml
     IRI uri = baseURI.resolve("2/xml-lang-blank.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertNull(doc.getRoot().getLocale());
   }
   
@@ -479,7 +479,7 @@
     //http://feedvalidator.org/testcases/atom/2/xml-lang.xml
     IRI uri = baseURI.resolve("2/xml-lang.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -491,7 +491,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-author-uri.xml
     IRI uri = baseURI.resolve("3/ws-author-uri.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -507,7 +507,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-category-scheme.xml
     IRI uri = baseURI.resolve("3/ws-category-scheme.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -529,7 +529,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-content-src.xml
     IRI uri = baseURI.resolve("3/ws-content-src.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -550,7 +550,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-entry-id.xml
     IRI uri = baseURI.resolve("3/ws-entry-id.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -571,7 +571,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-entry-published.xml
     IRI uri = baseURI.resolve("3/ws-entry-published.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -590,7 +590,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-entry-updated.xml
     IRI uri = baseURI.resolve("3/ws-entry-updated.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -609,7 +609,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-feed-icon.xml
     IRI uri = baseURI.resolve("3/ws-feed-icon.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -624,7 +624,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-feed-id.xml
     IRI uri = baseURI.resolve("3/ws-feed-id.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -639,7 +639,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-feed-logo.xml
     IRI uri = baseURI.resolve("3/ws-feed-logo.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -654,7 +654,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-feed-updated.xml
     IRI uri = baseURI.resolve("3/ws-feed-updated.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -669,7 +669,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-generator-uri.xml
     IRI uri = baseURI.resolve("3/ws-generator-uri.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -686,7 +686,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-link-href.xml
     IRI uri = baseURI.resolve("3/ws-link-href.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -704,7 +704,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-link-rel.xml
     IRI uri = baseURI.resolve("3/ws-link-rel.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertNull(doc.getRoot().getAlternateLink());
   }
   
@@ -712,7 +712,7 @@
     //http://feedvalidator.org/testcases/atom/3/ws-xml-base.xml
     IRI uri = baseURI.resolve("3/ws-xml-base.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -730,7 +730,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1/summary_type_mime.xml
     IRI uri = baseURI.resolve("3.1.1/summary_type_mime.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -745,7 +745,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.1/escaped_text.xml
     IRI uri = baseURI.resolve("3.1.1.1/escaped_text.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -763,7 +763,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.1/example_text_title.xml
     IRI uri = baseURI.resolve("3.1.1.1/example_text_title.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -781,7 +781,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.1/summary_type_mime.xml
     IRI uri = baseURI.resolve("3.1.1.1/summary_type_mime.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -796,7 +796,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.2/example_html_title.xml
     IRI uri = baseURI.resolve("3.1.1.2/example_html_title.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -813,7 +813,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.2/invalid_html.xml
     IRI uri = baseURI.resolve("3.1.1.2/invalid_html.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getSummary().trim(), "<a");
   }
@@ -822,7 +822,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.2/text_with_escaped_html.xml
     IRI uri = baseURI.resolve("3.1.1.2/text_with_escaped_html.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getSummary().trim(), "So I was reading <a href=\"http://example.com/\">example.com</a> the other day, it's really interesting.");
   }
@@ -831,7 +831,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.2/valid_html.xml
     IRI uri = baseURI.resolve("3.1.1.2/valid_html.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getSummary().trim(), "<h3>Heading</h3>");
 
@@ -841,7 +841,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.3/example_xhtml_summary1.xml
     IRI uri = baseURI.resolve("3.1.1.3/example_xhtml_summary1.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -859,7 +859,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.3/example_xhtml_summary2.xml
     IRI uri = baseURI.resolve("3.1.1.3/example_xhtml_summary2.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -877,7 +877,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.3/example_xhtml_summary3.xml
     IRI uri = baseURI.resolve("3.1.1.3/example_xhtml_summary3.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -895,7 +895,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.3/missing_xhtml_div.xml
     IRI uri = baseURI.resolve("3.1.1.3/missing_xhtml_div.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -913,7 +913,7 @@
     //http://feedvalidator.org/testcases/atom/3.1.1.3/xhtml_named_entity.xml
     IRI uri = baseURI.resolve("3.1.1.3/xhtml_named_entity.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Feed feed = doc.getRoot();
     assertNotNull(feed);
     try {
@@ -932,7 +932,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.1/multiple-names.xml
     IRI uri = baseURI.resolve("3.2.1/multiple-names.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getContributors().get(0).getName(),"George Washington");
   }
   
@@ -940,7 +940,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.1/no-name.xml
     IRI uri = baseURI.resolve("3.2.1/no-name.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertNull(doc.getRoot().getContributors().get(0).getName());
   }
   
@@ -948,7 +948,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.2/invalid-uri.xml
     IRI uri = baseURI.resolve("3.2.2/invalid-uri.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -966,7 +966,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.2/multiple-uris.xml
     IRI uri = baseURI.resolve("3.2.2/multiple-uris.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getContributors().get(0).getUri(), new IRI("http://example.com/~jane/"));
   }
   
@@ -974,7 +974,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.2/relative-ref.xml
     IRI uri = baseURI.resolve("3.2.2/relative-ref.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -989,7 +989,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.3/email-rss20-style.xml
     IRI uri = baseURI.resolve("3.2.3/email-rss20-style.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1007,7 +1007,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.3/email-with-name.xml
     IRI uri = baseURI.resolve("3.2.3/email-with-name.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1025,7 +1025,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.3/email-with-plus.xml
     IRI uri = baseURI.resolve("3.2.3/email-with-plus.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1039,7 +1039,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.3/invalid-email.xml
     IRI uri = baseURI.resolve("3.2.3/invalid-email.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1057,7 +1057,7 @@
     //http://feedvalidator.org/testcases/atom/3.2.3/multiple-emails.xml
     IRI uri = baseURI.resolve("3.2.3/multiple-emails.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getContributors().get(0).getEmail(), "jane@example.com");
   }
   
@@ -1065,7 +1065,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/duplicate-updated.xml
     IRI uri = baseURI.resolve("3.3/duplicate-updated.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Date d = AtomDate.parse("2003-12-13T18:30:02Z");
     for (Entry entry : doc.getRoot().getEntries()) {
       Date date = entry.getUpdated();
@@ -1077,7 +1077,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/lowercase-updated.xml
     IRI uri = baseURI.resolve("3.3/lowercase-updated.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1092,7 +1092,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_bad_day.xml
     IRI uri = baseURI.resolve("3.3/published_bad_day.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Date d = AtomDate.parse("2003-07-32T15:51:30-05:00");
     assertEquals(doc.getRoot().getEntries().get(0).getPublished(),d);
   }
@@ -1101,7 +1101,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_bad_day2.xml
     IRI uri = baseURI.resolve("3.3/published_bad_day2.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     // this is an invalid date, but we don't care because we're not doing
     // validation.  Better run those feeds through the feed validator :-)
     Date d = AtomDate.parse("2003-06-31T15:51:30-05:00");
@@ -1112,7 +1112,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_bad_hours.xml
     IRI uri = baseURI.resolve("3.3/published_bad_hours.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Date d = AtomDate.parse("2003-07-01T25:51:30-05:00");
     assertEquals(doc.getRoot().getEntries().get(0).getPublished(),d);
   }
@@ -1121,7 +1121,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_bad_minutes.xml
     IRI uri = baseURI.resolve("3.3/published_bad_minutes.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Date d = AtomDate.parse("2003-07-01T01:61:30-05:00");
     assertEquals(doc.getRoot().getEntries().get(0).getPublished(),d);
   }
@@ -1130,7 +1130,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_bad_month.xml
     IRI uri = baseURI.resolve("3.3/published_bad_month.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Date d = AtomDate.parse("2003-13-01T15:51:30-05:00");
     assertEquals(doc.getRoot().getEntries().get(0).getPublished(),d);
   }
@@ -1139,7 +1139,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_bad_seconds.xml
     IRI uri = baseURI.resolve("3.3/published_bad_seconds.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Date d = AtomDate.parse("2003-07-01T01:55:61-05:00");
     assertEquals(doc.getRoot().getEntries().get(0).getPublished(),d);
   }
@@ -1148,7 +1148,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_date_only.xml
     IRI uri = baseURI.resolve("3.3/published_date_only.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1166,7 +1166,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_extra_spaces.xml
     IRI uri = baseURI.resolve("3.3/published_extra_spaces.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1184,7 +1184,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_extra_spaces2.xml
     IRI uri = baseURI.resolve("3.3/published_extra_spaces2.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1202,7 +1202,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_extra_spaces3.xml
     IRI uri = baseURI.resolve("3.3/published_extra_spaces3.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1220,7 +1220,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_extra_spaces4.xml
     IRI uri = baseURI.resolve("3.3/published_extra_spaces4.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1238,7 +1238,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_extra_spaces5.xml
     IRI uri = baseURI.resolve("3.3/published_extra_spaces5.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1256,7 +1256,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_fractional_second.xml
     IRI uri = baseURI.resolve("3.3/published_fractional_second.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1270,7 +1270,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_hours_minutes.xml
     IRI uri = baseURI.resolve("3.3/published_hours_minutes.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1288,7 +1288,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_no_colons.xml
     IRI uri = baseURI.resolve("3.3/published_no_colons.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1306,7 +1306,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_no_hyphens.xml
     IRI uri = baseURI.resolve("3.3/published_no_hyphens.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1324,7 +1324,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_no_t.xml
     IRI uri = baseURI.resolve("3.3/published_no_t.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1342,7 +1342,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_no_timezone_colon.xml
     IRI uri = baseURI.resolve("3.3/published_no_timezone_colon.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1360,7 +1360,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_no_year.xml
     IRI uri = baseURI.resolve("3.3/published_no_year.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1378,7 +1378,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_seconds.xml
     IRI uri = baseURI.resolve("3.3/published_seconds.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1392,7 +1392,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_utc.xml
     IRI uri = baseURI.resolve("3.3/published_utc.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1406,7 +1406,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_wrong_format.xml
     IRI uri = baseURI.resolve("3.3/published_wrong_format.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1424,7 +1424,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_year_and_month.xml
     IRI uri = baseURI.resolve("3.3/published_year_and_month.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1442,7 +1442,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/published_year_only.xml
     IRI uri = baseURI.resolve("3.3/published_year_only.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1460,7 +1460,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/updated-example2.xml
     IRI uri = baseURI.resolve("3.3/updated-example2.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1474,7 +1474,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/updated-example3.xml
     IRI uri = baseURI.resolve("3.3/updated-example3.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1488,7 +1488,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/updated-example4.xml
     IRI uri = baseURI.resolve("3.3/updated-example4.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1502,7 +1502,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/updated-future.xml
     IRI uri = baseURI.resolve("3.3/updated-future.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);    
+    if (doc == null) return;    
     Date d = AtomDate.parse("2103-12-13T18:30:02Z");
     assertEquals(doc.getRoot().getEntries().get(0).getUpdated(),d);
   }
@@ -1511,7 +1511,7 @@
     //http://feedvalidator.org/testcases/atom/3.3/updated-past.xml
     IRI uri = baseURI.resolve("3.3/updated-past.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);    
+    if (doc == null) return;    
     Date d = AtomDate.parse("0103-12-13T18:30:02Z");
     assertEquals(doc.getRoot().getEntries().get(0).getUpdated(),d);
   }
@@ -1520,7 +1520,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/author-at-entry-only.xml
     IRI uri = baseURI.resolve("4.1.1/author-at-entry-only.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1534,7 +1534,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/author-at-feed-and-entry.xml
     IRI uri = baseURI.resolve("4.1.1/author-at-feed-and-entry.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1549,7 +1549,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/author-at-feed-only.xml
     IRI uri = baseURI.resolve("4.1.1/author-at-feed-only.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1564,7 +1564,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/authorless-with-no-entries.xml
     IRI uri = baseURI.resolve("4.1.1/authorless-with-no-entries.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1575,7 +1575,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/authorless-with-one-entry.xml
     IRI uri = baseURI.resolve("4.1.1/authorless-with-one-entry.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1590,7 +1590,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/duplicate-entries.xml
     IRI uri = baseURI.resolve("4.1.1/duplicate-entries.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry e1 = doc.getRoot().getEntries().get(0);
     Entry e2 = doc.getRoot().getEntries().get(1);
     assertEquals(e1.getId(),e2.getId());
@@ -1601,7 +1601,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/link-rel-full.xml
     IRI uri = baseURI.resolve("4.1.1/link-rel-full.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Link link = doc.getRoot().getLink("http://xmlns.com/foaf/0.1/");
     assertNotNull(link);
     assertEquals(link.getResolvedHref(), new IRI("http://example.org/foaf"));
@@ -1611,7 +1611,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/misplaced-metadata.xml
     IRI uri = baseURI.resolve("4.1.1/misplaced-metadata.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getId(),new IRI("urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6"));
   }
   
@@ -1619,7 +1619,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/missing-id.xml
     IRI uri = baseURI.resolve("4.1.1/missing-id.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertNull(doc.getRoot().getId());
   }
   
@@ -1627,7 +1627,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/missing-self.xml
     IRI uri = baseURI.resolve("4.1.1/missing-self.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertNull(doc.getRoot().getSelfLink());
   }  
   
@@ -1635,7 +1635,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/missing-titles.xml
     IRI uri = baseURI.resolve("4.1.1/missing-titles.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertNull(doc.getRoot().getTitle());
   }
   
@@ -1643,7 +1643,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/missing-updated.xml
     IRI uri = baseURI.resolve("4.1.1/missing-updated.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertNull(doc.getRoot().getUpdated());
   }
   
@@ -1651,7 +1651,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-alternates-differing.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-alternates-differing.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1663,7 +1663,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-alternates-matching.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-alternates-matching.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getAlternateLink().getResolvedHref(), new IRI("http://example.org/front-page.html"));
   }
   
@@ -1671,7 +1671,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-authors.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-authors.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1683,7 +1683,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-categories.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-categories.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1695,7 +1695,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-contributors.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-contributors.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1707,7 +1707,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-generators.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-generators.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Generator g = doc.getRoot().getGenerator();
     assertEquals(g.getResolvedUri(), new IRI("http://www.example.com/"));
     assertEquals(g.getText().trim(), "Example Toolkit");
@@ -1717,7 +1717,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-icons.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-icons.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getIcon(),new IRI("http://feedvalidator.org/big.icon"));
   }
   
@@ -1725,7 +1725,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-ids.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-ids.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getId(), new IRI("urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6"));
   }  
   
@@ -1733,7 +1733,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-logos.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-logos.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getLogo(),new IRI("http://feedvalidator.org/small.jpg"));
   }
   
@@ -1741,7 +1741,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-related-matching.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-related-matching.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     List<Link> links = doc.getRoot().getLinks("related");
     assertEquals(links.size(),2);
     assertEquals(links.get(0).getResolvedHref(), new IRI("http://example.org/front-page.html"));
@@ -1752,7 +1752,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-rights.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-rights.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getRights(),"Public Domain");
   }
   
@@ -1760,7 +1760,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-subtitles.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-subtitles.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getSubtitle(), "A unique feed, just like all the others");
   }
   
@@ -1768,7 +1768,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-titles.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-titles.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getTitle(), "Example Feed");
   }
   
@@ -1776,7 +1776,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/multiple-updateds.xml
     IRI uri = baseURI.resolve("4.1.1/multiple-updateds.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Date d = AtomDate.parse("2003-12-13T18:30:02Z");
     assertEquals(doc.getRoot().getUpdated(), d);
   }
@@ -1785,7 +1785,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1/zero-entries.xml
     IRI uri = baseURI.resolve("4.1.1/zero-entries.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1796,7 +1796,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1.1/content-src.xml
     IRI uri = baseURI.resolve("4.1.1.1/content-src.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1811,7 +1811,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1.1/empty-content.xml
     IRI uri = baseURI.resolve("4.1.1.1/empty-content.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getEntries().get(0).getContent(),"");
   }
   
@@ -1819,7 +1819,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1.1/empty-title.xml
     IRI uri = baseURI.resolve("4.1.1.1/empty-title.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getEntries().get(0).getTitle(),"");
   }  
   
@@ -1827,7 +1827,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.1.1/no-content-or-summary.xml
     IRI uri = baseURI.resolve("4.1.1.1/no-content-or-summary.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertNull(entry.getContent());
     assertNull(entry.getSummary());
@@ -1837,7 +1837,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/alternate-no-content.xml
     IRI uri = baseURI.resolve("4.1.2/alternate-no-content.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1852,7 +1852,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/content-base64-no-summary.xml
     IRI uri = baseURI.resolve("4.1.2/content-base64-no-summary.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1874,7 +1874,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/content-no-alternate.xml
     IRI uri = baseURI.resolve("4.1.2/content-no-alternate.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1889,7 +1889,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/content-src-no-summary.xml
     IRI uri = baseURI.resolve("4.1.2/content-src-no-summary.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertNull(entry.getSummary());
     assertEquals(entry.getContentElement().getResolvedSrc(), new IRI("http://example.org/2003/12/13/atom03"));
@@ -1899,7 +1899,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/entry-source-author.xml
     IRI uri = baseURI.resolve("4.1.2/entry-source-author.xml");
     Document<Entry> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot();
     assertNotNull(entry);
     assertNotNull(entry.getSource());
@@ -1910,7 +1910,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/link-full-uri.xml
     IRI uri = baseURI.resolve("4.1.2/link-full-uri.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1925,7 +1925,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/link-same-rel-different-types.xml
     IRI uri = baseURI.resolve("4.1.2/link-same-rel-different-types.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -1940,7 +1940,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/link-same-rel-type-different-hreflang.xml
     IRI uri = baseURI.resolve("4.1.2/link-same-rel-type-different-hreflang.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     List<Link> links = doc.getRoot().getEntries().get(0).getLinks("alternate");
     assertEquals(links.size(),2);
     assertEquals(links.get(0).getHrefLang(), "es-es");
@@ -1951,7 +1951,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/link-same-rel-type-hreflang.xml
     IRI uri = baseURI.resolve("4.1.2/link-same-rel-type-hreflang.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getAlternateLink().getResolvedHref(), new IRI("http://example.org/2003/12/13/atom02"));
   }
@@ -1960,7 +1960,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/link-same-rel-type-no-hreflang.xml
     IRI uri = baseURI.resolve("4.1.2/link-same-rel-type-no-hreflang.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getAlternateLink().getResolvedHref(), new IRI("http://example.org/2003/12/13/atom02"));
   }
@@ -1969,7 +1969,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/missing-id.xml
     IRI uri = baseURI.resolve("4.1.2/missing-id.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertNull(entry.getId());
   }  
@@ -1978,7 +1978,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/missing-title.xml
     IRI uri = baseURI.resolve("4.1.2/missing-title.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertNull(entry.getTitle());
   }  
@@ -1987,7 +1987,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/missing-updated.xml
     IRI uri = baseURI.resolve("4.1.2/missing-updated.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertNull(entry.getUpdated());
   }  
@@ -1996,7 +1996,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multi-enclosure-test.xml
     IRI uri = baseURI.resolve("4.1.2/multi-enclosure-test.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -2011,7 +2011,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-categories.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-categories.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -2027,7 +2027,7 @@
     //Note: not implemented
     IRI uri = baseURI.resolve("4.1.2/multiple-contents.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContent(), "No big deal");
   }   
@@ -2036,7 +2036,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-contributors.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-contributors.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -2051,7 +2051,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-ids.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-ids.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     assertEquals(doc.getRoot().getEntries().get(0).getId(), new IRI("urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"));
   }   
   
@@ -2059,7 +2059,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-published.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-published.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Date d = AtomDate.parse("2003-12-11T11:13:56Z");
     assertEquals(doc.getRoot().getEntries().get(0).getPublished(), d);
   }   
@@ -2068,7 +2068,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-rights.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-rights.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getRights(), "Public Domain");
   }   
@@ -2077,7 +2077,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-sources.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-sources.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     Source source = entry.getSource();
     assertEquals(source.getId(), new IRI("urn:uuid:9b056ae0-f778-11d9-8cd6-0800200c9a66"));
@@ -2087,7 +2087,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-summaries.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-summaries.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getSummary(), "Some text.");
   }   
@@ -2096,7 +2096,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-titles.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-titles.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getTitle(), "Atom-Powered Robots Run Amok");
   }   
@@ -2105,7 +2105,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/multiple-updated.xml
     IRI uri = baseURI.resolve("4.1.2/multiple-updated.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     Date d = AtomDate.parse("2003-12-13T18:30:02Z");
     assertEquals(entry.getUpdated(), d);
@@ -2115,7 +2115,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/no-content-or-alternate.xml
     IRI uri = baseURI.resolve("4.1.2/no-content-or-alternate.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertNull(entry.getContent());
     assertNull(entry.getAlternateLink());
@@ -2125,7 +2125,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/related-same-rel-type-hreflang.xml
     IRI uri = baseURI.resolve("4.1.2/related-same-rel-type-hreflang.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     List<Link> links = entry.getLinks("related");
     assertEquals(links.size(),2);
@@ -2137,7 +2137,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/summary-content-base64.xml
     IRI uri = baseURI.resolve("4.1.2/summary-content-base64.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -2154,7 +2154,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.2/summary-content-src.xml
     IRI uri = baseURI.resolve("4.1.2/summary-content-src.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -2174,7 +2174,7 @@
    //http://feedvalidator.org/testcases/atom/4.1.3.1/type-html.xml
     IRI uri = baseURI.resolve("4.1.3.1/type-html.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     
     Feed feed = doc.getRoot();
     assertNotNull(feed);
@@ -2189,7 +2189,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.3.1/type-multipart-alternative.xml
     IRI uri = baseURI.resolve("4.1.3.1/type-multipart-alternative.xml");
     Document<Feed> doc = get(uri);
-    assertNotNull(doc);
+    if (doc == null) return;
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContentElement().getMimeType().toString(), "multipart/alternative");
   }
@@ -2198,7 +2198,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.3.1/type-text-html.xml
      IRI uri = baseURI.resolve("4.1.3.1/type-text-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2215,7 +2215,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.3.1/type-text.xml
      IRI uri = baseURI.resolve("4.1.3.1/type-text.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2230,7 +2230,7 @@
     //http://feedvalidator.org/testcases/atom/4.1.3.1/type-xhtml.xml
      IRI uri = baseURI.resolve("4.1.3.1/type-xhtml.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2245,7 +2245,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.1/type-xhtml.xml
      IRI uri = baseURI.resolve("4.1.3.1/type-xml.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2260,7 +2260,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-extra-child.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-extra-child.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Content content = entry.getContentElement();
      assertEquals(content.getResolvedSrc(), new IRI("http://example.org/2003/12/13/atom03"));
@@ -2272,7 +2272,7 @@
      try {
        IRI uri = baseURI.resolve("4.1.3.2/content-src-extra-text.xml");
        Document<Feed> doc = get(uri);
-       assertNotNull(doc);
+       if (doc == null) return;
        Entry entry = doc.getRoot().getEntries().get(0);
        Content content = entry.getContentElement();
        assertEquals(content.getResolvedSrc(), new IRI("http://example.org/2003/12/13/atom03"));
@@ -2283,7 +2283,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-invalid-iri.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-invalid-iri.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2303,7 +2303,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-no-type-no-error.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-no-type-no-error.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Content content = entry.getContentElement();
      assertEquals(content.getResolvedSrc(), new IRI("http://example.org/2003/12/13/atom03"));
@@ -2314,7 +2314,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-no-type.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-no-type.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Content content = entry.getContentElement();
      assertEquals(content.getResolvedSrc(), new IRI("http://example.org/2003/12/13/atom03"));
@@ -2325,7 +2325,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-relative-ref.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-relative-ref.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2342,7 +2342,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-type-html.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-type-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContent(),"");
      assertEquals(entry.getContentType(), Content.Type.HTML);
@@ -2353,7 +2353,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-type-text-html.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-type-text-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContent(),"");
      assertEquals(entry.getContentType(), Content.Type.MEDIA);
@@ -2364,7 +2364,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-type-text.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-type-text.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContent(),"");
      assertEquals(entry.getContentType(), Content.Type.TEXT);
@@ -2375,7 +2375,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.2/content-src-type-xhtml.xml
      IRI uri = baseURI.resolve("4.1.3.2/content-src-type-xhtml.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertNull(entry.getContent());
      assertEquals(entry.getContentType(), Content.Type.XHTML);
@@ -2386,7 +2386,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-application-xthml.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-application-xthml.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2402,7 +2402,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-html-with-children.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-html-with-children.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContent(), "Some  text.");
      assertEquals(entry.getContentType(), Content.Type.HTML);
@@ -2412,7 +2412,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-jpeg-invalid-base64.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-jpeg-invalid-base64.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.MEDIA);
      assertEquals(entry.getContent(),"insert image here");
@@ -2422,7 +2422,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-jpeg-valid-base64.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-jpeg-valid-base64.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.MEDIA);
      DataHandler dh = entry.getContentElement().getDataHandler();
@@ -2439,7 +2439,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-no-type-escaped-html.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-no-type-escaped-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContent(), "Some <b>bold</b> text.");
      assertEquals(entry.getContentType(), Content.Type.TEXT);
@@ -2449,7 +2449,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-no-type-with-children.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-no-type-with-children.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContent().trim(), "Some  text");
      assertEquals(entry.getContentType(), Content.Type.TEXT);
@@ -2459,7 +2459,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-plain-with-children.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-plain-with-children.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContent().trim(), "Some  text.");
      assertEquals(entry.getContentType(), Content.Type.MEDIA);
@@ -2469,7 +2469,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-svg-mixed.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-svg-mixed.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Content content = entry.getContentElement();
      assertNotNull(content.getValueElement()); // we're pretty forgiving
@@ -2480,7 +2480,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-svg.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-svg.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2496,7 +2496,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-text-html.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-text-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.MEDIA);
    }
@@ -2505,7 +2505,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-text-with-children.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-text-with-children.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.TEXT);
      assertEquals(entry.getContent().trim(), "Some  text");
@@ -2515,7 +2515,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-xhtml-escaped.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-xhtml-escaped.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.XHTML);
      String c = entry.getContent().trim();
@@ -2527,7 +2527,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-xhtml-mixed.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-xhtml-mixed.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.XHTML);
      String c = entry.getContent().trim();
@@ -2539,7 +2539,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-xhtml-no-xhtml-div.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-xhtml-no-xhtml-div.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.XHTML);
      assertNull(entry.getContent());
@@ -2549,7 +2549,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-xhtml-notmarkup.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-xhtml-notmarkup.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.XHTML);
      String c = entry.getContent();
@@ -2561,7 +2561,7 @@
      //http://feedvalidator.org/testcases/atom/4.1.3.3/content-xhtml-text-children.xml
      IRI uri = baseURI.resolve("4.1.3.3/content-xhtml-text-children.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getContentType(), Content.Type.XHTML);
      assertNull(entry.getContent());
@@ -2571,7 +2571,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.2.1/category-no-term.xml
      IRI uri = baseURI.resolve("4.2.2.1/category-no-term.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      List<Category> cats = entry.getCategories();
      assertEquals(cats.size(),1);
@@ -2582,7 +2582,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.2.2/category-no-scheme.xml
      IRI uri = baseURI.resolve("4.2.2.2/category-no-scheme.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      List<Category> cats = entry.getCategories();
      assertEquals(cats.size(),1);
@@ -2593,7 +2593,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.2.2/category-scheme-invalid-iri.xml
      IRI uri = baseURI.resolve("4.2.2.2/category-scheme-invalid-iri.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed);
@@ -2614,7 +2614,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.2.2/category-scheme-rel-iri.xml
      IRI uri = baseURI.resolve("4.2.2.2/category-scheme-rel-iri.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Category cat = entry.getCategories().get(0);
      assertEquals(cat.getScheme(), new IRI("mine"));
@@ -2624,7 +2624,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.2.3/category-label-escaped-html.xml
      IRI uri = baseURI.resolve("4.2.2.3/category-label-escaped-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Category cat = entry.getCategories().get(0);
      assertEquals(cat.getLabel(), "<b>business</b>");
@@ -2634,7 +2634,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.2.3/category-no-label.xml
      IRI uri = baseURI.resolve("4.2.2.3/category-no-label.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Category cat = entry.getCategories().get(0);
      assertNull(cat.getLabel());
@@ -2644,7 +2644,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.4/generator-escaped-html.xml
      IRI uri = baseURI.resolve("4.2.4/generator-escaped-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertNotNull(feed);
      Generator generator = feed.getGenerator();
@@ -2655,7 +2655,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.4/generator-invalid-iri.xml
      IRI uri = baseURI.resolve("4.2.4/generator-invalid-iri.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertNotNull(feed);
      Generator generator = feed.getGenerator();
@@ -2671,7 +2671,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.4/generator-no-text.xml
      IRI uri = baseURI.resolve("4.2.4/generator-no-text.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertNotNull(feed);
      Generator generator = feed.getGenerator();
@@ -2682,7 +2682,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.4/generator-with-child.xml
      IRI uri = baseURI.resolve("4.2.4/generator-with-child.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertNotNull(feed);
      Generator generator = feed.getGenerator();
@@ -2693,7 +2693,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.4/generator_relative_ref.xml
      IRI uri = baseURI.resolve("4.2.4/generator_relative_ref.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertNotNull(feed);
      Generator generator = feed.getGenerator();
@@ -2705,7 +2705,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.5/icon_invalid_uri.xml
      IRI uri = baseURI.resolve("4.2.5/icon_invalid_uri.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertNotNull(feed);
      assertNotNull(feed.getIconElement());
@@ -2720,7 +2720,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.5/icon_relative_ref.xml
      IRI uri = baseURI.resolve("4.2.5/icon_relative_ref.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertNotNull(feed);
      assertNotNull(feed.getIconElement());
@@ -2731,7 +2731,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-dot-segments.xml
      IRI uri = baseURI.resolve("4.2.6/id-dot-segments.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(), new IRI("http://example.org/./id/1234"));
      assertEquals(IRI.normalize(doc.getRoot().getId()), new IRI("http://example.org/id/1234"));
    }
@@ -2740,7 +2740,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-empty-fragment-id.xml
      IRI uri = baseURI.resolve("4.2.6/id-empty-fragment-id.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      feed.getIdElement().getValue();
    }
@@ -2749,7 +2749,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-empty-path.xml
      IRI uri = baseURI.resolve("4.2.6/id-empty-path.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("http://example.org"));
    }
    
@@ -2757,7 +2757,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-empty-query.xml
      IRI uri = baseURI.resolve("4.2.6/id-empty-query.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("http://example.org/id/1234?"));
    }
    
@@ -2765,7 +2765,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-explicit-authority.xml
      IRI uri = baseURI.resolve("4.2.6/id-explicit-authority.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("http://:@example.org/id/1234"));
    }
    
@@ -2773,7 +2773,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-explicit-default-port.xml
      IRI uri = baseURI.resolve("4.2.6/id-explicit-default-port.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("http://example.org:80/id/1234"));
    }
    
@@ -2781,7 +2781,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-host-uppercase.xml
      IRI uri = baseURI.resolve("4.2.6/id-host-uppercase.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("http://Example.org/id/1234"));
    }
    
@@ -2789,7 +2789,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-not-uri.xml
      IRI uri = baseURI.resolve("4.2.6/id-not-uri.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      try {
        feed.getIdElement().getValue();
@@ -2802,7 +2802,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-percent-encoded-lower.xml
      IRI uri = baseURI.resolve("4.2.6/id-percent-encoded-lower.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("http://example.org/id/1234?q=%5c"));
    }
    
@@ -2810,7 +2810,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-percent-encoded.xml
      IRI uri = baseURI.resolve("4.2.6/id-percent-encoded.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("http://example.org/%69%64/1234"));     
    }
    
@@ -2818,7 +2818,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-relative-uri.xml
      IRI uri = baseURI.resolve("4.2.6/id-relative-uri.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("/id/1234"));
    }
    
@@ -2826,7 +2826,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-uppercase-scheme.xml
      IRI uri = baseURI.resolve("4.2.6/id-uppercase-scheme.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getId(),new IRI("Http://example.org/id/1234"));
    }
    
@@ -2834,7 +2834,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.6/id-valid-tag-uris.xml
      IRI uri = baseURI.resolve("4.2.6/id-valid-tag-uris.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      // we don't care that they're invalid, at least for now
      assertEquals(doc.getRoot().getId(),new IRI("tag:example.com,2000:"));
    }
@@ -2843,7 +2843,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.1/link-href-invalid.xml
      IRI uri = baseURI.resolve("4.2.7.1/link-href-invalid.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      List<Entry> entries = feed.getEntries();
      for (Entry entry : entries) {
@@ -2862,7 +2862,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.1/link-href-relative.xml
      IRI uri = baseURI.resolve("4.2.7.1/link-href-relative.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      List<Entry> entries = feed.getEntries();
      for (Entry entry : entries) {
@@ -2877,7 +2877,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.1/link-no-href.xml
      IRI uri = baseURI.resolve("4.2.7.1/link-no-href.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Link link = entry.getLinks().get(0);
      assertNull(link.getHref());
@@ -2887,7 +2887,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.2/absolute_rel.xml
      IRI uri = baseURI.resolve("4.2.7.2/absolute_rel.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertEquals(feed.getLinks(Link.REL_ALTERNATE).size(), 1);
      List<Entry> entries = feed.getEntries();
@@ -2900,7 +2900,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.2/empty-path.xml
      IRI uri = baseURI.resolve("4.2.7.2/empty-path.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      List<Link> links = feed.getLinks(Link.REL_ALTERNATE);
      for (Link link : links) {
@@ -2912,7 +2912,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.2/link-rel-isegment-nz-nc.xml
      IRI uri = baseURI.resolve("4.2.7.2/link-rel-isegment-nz-nc.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertNotNull(entry.getAlternateLink());
    }
@@ -2921,7 +2921,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.2/link-rel-relative.xml
      IRI uri = baseURI.resolve("4.2.7.2/link-rel-relative.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Link link = entry.getLink("/foo");
      assertNotNull(link);  // we don't care that it's invalid
@@ -2931,7 +2931,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.2/link-rel-self-match.xml
      IRI uri = baseURI.resolve("4.2.7.2/link-rel-self-match.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getSelfLink().getResolvedHref(), new IRI("http://www.feedvalidator.org/testcases/atom/4.2.7.2/link-rel-self-match.xml"));
    }
    
@@ -2939,7 +2939,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.2/link-rel-self-nomatch.xml
      IRI uri = baseURI.resolve("4.2.7.2/link-rel-self-nomatch.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getSelfLink().getResolvedHref(), new IRI("http://www.feedvalidator.org/testcases/atom/4.2.7.2/link-rel-self-match.xml"));
    }
    
@@ -2947,7 +2947,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.2/self-vs-alternate.xml
      IRI uri = baseURI.resolve("4.2.7.2/self-vs-alternate.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertNull(entry.getAlternateLink());
      Link self = entry.getLink("self");
@@ -2958,7 +2958,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.2/unregistered-rel.xml
      IRI uri = baseURI.resolve("4.2.7.2/unregistered-rel.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertNotNull(doc.getRoot().getLink("service.post"));
    }
    
@@ -2966,7 +2966,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.3/link-type-invalid-mime.xml
      IRI uri = baseURI.resolve("4.2.7.3/link-type-invalid-mime.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      List<Entry> entries = feed.getEntries();
      for (Entry entry : entries) {
@@ -2985,7 +2985,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.3/link-type-parameters.xml
      IRI uri = baseURI.resolve("4.2.7.3/link-type-parameters.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      List<Entry> entries = feed.getEntries();
      for (Entry entry : entries) {
@@ -3001,7 +3001,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.4/link-hreflang-invalid-language.xml
      IRI uri = baseURI.resolve("4.2.7.4/link-hreflang-invalid-language.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Link link = entry.getAlternateLink();
      assertEquals(link.getHrefLang(), "insert language here");
@@ -3011,7 +3011,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.5/link-title-with-badchars.xml
      IRI uri = baseURI.resolve("4.2.7.5/link-title-with-badchars.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Link link = entry.getAlternateLink();
      assertEquals(link.getTitle(),"This is a \u00A3\u0093test.\u0094");
@@ -3021,7 +3021,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.5/link-title-with-html.xml
      IRI uri = baseURI.resolve("4.2.7.5/link-title-with-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Link link = entry.getAlternateLink();
      assertEquals(link.getTitle(),"very, <b>very</b>, scary indeed");
@@ -3031,7 +3031,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.7.6/link-length-not-positive.xml
      IRI uri = baseURI.resolve("4.2.7.6/link-length-not-positive.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Link link = entry.getAlternateLink();
      assertEquals(link.getLength(),-1);
@@ -3041,7 +3041,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.8/logo-invalid-uri.xml
      IRI uri = baseURI.resolve("4.2.8/logo-invalid-uri.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Feed feed = doc.getRoot();
      assertNotNull(feed.getLogoElement());
      try {
@@ -3055,7 +3055,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.8/logo_relative_ref.xml
      IRI uri = baseURI.resolve("4.2.8/logo_relative_ref.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      assertNotNull(feed.getLogoElement());
@@ -3066,7 +3066,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.9/published-invalid-date.xml
      IRI uri = baseURI.resolve("4.2.9/published-invalid-date.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      List<Entry> entries = feed.getEntries();
@@ -3084,7 +3084,7 @@
      try {
        IRI uri = baseURI.resolve("4.2.10/rights-invalid-type.xml");
        Document<Feed> doc = get(uri);
-       assertNotNull(doc);
+       if (doc == null) return;
        doc.getRoot().getRights();
      } catch (Exception e) {}
    }
@@ -3093,7 +3093,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.10/rights-text-with-escaped-html.xml
      IRI uri = baseURI.resolve("4.2.10/rights-text-with-escaped-html.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getRights(),"Copyright &copy; 2005");
    }
    
@@ -3101,7 +3101,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.10/rights-xhtml-no-xmldiv.xml
      IRI uri = baseURI.resolve("4.2.10/rights-xhtml-no-xmldiv.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertNull(doc.getRoot().getRights());
    }
    
@@ -3109,7 +3109,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/missing-id.xml
      IRI uri = baseURI.resolve("4.2.11/missing-id.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Source source = entry.getSource();
      assertNull(source.getId());
@@ -3119,7 +3119,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/missing-title.xml
      IRI uri = baseURI.resolve("4.2.11/missing-title.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Source source = entry.getSource();
      assertNull(source.getTitle());
@@ -3129,7 +3129,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/missing-updated.xml
      IRI uri = baseURI.resolve("4.2.11/missing-updated.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Source source = entry.getSource();
      assertNull(source.getUpdated());
@@ -3139,7 +3139,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-alternates-differing.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-alternates-differing.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Source source = entry.getSource();
      List<Link> links = source.getLinks("alternate");
@@ -3152,7 +3152,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-alternates-matching.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-alternates-matching.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Source source = entry.getSource();
      assertEquals(source.getAlternateLink().getResolvedHref(), new IRI("http://example.org/front-page.html"));
@@ -3162,7 +3162,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-authors.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-authors.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      List<Entry> entries = feed.getEntries();
@@ -3177,7 +3177,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-categories.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-categories.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      List<Entry> entries = feed.getEntries();
@@ -3192,7 +3192,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-contributors.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-contributors.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      
      Feed feed = doc.getRoot();
      List<Entry> entries = feed.getEntries();
@@ -3207,7 +3207,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-generators.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-generators.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Generator g = entry.getSource().getGenerator();
      assertEquals(g.getResolvedUri(), new IRI("http://www.example.com/"));
@@ -3217,7 +3217,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-icons.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-icons.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getSource().getIcon(), new IRI("http://feedvalidator.org/big.icon"));
    }
@@ -3226,7 +3226,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-ids.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-ids.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getSource().getId(), new IRI("urn:uuid:28213c50-f84c-11d9-8cd6-0800200c9a66"));
    }   
@@ -3235,7 +3235,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-logos.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-logos.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getSource().getLogo(), new IRI("http://feedvalidator.org/small.jpg"));
    }
@@ -3244,7 +3244,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-rights.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-rights.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getSource().getRights().trim(), "Public Domain");
    }
@@ -3253,7 +3253,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-subtitles.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-subtitles.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getSource().getSubtitle().trim(), "A unique feed, just like all the others");
    }
@@ -3262,7 +3262,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-titles.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-titles.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      assertEquals(entry.getSource().getTitle().trim(), "Source of all knowledge");
    }
@@ -3271,7 +3271,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/multiple-updateds.xml
      IRI uri = baseURI.resolve("4.2.11/multiple-updateds.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Date d = AtomDate.parse("2003-12-13T17:46:27Z");
      assertEquals(entry.getSource().getUpdated(), d);
@@ -3281,7 +3281,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.11/source-entry.xml
      IRI uri = baseURI.resolve("4.2.11/source-entry.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      Entry entry = doc.getRoot().getEntries().get(0);
      Source source = entry.getSource();
      assertNotNull(source);
@@ -3291,7 +3291,7 @@
      //http://feedvalidator.org/testcases/atom/4.2.12/subtitle-blank.xml
      IRI uri = baseURI.resolve("4.2.12/subtitle-blank.xml");
      Document<Feed> doc = get(uri);
-     assertNotNull(doc);
+     if (doc == null) return;
      assertEquals(doc.getRoot().getSubtitle(),"");
    }
    
@@ -3299,7 +3299,7 @@

[... 18 lines stripped ...]


Mime
View raw message