From 2b2db50eefa5595d2180113995d27f06ce667964 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 17 Nov 2014 22:15:30 +0100 Subject: [PATCH] Shut down core after the test. --- src/test/java/net/pterodactylus/xdcc/core/CoreTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/net/pterodactylus/xdcc/core/CoreTest.java b/src/test/java/net/pterodactylus/xdcc/core/CoreTest.java index 4ae2b0f..b6de4a9 100644 --- a/src/test/java/net/pterodactylus/xdcc/core/CoreTest.java +++ b/src/test/java/net/pterodactylus/xdcc/core/CoreTest.java @@ -13,6 +13,7 @@ import net.pterodactylus.xdcc.data.Channel; import net.pterodactylus.xdcc.data.Network; import com.google.common.eventbus.EventBus; +import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -39,6 +40,11 @@ public class CoreTest { when(connectionFactory.createConnection("second.net", 6667)).thenReturn(secondConnection); } + @After + public void tearDown() { + core.stopAndWait(); + } + @Test public void startingTheCoreConnectsToConfiguredNetworks() { Network firstNetwork = Network.builder("FirstNet") -- 2.7.4