1   package com.sun.syndication.unittest;
2   
3   import com.sun.syndication.feed.synd.SyndLink;
4   import com.sun.syndication.feed.synd.SyndEntry;
5   import com.sun.syndication.feed.synd.SyndEnclosure;
6   import com.sun.syndication.feed.synd.SyndContent;
7   import com.sun.syndication.feed.atom.Feed;
8   import com.sun.syndication.feed.atom.Link;
9   import com.sun.syndication.io.impl.DateParser;
10  
11  import java.util.List;
12  import java.util.Date;
13  
14  public class TestSyndFeedAtom10prefix extends FeedTest {
15  
16  	public TestSyndFeedAtom10prefix() {
17  		super("atom_1.0_prefix.xml");
18  	}
19  
20      public void testTitle() throws Exception {
21          Feed feed = (Feed) getWireFeed();
22          assertEquals("1", feed.getId());
23          assertEquals("xxx1", ((Link)feed.getOtherLinks().get(0)).getRel());
24          assertEquals("xxx2", ((Link)feed.getOtherLinks().get(1)).getRel());
25          assertEquals("xxx11", ((Link)feed.getOtherLinks().get(0)).getType());
26          assertEquals("xxx22", ((Link)feed.getOtherLinks().get(1)).getType());
27          assertEquals("http://foo.com/1", ((Link)feed.getOtherLinks().get(0)).getHref());
28          assertEquals("http://foo.com/2", ((Link)feed.getOtherLinks().get(1)).getHref());
29      }
30  
31  }