@Override public void close() { if (mockWebServer == null) throw new IllegalStateException(); try { mockWebServer.close(); } catch (IOException ignored) { } } }
@Override protected void after() { try { clear(); server.close(); } catch (Exception e) { logger.error("stop apollo server error", e); } }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@After public void stop() throws Exception { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@After public void tearDown() throws Exception { server.close(); }
@After public void tearDown() throws Exception { mMockWebServer.close(); super.tearDown(); }
@After public void tearDown() throws Exception { mMockWebServer.close(); super.tearDown(); }
@After public void tearDown() throws Exception { client.connectionPool().evictAll(); if (edgeProxy != null) { edgeProxy.close(); } server.close(); }