1
2
3
4
5 package com.sun.syndication.unittest;
6
7 import com.sun.syndication.feed.synd.SyndContent;
8 import com.sun.syndication.feed.synd.SyndEntry;
9
10 import java.util.List;
11
12
13 /***
14 * @author pat
15 *
16 */
17 public class TestSyndFeedRSS10 extends TestSyndFeedRSS090 {
18
19 public TestSyndFeedRSS10() {
20 super("rss_1.0");
21 }
22
23 protected TestSyndFeedRSS10(String type) {
24 super(type);
25 }
26
27 protected TestSyndFeedRSS10(String feedType,String feedFileName) {
28 super(feedType,feedFileName);
29 }
30
31 public void testUri() throws Exception {
32 assertProperty(getCachedSyndFeed().getUri(),"channel.uri");
33 }
34
35 protected void _testItem(int i) throws Exception {
36 super._testItem(i);
37 List items = getCachedSyndFeed().getEntries();
38 SyndEntry entry = (SyndEntry) items.get(i);
39 assertProperty(entry.getDescription().getValue(),"item["+i+"].description");
40 assertProperty(((SyndContent)entry.getContents().get(0)).getValue(), "item["+i+"].content");
41 }
42 }