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: import java.util.List;
10:
11: /**
12: * @author pat
13: *
14: */
15: public class TestSyndFeedRSS20 extends TestSyndFeedRSS094 {
16:
17: public TestSyndFeedRSS20() {
18: super ("rss_2.0");
19: }
20:
21: protected TestSyndFeedRSS20(String type) {
22: super (type);
23: }
24:
25: protected TestSyndFeedRSS20(String feedType, String feedFileName) {
26: super (feedType, feedFileName);
27: }
28:
29: protected void _testItem(int i) throws Exception {
30: super ._testItem(i);
31: List items = getCachedSyndFeed().getEntries();
32: SyndEntry entry = (SyndEntry) items.get(i);
33: assertProperty(((SyndContent) entry.getContents().get(0))
34: .getValue(), "channel.item[" + i + "].content");
35: }
36:
37: }
|