mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Extract ForumFactory from ForumManager
The code for creating forums in ForumManager was used by ForumSharingManager and also needed by InviteeEngine. This extracts it into its own class. Closes #375
This commit is contained in:
@@ -647,8 +647,6 @@ public class ForumSharingIntegrationTest extends BriarTestCase {
|
||||
eventWaiter.assertEquals(contactId0, event.getContactId());
|
||||
requestReceived = true;
|
||||
Forum f = event.getForum();
|
||||
// work-around because the forum does not contain the group
|
||||
f = forumManager1.createForum(f.getName(), f.getSalt());
|
||||
try {
|
||||
forumSharingManager1.respondToInvitation(f, accept);
|
||||
} catch (DbException ex) {
|
||||
@@ -719,8 +717,7 @@ public class ForumSharingIntegrationTest extends BriarTestCase {
|
||||
|
||||
private void addForumForSharer() throws DbException {
|
||||
// sharer creates forum
|
||||
forum0 = forumManager0.createForum("Test Forum");
|
||||
forumManager0.addForum(forum0);
|
||||
forum0 = forumManager0.addForum("Test Forum");
|
||||
}
|
||||
|
||||
private void listenToEvents(boolean accept) {
|
||||
|
||||
Reference in New Issue
Block a user