Fix test expectations.

This commit is contained in:
akwizgran
2018-02-01 10:29:05 +00:00
parent bf4ecd21aa
commit f9eda0b096

View File

@@ -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 -