@AfterClass public static void tearDownAfterClass() throws IOException { clientAssetTree.close(); serverEndpoint.close(); serverAssetTree.close(); TcpChannelHub.closeAllHubs(); TCPRegistry.reset(); }
@After public void after() throws IOException { assetTree.close(); if (serverEndpoint != null) serverEndpoint.close(); serverAssetTree.close(); if (map instanceof Closeable) ((Closeable) map).close(); TCPRegistry.reset(); System.setProperty("Throttler.maxEventsPreSecond", "0"); }