From f9eda0b096b37babe13b67d53d3905263790c6a4 Mon Sep 17 00:00:00 2001 From: akwizgran <michael@briarproject.org> Date: Thu, 1 Feb 2018 10:29:05 +0000 Subject: [PATCH] Fix test expectations. --- .../bramble/plugin/ConnectionRegistryImplTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bramble-core/src/test/java/org/briarproject/bramble/plugin/ConnectionRegistryImplTest.java b/bramble-core/src/test/java/org/briarproject/bramble/plugin/ConnectionRegistryImplTest.java index f0841bc8e7..d0cbb7732a 100644 --- a/bramble-core/src/test/java/org/briarproject/bramble/plugin/ConnectionRegistryImplTest.java +++ b/bramble-core/src/test/java/org/briarproject/bramble/plugin/ConnectionRegistryImplTest.java @@ -15,6 +15,7 @@ import org.junit.Test; import java.util.Collection; import java.util.Collections; +import java.util.NoSuchElementException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -86,7 +87,7 @@ public class ConnectionRegistryImplTest extends BrambleTestCase { try { c.unregisterConnection(contactId, transportId, true); fail(); - } catch (IllegalArgumentException expected) { + } catch (NoSuchElementException expected) { // Expected } // Register both contacts with one transport, one contact with both - -- GitLab