protected void tearDown() throws Exception { if (connection != null) { TcpTransport t = (TcpTransport) connection.getTransport().narrow(TcpTransport.class); t.getTransportListener().onException(new IOException("Disposed.")); connection.getTransport().stop(); super.tearDown(); } }
public void setUp() throws Exception { setAutoFail(true); super.setUp(); }