01: /*
02: * Created on Jun 24, 2004
03: *
04: */
05: package com.sun.syndication.unittest;
06:
07: import com.sun.syndication.feed.synd.SyndContent;
08: import com.sun.syndication.feed.synd.SyndEntry;
09:
10: import java.util.List;
11:
12: /**
13: * @author pat
14: *
15: */
16: public class TestSyndFeedRSS10 extends TestSyndFeedRSS090 {
17:
18: public TestSyndFeedRSS10() {
19: super ("rss_1.0");
20: }
21:
22: protected TestSyndFeedRSS10(String type) {
23: super (type);
24: }
25:
26: protected TestSyndFeedRSS10(String feedType, String feedFileName) {
27: super (feedType, feedFileName);
28: }
29:
30: public void testUri() throws Exception {
31: assertProperty(getCachedSyndFeed().getUri(), "channel.uri");
32: }
33:
34: protected void _testItem(int i) throws Exception {
35: super ._testItem(i);
36: List items = getCachedSyndFeed().getEntries();
37: SyndEntry entry = (SyndEntry) items.get(i);
38: assertProperty(entry.getDescription().getValue(), "item[" + i
39: + "].description");
40: assertProperty(((SyndContent) entry.getContents().get(0))
41: .getValue(), "item[" + i + "].content");
42: }
43: }
|