import net.pterodactylus.xdcc.data.Network;
import com.google.common.eventbus.EventBus;
+import org.junit.After;
import org.junit.Before;
import org.junit.Test;
when(connectionFactory.createConnection("second.net", 6667)).thenReturn(secondConnection);
}
+ @After
+ public void tearDown() {
+ core.stopAndWait();
+ }
+
@Test
public void startingTheCoreConnectsToConfiguredNetworks() {
Network firstNetwork = Network.builder("FirstNet")