Person person = feed.getAuthor();
assertNotNull(person);
assertEquals("John Doe", person.getName());
assertNull(person.getEmail());
assertNull(person.getUri());
IRIElement id = feed.getIdElement();
assertNotNull(id);
assertEquals(new IRI("urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6"), id.getValue());
List<Entry> entries = feed.getEntries();
assertEquals(1, entries.size());
for (Entry entry : entries) {
title = entry.getTitleElement();
assertNotNull(title);
assertEquals(Text.Type.TEXT, title.getTextType());
value = title.getValue();
assertEquals("Atom-Powered Robots Run Amok", value);
links = entry.getLinks();
assertEquals(1, links.size());
for (Link link : links) {
assertNull(link.getRel()); // it's an alternate link
assertEquals(new IRI("http://example.org/2003/12/13/atom03"), link.getHref());
assertNull(link.getHrefLang());
assertNull(link.getMimeType());
assertNull(link.getTitle());
assertEquals(-1, link.getLength());
}
links = entry.getLinks(Link.REL_ALTERNATE);
assertEquals(1, links.size());
links = entry.getLinks(Link.REL_RELATED);
assertEquals(0, links.size());
id = entry.getIdElement();
assertNotNull(id);
assertEquals(new IRI("urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"), id.getValue());
assertNotNull(entry.getUpdatedElement());
dte = entry.getUpdatedElement();
dt = dte.getValue();
assertNotNull(dt);
c = dt.getCalendar();