From 546ccf5814485935b374368a94e607654e460ab3 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 8 May 2017 07:16:36 -0700 Subject: [PATCH] Issue #207 - testing JsrSessionTest needs started ClientContainer --- .../org/eclipse/jetty/websocket/jsr356/JsrSessionTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jetty-websocket/javax-websocket-client-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/JsrSessionTest.java b/jetty-websocket/javax-websocket-client-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/JsrSessionTest.java index a720d8cfb3f..9553584d12e 100644 --- a/jetty-websocket/javax-websocket-client-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/JsrSessionTest.java +++ b/jetty-websocket/javax-websocket-client-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/JsrSessionTest.java @@ -55,6 +55,7 @@ public class JsrSessionTest @Rule public LeakTrackingBufferPoolRule bufferPool = new LeakTrackingBufferPoolRule("Test"); + private SimpleContainerScope containerScope; private ClientContainer container; private JsrSession session; @@ -67,7 +68,9 @@ public class JsrSessionTest WebSocketPolicy policy = WebSocketPolicy.newClientPolicy(); // Container - container = new ClientContainer(new SimpleContainerScope(policy, bufferPool)); + containerScope = new SimpleContainerScope(policy, bufferPool); + containerScope.start(); + container = new ClientContainer(containerScope); container.start(); LocalWebSocketConnection connection = new LocalWebSocketConnection(bufferPool); ClientEndpointConfig config = new EmptyClientEndpointConfig();