Package org.apache.abdera.util.iri

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


     }
   }
  
   public static void testSection4133ContentHtmlWithChildren() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContent(), "Some  text.");
     assertEquals(entry.getContentType(), Content.Type.HTML);
View Full Code Here


     assertEquals(entry.getContentType(), Content.Type.HTML);
   }
  
   public static void testSection4133ContentJpegInvalidBase64() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContentType(), Content.Type.MEDIA);
     assertEquals(entry.getContent(),"insert image here");
View Full Code Here

     assertEquals(entry.getContent(),"insert image here");
   }
  
   public static void testSection4133ContentJpegValidBase64() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContentType(), Content.Type.MEDIA);
     DataHandler dh = entry.getContentElement().getDataHandler();
View Full Code Here

     assertEquals(dh.getContentType(), "image/jpeg");
   }
  
   public static void testSection4133ContentNoTypeEscapedHtml() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContent(), "Some <b>bold</b> text.");
     assertEquals(entry.getContentType(), Content.Type.TEXT);
View Full Code Here

     assertEquals(entry.getContentType(), Content.Type.TEXT);
   }
  
   public static void testSection4133ContentNoTypeWithChildren() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContent().trim(), "Some  text");
     assertEquals(entry.getContentType(), Content.Type.TEXT);
View Full Code Here

     assertEquals(entry.getContentType(), Content.Type.TEXT);
   }  
  
   public static void testSection4133ContentPlainWithChildren() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContent().trim(), "Some  text.");
     assertEquals(entry.getContentType(), Content.Type.MEDIA);
View Full Code Here

     assertEquals(entry.getContentType(), Content.Type.MEDIA);
   }  
  
   public static void testSection4133ContentSvgMixed() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     Content content = entry.getContentElement();
     assertNotNull(content.getValueElement()); // we're pretty forgiving
View Full Code Here

     assertEquals(content.getContentType(), Content.Type.XML);
   }
  
   public static void testSection4133ContentSvg() throws Exception {
     //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);
    
     Feed feed = doc.getRoot();
     assertNotNull(feed);
View Full Code Here

     }
   }
  
   public static void testSection4133ContentTextHtml() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContentType(), Content.Type.MEDIA);
   }
View Full Code Here

     assertEquals(entry.getContentType(), Content.Type.MEDIA);
   }
  
   public static void testSection4133ContentTextWithChildren() throws Exception {
     //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);
     Entry entry = doc.getRoot().getEntries().get(0);
     assertEquals(entry.getContentType(), Content.Type.TEXT);
     assertEquals(entry.getContent().trim(), "Some  text");
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.