Restore userSessionRegistry field in StompSubProtocolHandler

This change ensures that the deprecated UserSessionRegistry is still
used if configured.
This commit is contained in:
Rossen Stoyanchev
2015-05-22 12:31:16 -04:00
parent 3a2da3f701
commit 92bd7bba50
6 changed files with 67 additions and 20 deletions

View File

@@ -52,7 +52,7 @@ public class WebMvcStompEndpointRegistryTests {
WebSocketTransportRegistration transport = new WebSocketTransportRegistration();
TaskScheduler scheduler = Mockito.mock(TaskScheduler.class);
this.endpointRegistry = new WebMvcStompEndpointRegistry(this.webSocketHandler, transport, scheduler);
this.endpointRegistry = new WebMvcStompEndpointRegistry(this.webSocketHandler, transport, null, scheduler);
}