KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > syndication > unittest > TestSyndFeedRSS094


1 /*
2  * Created on Jun 24, 2004
3  *
4  */

5 package com.sun.syndication.unittest;
6
7 import com.sun.syndication.feed.synd.SyndEntry;
8
9 import java.util.List JavaDoc;
10
11
12 /**
13  * @author pat
14  *
15  */

16 public class TestSyndFeedRSS094 extends TestSyndFeedRSS093 {
17
18     public TestSyndFeedRSS094() {
19         super("rss_0.94");
20     }
21
22     protected TestSyndFeedRSS094(String JavaDoc type) {
23         super(type);
24     }
25
26     protected TestSyndFeedRSS094(String JavaDoc feedType,String JavaDoc feedFileName) {
27         super(feedType,feedFileName);
28     }
29
30     public void testCategories() throws Exception JavaDoc {
31         _testCategories(getCachedSyndFeed().getCategories(),"channel");
32     }
33
34     protected void _testItem(int i) throws Exception JavaDoc {
35         super._testItem(i);
36         List JavaDoc items = getCachedSyndFeed().getEntries();
37         SyndEntry entry = (SyndEntry) items.get(i);
38
39         assertProperty(entry.getAuthor(),"channel.item["+i+"].author");
40     }
41
42     protected void _testDescriptionType(SyndEntry entry,int i) throws Exception JavaDoc {
43     }
44     
45 }
46
Popular Tags