1   /*
2    * Created on Jun 25, 2004
3    *
4    * TODO To change the template for this generated file go to
5    * Window - Preferences - Java - Code Generation - Code and Comments
6    */
7   package com.sun.syndication.unittest;
8   
9   import java.util.List;
10  
11  import com.sun.syndication.feed.module.DCModuleI;
12  import com.sun.syndication.feed.synd.SyndEntryI;
13  
14  /***
15   * @author pat
16   *
17   * TODO To change the template for this generated type comment go to
18   * Window - Preferences - Java - Code Generation - Code and Comments
19   */
20  public class TestSyndFeedRSS10_DC_Sy_Entry extends SyndFeedRSS10_DC_Sy_CommonTest {
21  
22      public TestSyndFeedRSS10_DC_Sy_Entry() {
23          super("channel.item[0]");
24      }
25  
26      protected DCModuleI getDCModule() throws Exception {
27          List entryList = getCachedSyndFeed().getEntries();
28          SyndEntryI entry = (SyndEntryI) entryList.get(0);
29          return (DCModuleI) entry.getModule(DCModuleI.URI);
30      }
31  
32  }