Package com.colorfulsoftware.atom

Examples of com.colorfulsoftware.atom.Author


    } catch (AtomSpecException r) {
      assertEquals(r.getMessage(), "The person name SHOULD NOT be blank.");
    }

    try {
      Author author = feedDoc.buildAuthor(feedDoc.buildName("someone"),
          feedDoc.buildURI(null), feedDoc.buildEmail(null), null,
          null);
      assertNotNull(author);
    } catch (AtomSpecException r) {
      fail("should not get here.");
View Full Code Here


        if (ent
            .getId()
            .getAtomUri()
            .equals(
                "http://colorfulsoftware.localhost/colorfulsoftware/projects/atomsphere/atom.xml#About")) {
          Author auth = ent.getAuthor("Bill Brown");
          assertNotNull(ent.getAttribute("xmlns"));
          assertNotNull(auth);
          assertNotNull(auth.getAttribute("local:testAttr"));
          Attribute attr1 = auth.getAttribute("local:testAttr");
          assertFalse(attr1.equals(auth.getAttribute("local:blank")));
          assertNull(auth.getAttribute("local:blank"));
          assertNotNull(auth.getExtension("test:test"));
          assertNull(auth.getExtension("local:bunky"));
          assertNull(ent.getAuthor("some other dude"));
          assertNotNull(ent.getContributor("Bill Brown"));
          assertNull(ent.getContributor("some other dude"));
          assertNotNull(ent.getCategory("science"));
          assertNull(ent.getCategory("nothing"));
          assertNotNull(ent.getLink("alternate"));
          assertNull(ent.getLink("http://www.fakeness.net"));
          assertNotNull(ent.getExtension("local:element"));
          assertNull(ent.getExtension("local:notthere"));
          assertNotNull(ent.getPublished().getAttribute("xmlns"));
          assertNotNull(ent.getPublished().getDateTime());
          assertNull(ent.getSummary().getAttribute("sayWhat"));

          Contributor cont = ent.getContributor("Bill Brown");
          assertNotNull(cont);
          assertNotNull(cont.getExtension("test:test"));
          assertNotNull(cont.getAttribute("local:testAttr"));
          attr1 = cont.getAttribute("local:testAttr");
          assertFalse(attr1.equals(auth.getAttribute("local:blank")));
          assertNull(auth.getAttribute("local:blank"));
          assertNotNull(auth.getExtension("test:test"));
          assertNull(auth.getExtension("local:bunky"));
          assertNull(ent.getAuthor("some other dude"));
          assertNotNull(ent.getContributor("Bill Brown"));
          assertNull(ent.getContributor("some other dude"));
          assertNotNull(ent.getCategory("science"));
          assertNull(ent.getCategory("nothing"));
View Full Code Here

TOP

Related Classes of com.colorfulsoftware.atom.Author

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.