1 package com.sun.syndication.unittest;
2
3 import com.sun.syndication.feed.synd.SyndEntry;
4 import com.sun.syndication.feed.synd.SyndFeed;
5
6 import java.util.ArrayList;
7 import java.util.Iterator;
8 import java.util.List;
9
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 public void testEntry1URI() throws Exception {
20 SyndFeed feed = getSyndFeed();
21 SyndEntry entry = (SyndEntry)feed.getEntries().get(0);
22 assertEquals("http://www.example.com/blog/bloggy-blog", entry.getLink());
23 }
24 public void testEntry2URI() throws Exception {
25 SyndFeed feed = getSyndFeed();
26 SyndEntry entry = (SyndEntry)feed.getEntries().get(1);
27 assertEquals("http://www.example.com/frog/froggy-frog", entry.getLink());
28 }
29 }