projects
/
xudocci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Shut down core after the test.
[xudocci.git]
/
src
/
test
/
java
/
net
/
pterodactylus
/
xdcc
/
core
/
CoreTest.java
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
(file)
--- 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 net.pterodactylus.xdcc.data.Network;
import com.google.common.eventbus.EventBus;
+import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.Before;
import org.junit.Test;
@@
-39,6
+40,11
@@
public class CoreTest {
when(connectionFactory.createConnection("second.net", 6667)).thenReturn(secondConnection);
}
when(connectionFactory.createConnection("second.net", 6667)).thenReturn(secondConnection);
}
+ @After
+ public void tearDown() {
+ core.stopAndWait();
+ }
+
@Test
public void startingTheCoreConnectsToConfiguredNetworks() {
Network firstNetwork = Network.builder("FirstNet")
@Test
public void startingTheCoreConnectsToConfiguredNetworks() {
Network firstNetwork = Network.builder("FirstNet")