Package org.apache.abdera.util.iri

Examples of org.apache.abdera.util.iri.IRI


    assertNotNull(entry.getSource().getAuthor());
  }
 
  public static void testSection412LinkFullUri() throws Exception {
    //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);
   
    Feed feed = doc.getRoot();
    assertNotNull(feed);
View Full Code Here


    }
  }
 
  public static void testSection412LinkSameRelDifferentTypes() throws Exception {
    //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);
   
    Feed feed = doc.getRoot();
    assertNotNull(feed);
View Full Code Here

    }
  }
 
  public static void testSection412LinkSameRelTypeDifferentHreflang() throws Exception {
    //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);
    List<Link> links = doc.getRoot().getEntries().get(0).getLinks("alternate");
    assertEquals(links.size(),2);
    assertEquals(links.get(0).getHrefLang(), "es-es");
View Full Code Here

    assertEquals(links.get(1).getHrefLang(), "en-us");
  }
 
  public static void testSection412LinkSameRelTypeHreflang() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertEquals(entry.getAlternateLink().getResolvedHref(), new IRI("http://example.org/2003/12/13/atom02"));
  }
View Full Code Here

    assertEquals(entry.getAlternateLink().getResolvedHref(), new IRI("http://example.org/2003/12/13/atom02"));
  }
 
  public static void testSection412LinkSameRelTypeNoHreflang() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertEquals(entry.getAlternateLink().getResolvedHref(), new IRI("http://example.org/2003/12/13/atom02"));
  }
View Full Code Here

    assertEquals(entry.getAlternateLink().getResolvedHref(), new IRI("http://example.org/2003/12/13/atom02"));
  }
 
  public static void testSection412MissingId() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertNull(entry.getId());
 
View Full Code Here

    assertNull(entry.getId());
 

  public static void testSection412MissingTitle() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertNull(entry.getTitle());
 
View Full Code Here

    assertNull(entry.getTitle());
 
 
  public static void testSection412MissingUpdated() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertNull(entry.getUpdated());
 
View Full Code Here

    assertNull(entry.getUpdated());
 
 
  public static void testSection412MultiEnclosureTest() throws Exception {
    //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);
   
    Feed feed = doc.getRoot();
    assertNotNull(feed);
View Full Code Here

    }
  } 
 
  public static void testSection412MultipleCategories() throws Exception {
    //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);
   
    Feed feed = doc.getRoot();
    assertNotNull(feed);
View Full Code Here

TOP

Related Classes of org.apache.abdera.util.iri.IRI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.