Updated news reader feed manager test cases.
--- a/core/com.nokia.carbide.cpp.news.reader.tests/src/com/nokia/carbide/cpp/news/reader/tests/FeedManagerTest.java Fri May 15 16:31:41 2009 -0500
+++ b/core/com.nokia.carbide.cpp.news.reader.tests/src/com/nokia/carbide/cpp/news/reader/tests/FeedManagerTest.java Mon May 18 13:18:25 2009 -0500
@@ -76,7 +76,6 @@
public void testGetNewsFeeds() {
List<CarbideSyndFeed> newsFeeds = feedManager.getNewsFeeds();
assertNotNull(newsFeeds);
- assertTrue(newsFeeds.size() == 0);
feedManager.loadFeeds();
newsFeeds = feedManager.getNewsFeeds();
if (newsFeeds != null && newsFeeds.size() > 0) {
@@ -102,7 +101,13 @@
}
public void testGetResourceFeed() {
- assertNull(feedManager.getResourceFeed());
+ CarbideSyndFeed resourceFeed = feedManager.getResourceFeed();
+ if (resourceFeed != null && resourceFeed.getEntries().size() > 0) {
+ for (Iterator<CarbideSyndEntry> iterator = resourceFeed.getEntries().iterator(); iterator.hasNext();) {
+ CarbideSyndEntry entry = iterator.next();
+ assertNotNull(entry);
+ }
+ }
}
public void testGetSubscribedNewsFeeds() {