1 package org.tigris.scarab.feeds; 2 47 import org.tigris.scarab.om.Issue; 48 import org.tigris.scarab.test.BaseScarabTestCase; 49 import org.tigris.scarab.test.mocks.MockScarabLink; 50 import org.tigris.scarab.test.mocks.MockScarabLocalizationTool; 51 import org.tigris.scarab.tools.ScarabToolManager; 52 53 import com.sun.syndication.feed.synd.SyndFeed; 54 import com.sun.syndication.io.SyndFeedOutput; 55 56 60 public class IssueFeedTest extends BaseScarabTestCase { 61 62 public void testCreatingFeed() throws Exception { 63 ScarabToolManager stm = new ScarabToolManager( 64 new MockScarabLocalizationTool()); 65 Issue issue = getIssue0(); 66 Feed feed = new IssueFeed(issue, new MockScarabLink(), stm); 67 SyndFeed syndFeed = feed.getFeed(); 68 syndFeed.setFeedType("rss_2.0"); 69 SyndFeedOutput out = new SyndFeedOutput(); 70 String stringOutput = out.outputString(syndFeed); 71 assertNotNull(stringOutput); 72 System.out.println(stringOutput); 73 } 74 75 } | Popular Tags |