jetty-9 - HTTP client: Improved test disposal.
This commit is contained in:
parent
c16778eb48
commit
d0d5a422a5
|
@ -63,11 +63,12 @@ public class AbstractHttpClientServerTest
|
|||
}
|
||||
|
||||
@After
|
||||
public void destroy() throws Exception
|
||||
public void dispose() throws Exception
|
||||
{
|
||||
if (client != null)
|
||||
client.stop();
|
||||
if (server != null)
|
||||
server.stop();
|
||||
server = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue