01: package com.sun.syndication.unittest;
02:
03: import com.sun.syndication.feed.synd.SyndEntry;
04: import com.sun.syndication.feed.synd.SyndFeed;
05:
06: import java.util.ArrayList;
07: import java.util.Iterator;
08: import java.util.List;
09:
10: public class TestSyndFeedAtom10b extends FeedTest {
11: public TestSyndFeedAtom10b() {
12: super ("atom_1.0_b.xml");
13: }
14:
15: public void testXmlBaseConformance() throws Exception {
16: List errors = new ArrayList();
17: SyndFeed feed = getSyndFeed();
18: List entries = feed.getEntries();
19: for (int index = 0; index < entries.size(); index++) {
20: SyndEntry entry = (SyndEntry) entries.get(index);
21: assertEquals("Incorrect URI: " + entry.getLink()
22: + " in entry [" + entry.getTitle() + "]",
23: "http://example.org/tests/base/result.html", entry
24: .getLink());
25: }
26: }
27: }
|