Package org.apache.abdera.util.iri

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


  }  

  public static void testSection412MultipleContents() throws Exception {
    //http://feedvalidator.org/testcases/atom/4.1.2/multiple-contents.xml
    //Note: not implemented
    IRI uri = baseURI.resolve("4.1.2/multiple-contents.xml");
    Document<Feed> doc = get(uri);
    assertNotNull(doc);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertEquals(entry.getContent(), "No big deal");
  }  
View Full Code Here


    assertEquals(entry.getContent(), "No big deal");
  }  
 
  public static void testSection412MultipleContributors() throws Exception {
    //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);
   
    Feed feed = doc.getRoot();
    assertNotNull(feed);
View Full Code Here

    }
  }
 
  public static void testSection412MultipleIds() throws Exception {
    //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);
    assertEquals(doc.getRoot().getEntries().get(0).getId(), new IRI("urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"));
  }  
View Full Code Here

    assertEquals(doc.getRoot().getEntries().get(0).getId(), new IRI("urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"));
  }  
 
  public static void testSection412MultiplePublished() throws Exception {
    //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);
    Date d = AtomDate.parse("2003-12-11T11:13:56Z");
    assertEquals(doc.getRoot().getEntries().get(0).getPublished(), d);
  }  
View Full Code Here

    assertEquals(doc.getRoot().getEntries().get(0).getPublished(), d);
  }  
 
  public static void testSection412MultipleRights() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertEquals(entry.getRights(), "Public Domain");
  }  
View Full Code Here

    assertEquals(entry.getRights(), "Public Domain");
  }  
 
  public static void testSection412MultipleSources() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    Source source = entry.getSource();
    assertEquals(source.getId(), new IRI("urn:uuid:9b056ae0-f778-11d9-8cd6-0800200c9a66"));
  }  
View Full Code Here

    assertEquals(source.getId(), new IRI("urn:uuid:9b056ae0-f778-11d9-8cd6-0800200c9a66"));
  }  
 
  public static void testSection412MultipleSummaries() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertEquals(entry.getSummary(), "Some text.");
  }  
View Full Code Here

    assertEquals(entry.getSummary(), "Some text.");
  }  
 
  public static void testSection412MultipleTitles() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertEquals(entry.getTitle(), "Atom-Powered Robots Run Amok");
  }  
View Full Code Here

    assertEquals(entry.getTitle(), "Atom-Powered Robots Run Amok");
  }  
 
  public static void testSection412MultipleUpdated() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    Date d = AtomDate.parse("2003-12-13T18:30:02Z");
    assertEquals(entry.getUpdated(), d);
View Full Code Here

    assertEquals(entry.getUpdated(), d);
  }  
 
  public static void testSection412NoContentOrAlternate() throws Exception {
    //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);
    Entry entry = doc.getRoot().getEntries().get(0);
    assertNull(entry.getContent());
    assertNull(entry.getAlternateLink());
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.