mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 20:29:52 +01:00
Store additional properties of RSS feed in metadata.
This commit is contained in:
@@ -25,6 +25,7 @@ import org.briarproject.briar.api.blog.BlogManager;
|
||||
import org.briarproject.briar.api.blog.BlogPost;
|
||||
import org.briarproject.briar.api.blog.BlogPostFactory;
|
||||
import org.briarproject.briar.api.feed.Feed;
|
||||
import org.briarproject.briar.api.feed.RssProperties;
|
||||
import org.jmock.Expectations;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -83,8 +84,9 @@ public class FeedManagerImplTest extends BrambleMockTestCase {
|
||||
private final GroupId blogGroupId = blogGroup.getId();
|
||||
private final LocalAuthor localAuthor = getLocalAuthor();
|
||||
private final Blog blog = new Blog(blogGroup, localAuthor, true);
|
||||
private final Feed feed =
|
||||
new Feed("http://example.org", blog, localAuthor, 0);
|
||||
private final RssProperties properties = new RssProperties(
|
||||
"http://example.org", null, null, null, null, null);
|
||||
private final Feed feed = new Feed(blog, localAuthor, properties, 0, 0, 0);
|
||||
private final BdfDictionary feedDict = new BdfDictionary();
|
||||
|
||||
private final FeedManagerImpl feedManager =
|
||||
|
||||
@@ -80,7 +80,7 @@ public class FeedManagerIntegrationTest extends BrambleTestCase {
|
||||
assertTrue(feed.getLastEntryTime() > 0);
|
||||
assertTrue(feed.getAdded() > 0);
|
||||
assertTrue(feed.getUpdated() > 0);
|
||||
assertEquals(url, feed.getUrl());
|
||||
assertEquals(url, feed.getProperties().getUrl());
|
||||
assertEquals(feedBlog, feed.getBlog());
|
||||
assertEquals("Schneier on Security", feed.getTitle());
|
||||
assertEquals(feed.getTitle(), feed.getBlog().getName());
|
||||
|
||||
Reference in New Issue
Block a user