@Test public void on_close_closes_network_sockets() throws IOException { final NetworkServer networkServer = mock(NetworkServer.class); JumiLauncherBuilder builder = new JumiLauncherBuilder() { @Override protected NetworkServer createNetworkServer() { return networkServer; } }; JumiLauncher launcher = builder.build(); launcher.close(); verify(networkServer).close(); }
@Override public void close() throws IOException { externalResources.close(); }
JumiLauncher implements Closeable { @Override public void close() throws IOException { externalResources.close(); } }
JumiLauncher implements Closeable { @Override public void close() throws IOException { externalResources.close(); } JumiLauncher(ActorRef<SuiteLauncher> suiteLauncher, @WillCloseWhenClosed Closeable externalResources); }
JumiLauncher implements Closeable { @Override public void close() throws IOException { externalResources.close(); } JumiLauncher(ActorRef<SuiteLauncher> suiteLauncher, @WillCloseWhenClosed Closeable externalResources); MessageReceiver<Event<SuiteListener>> getEventStream(); void start(SuiteConfiguration suiteConfiguration, DaemonConfiguration daemonConfiguration); void shutdownDaemon(); @Override void close(); }
JumiLauncher implements Closeable { @Override public void close() throws IOException { externalResources.close(); } JumiLauncher(ActorRef<SuiteLauncher> suiteLauncher, @WillCloseWhenClosed Closeable externalResources); MessageReceiver<Event<SuiteListener>> getEventStream(); void start(SuiteConfiguration suiteConfiguration, DaemonConfiguration daemonConfiguration); void shutdownDaemon(); @Override void close();  }