1   /*
2    * Created on Jun 24, 2004
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   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)).getValue(), "channel.item["+i+"].content");
34      }
35  
36  }