mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 22:59:54 +01:00
Fix test expectations.
This commit is contained in:
@@ -15,6 +15,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
@@ -86,7 +87,7 @@ public class ConnectionRegistryImplTest extends BrambleTestCase {
|
|||||||
try {
|
try {
|
||||||
c.unregisterConnection(contactId, transportId, true);
|
c.unregisterConnection(contactId, transportId, true);
|
||||||
fail();
|
fail();
|
||||||
} catch (IllegalArgumentException expected) {
|
} catch (NoSuchElementException expected) {
|
||||||
// Expected
|
// Expected
|
||||||
}
|
}
|
||||||
// Register both contacts with one transport, one contact with both -
|
// Register both contacts with one transport, one contact with both -
|
||||||
|
|||||||
Reference in New Issue
Block a user