*
* @throws Exception
*/
@Test
public void testReloadFeed() throws Exception {
BookMarkLoadListener listener = null;
try {
final IFeed feed = DynamicDAO.save(new Feed(new URI("http://www.rssowl.org/rssowl2dg/tests/manager/rss_2_0.xml"))); //$NON-NLS-1$
IBookMark bookmark = createBookMark(feed);
final AtomicBoolean bool1 = new AtomicBoolean(false);
final AtomicBoolean bool2 = new AtomicBoolean(false);
assertTrue(bookmark.getNewsRefs().isEmpty());
assertTrue(bookmark.getNewsRefs(INews.State.getVisible()).isEmpty());
assertTrue(bookmark.getNews().isEmpty());
assertTrue(bookmark.getNews(INews.State.getVisible()).isEmpty());
assertEquals(0, bookmark.getNewsCount(INews.State.getVisible()));
listener = new BookMarkLoadListener() {
public void bookMarkDoneLoading(IBookMark bookmark) {
if (bookmark.getFeedLinkReference().references(feed))
bool1.set(true);
}