1
2
3
4
5
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 }