mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Merge branch '962-removing-contacts' into 'master'
Add test where two contacts remove each other Closes #962 See merge request !558
This commit is contained in:
@@ -31,6 +31,7 @@ import static org.briarproject.briar.api.blog.MessageType.POST;
|
||||
import static org.briarproject.briar.api.blog.MessageType.WRAPPED_COMMENT;
|
||||
import static org.briarproject.briar.api.blog.MessageType.WRAPPED_POST;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class BlogManagerIntegrationTest
|
||||
@@ -470,4 +471,17 @@ public class BlogManagerIntegrationTest
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRemoveContacts() throws Exception {
|
||||
// 0 removes 1
|
||||
assertTrue(blogManager0.getBlogs().contains(blog1));
|
||||
contactManager0.removeContact(contactId1From0);
|
||||
assertFalse(blogManager0.getBlogs().contains(blog1));
|
||||
|
||||
// 1 removes 0
|
||||
assertTrue(blogManager1.getBlogs().contains(blog0));
|
||||
contactManager1.removeContact(contactId0From1);
|
||||
assertFalse(blogManager1.getBlogs().contains(blog0));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user