|
|
@ -46,6 +46,7 @@ import org.springframework.messaging.simp.user.UserSessionRegistry; |
|
|
|
import org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler; |
|
|
|
import org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler; |
|
|
|
import org.springframework.messaging.support.AbstractSubscribableChannel; |
|
|
|
import org.springframework.messaging.support.AbstractSubscribableChannel; |
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
|
|
|
|
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; |
|
|
|
import org.springframework.util.MimeTypeUtils; |
|
|
|
import org.springframework.util.MimeTypeUtils; |
|
|
|
import org.springframework.web.HttpRequestHandler; |
|
|
|
import org.springframework.web.HttpRequestHandler; |
|
|
|
import org.springframework.web.context.support.GenericWebApplicationContext; |
|
|
|
import org.springframework.web.context.support.GenericWebApplicationContext; |
|
|
@ -134,6 +135,9 @@ public class MessageBrokerBeanDefinitionParserTests { |
|
|
|
assertNotNull(wsTransportHandler.getHandshakeHandler()); |
|
|
|
assertNotNull(wsTransportHandler.getHandshakeHandler()); |
|
|
|
assertThat(wsTransportHandler.getHandshakeHandler(), Matchers.instanceOf(TestHandshakeHandler.class)); |
|
|
|
assertThat(wsTransportHandler.getHandshakeHandler(), Matchers.instanceOf(TestHandshakeHandler.class)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ThreadPoolTaskScheduler scheduler = (ThreadPoolTaskScheduler) defaultSockJsService.getTaskScheduler(); |
|
|
|
|
|
|
|
assertEquals(Runtime.getRuntime().availableProcessors(), scheduler.getScheduledThreadPoolExecutor().getCorePoolSize()); |
|
|
|
|
|
|
|
|
|
|
|
UserSessionRegistry userSessionRegistry = this.appContext.getBean(UserSessionRegistry.class); |
|
|
|
UserSessionRegistry userSessionRegistry = this.appContext.getBean(UserSessionRegistry.class); |
|
|
|
assertNotNull(userSessionRegistry); |
|
|
|
assertNotNull(userSessionRegistry); |
|
|
|
|
|
|
|
|
|
|
|