@ -68,6 +69,8 @@ public class SockJsClient extends AbstractWebSocketClient {
@@ -68,6 +69,8 @@ public class SockJsClient extends AbstractWebSocketClient {
@ -143,6 +146,37 @@ public class SockJsClient extends AbstractWebSocketClient {
@@ -143,6 +146,37 @@ public class SockJsClient extends AbstractWebSocketClient {
@ -82,6 +82,9 @@ public abstract class AbstractSockJsIntegrationTests {
@@ -82,6 +82,9 @@ public abstract class AbstractSockJsIntegrationTests {
protectedLoglogger=LogFactory.getLog(getClass());
privateSockJsClientsockJsClient;
privateWebSocketTestServerserver;
privateAnnotationConfigWebApplicationContextwac;
@ -106,6 +109,12 @@ public abstract class AbstractSockJsIntegrationTests {
@@ -106,6 +109,12 @@ public abstract class AbstractSockJsIntegrationTests {
@After
publicvoidteardown()throwsException{
try{
this.sockJsClient.stop();
}
catch(Throwableex){
logger.error("Failed to stop SockJsClient",ex);
}
try{
this.server.undeployConfig();
}
@ -120,48 +129,50 @@ public abstract class AbstractSockJsIntegrationTests {
@@ -120,48 +129,50 @@ public abstract class AbstractSockJsIntegrationTests {
logger.error("Failed to stop Jetty WebSocketClient",ex);
}
try{
this.httpClient.stop();
}
catch(Throwableex){
logger.error("Failed to stop Jetty HttpClient",ex);
}
@Override
protectedClass<?>upgradeStrategyConfigClass(){
returnJettyTestConfig.class;
}
@Override
@ -71,24 +46,18 @@ public class JettySockJsIntegrationTests extends AbstractSockJsIntegrationTests
@@ -71,24 +46,18 @@ public class JettySockJsIntegrationTests extends AbstractSockJsIntegrationTests