Issue #207 - Support javax.websocket version 1.1

+ Correcting tests
This commit is contained in:
Joakim Erdfelt 2016-08-23 18:34:17 -07:00
parent 0a99c20a73
commit 1bb25adbdc
6 changed files with 6 additions and 6 deletions

View File

@ -63,7 +63,7 @@ public class JsrSessionTest
ConfiguredEndpoint ei = new ConfiguredEndpoint(new DummyEndpoint(), config);
// Session
session = new JsrSession(container, id, requestURI, ei, connection);
session = new JsrSession(container, id, requestURI, ei, policy, connection);
session.start();
}

View File

@ -75,7 +75,7 @@ public class JsrEndpointFunctions_OnCloseTest
DummyConnection connection = new DummyConnection(policy);
ClientEndpointConfig config = new EmptyClientEndpointConfig();
ConfiguredEndpoint ei = new ConfiguredEndpoint(websocket, config);
return new JsrSession(container, id, requestURI, ei, connection);
return new JsrSession(container, id, requestURI, ei, policy, connection);
}
private void assertOnCloseInvocation(TrackingSocket socket, String expectedEventFormat, Object... args) throws Exception

View File

@ -72,7 +72,7 @@ public class JsrEndpointFunctions_OnErrorTest
DummyConnection connection = new DummyConnection(policy);
ClientEndpointConfig config = new EmptyClientEndpointConfig();
ConfiguredEndpoint ei = new ConfiguredEndpoint(websocket, config);
return new JsrSession(container, id, requestURI, ei, connection);
return new JsrSession(container, id, requestURI, ei, policy, connection);
}
private void assertOnErrorInvocation(TrackingSocket socket, String expectedEventFormat, Object... args) throws Exception

View File

@ -84,7 +84,7 @@ public class JsrEndpointFunctions_OnMessage_BinaryTest
DummyConnection connection = new DummyConnection(policy);
ClientEndpointConfig config = new EmptyClientEndpointConfig();
ConfiguredEndpoint ei = new ConfiguredEndpoint(websocket, config);
return new JsrSession(container, id, requestURI, ei, connection);
return new JsrSession(container, id, requestURI, ei, policy, connection);
}
private void assertOnMessageInvocation(TrackingSocket socket, String expectedEventFormat, Object... args) throws Exception

View File

@ -82,7 +82,7 @@ public class JsrEndpointFunctions_OnMessage_TextTest
DummyConnection connection = new DummyConnection(policy);
ClientEndpointConfig config = new EmptyClientEndpointConfig();
ConfiguredEndpoint ei = new ConfiguredEndpoint(websocket, config);
return new JsrSession(container, id, requestURI, ei, connection);
return new JsrSession(container, id, requestURI, ei, policy, connection);
}
private void onText(TrackingSocket socket, String msg) throws Exception

View File

@ -71,7 +71,7 @@ public class JsrEndpointFunctions_OnOpenTest
DummyConnection connection = new DummyConnection(policy);
ClientEndpointConfig config = new EmptyClientEndpointConfig();
ConfiguredEndpoint ei = new ConfiguredEndpoint(websocket, config);
return new JsrSession(container, id, requestURI, ei, connection);
return new JsrSession(container, id, requestURI, ei, policy, connection);
}
private void assertOnOpenInvocation(TrackingSocket socket, String expectedEventFormat, Object... args) throws Exception