Skip to content
Snippets Groups Projects
Commit 613a7fe3 authored by akwizgran's avatar akwizgran
Browse files

Merge branch '962-removing-contacts' into 'master'

Add test where two contacts remove each other

Closes #962

See merge request !558
parents 3e31da99 098c1d0b
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment