From: David ‘Bombe’ Roden Date: Mon, 17 Nov 2014 21:15:30 +0000 (+0100) Subject: Shut down core after the test. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2b2db50eefa5595d2180113995d27f06ce667964;p=xudocci.git Shut down core after the test. --- 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")