diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-28 10:33:56 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-28 10:35:42 +0200 |
commit | 068113b0b4bedfd7491afa06c64734a0ff2959c6 (patch) | |
tree | 76c342b984d9ac801af595956f56869847f4f432 /backend/src | |
parent | Fix gitignore for gradle build folder (diff) | |
download | seven-wonders-068113b0b4bedfd7491afa06c64734a0ff2959c6.tar.gz seven-wonders-068113b0b4bedfd7491afa06c64734a0ff2959c6.tar.bz2 seven-wonders-068113b0b4bedfd7491afa06c64734a0ff2959c6.zip |
Migrate to Spring Boot 2.0.1 (using Spring 5)
Diffstat (limited to 'backend/src')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java | 6 | ||||
-rw-r--r-- | backend/src/test/java/org/luxons/sevenwonders/SevenWondersTest.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java b/backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java index 7ac53250..b8018a86 100644 --- a/backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java +++ b/backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java @@ -5,14 +5,14 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.messaging.simp.config.ChannelRegistration; import org.springframework.messaging.simp.config.MessageBrokerRegistry; -import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer; import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker; import org.springframework.web.socket.config.annotation.StompEndpointRegistry; +import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer; import org.springframework.web.socket.server.support.DefaultHandshakeHandler; @Configuration @EnableWebSocketMessageBroker -public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { +public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { private final TopicSubscriptionInterceptor topicSubscriptionInterceptor; @@ -46,6 +46,6 @@ public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void configureClientInboundChannel(ChannelRegistration registration) { - registration.setInterceptors(topicSubscriptionInterceptor); + registration.interceptors(topicSubscriptionInterceptor); } } diff --git a/backend/src/test/java/org/luxons/sevenwonders/SevenWondersTest.java b/backend/src/test/java/org/luxons/sevenwonders/SevenWondersTest.java index 5a618243..8cd959e3 100644 --- a/backend/src/test/java/org/luxons/sevenwonders/SevenWondersTest.java +++ b/backend/src/test/java/org/luxons/sevenwonders/SevenWondersTest.java @@ -15,7 +15,7 @@ import org.luxons.sevenwonders.test.api.ApiPlayer; import org.luxons.sevenwonders.test.api.ApiPlayerTurnInfo; import org.luxons.sevenwonders.test.api.SevenWondersClient; import org.luxons.sevenwonders.test.api.SevenWondersSession; -import org.springframework.boot.context.embedded.LocalServerPort; +import org.springframework.boot.web.server.LocalServerPort; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; import org.springframework.test.context.junit4.SpringRunner; |