List<Channel> channels = this.getRssManager().getChannels(Channel.STATUS_ALL);
assertTrue(channels.isEmpty());
}
public void testSaveUpdate() throws Throwable {
Channel channel1 = this.createTestChannel("t1", "d1", true);
this.getRssManager().addChannel(channel1);
this.setUserOnSession("admin");
this.initAction(NAMESPACE, "save");
this.addParameter("id", new Integer(channel1.getId()).intValue());
this.addParameter("strutsAction", "2");
this.addParameter("contentType", "ART");
this.addParameter("title", "test rss title");
this.addParameter("description", "test rss descr");
this.addParameter("feedType", JpRssSystemConstants.FEED_TYPE_RSS_20);
String result = this.executeAction();
assertEquals(Action.SUCCESS, result);
Channel upadated = this.getRssManager().getChannel(channel1.getId());
assertFalse(upadated.isActive());
assertEquals("test rss title", upadated.getTitle());
assertEquals("test rss descr", upadated.getDescription());
}