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 TestSyndFeedAtom10Ruby extends FeedTest {
11: public TestSyndFeedAtom10Ruby() {
12: super ("atom_1.0_ruby.xml");
13: }
14:
15: public void testFeedURI() throws Exception {
16: SyndFeed feed = getSyndFeed();
17: assertEquals("http://www.example.com/blog", feed.getUri());
18: }
19:
20: public void testEntry1URI() throws Exception {
21: SyndFeed feed = getSyndFeed();
22: SyndEntry entry = (SyndEntry) feed.getEntries().get(0);
23: assertEquals("http://www.example.com/blog/bloggy-blog", entry
24: .getLink());
25: }
26:
27: public void testEntry2URI() throws Exception {
28: SyndFeed feed = getSyndFeed();
29: SyndEntry entry = (SyndEntry) feed.getEntries().get(1);
30: assertEquals("http://www.example.com/frog/froggy-frog", entry
31: .getLink());
32: }
33: }
|