Fix STOMP and WebSocket modules to the latest SF

* The `@MessageMapping` now requires `@SendTo` for replies
even if we are going to send to the default topic
* Fix assertion for exception message in the `StompInboundChannelAdapterWebSocketIntegrationTests`
This commit is contained in:
Artem Bilan
2017-06-07 15:26:55 -04:00
parent 71149f260a
commit fabc5fb725
2 changed files with 21 additions and 10 deletions

View File

@@ -176,7 +176,8 @@ public class StompInboundChannelAdapterWebSocketIntegrationTests extends LogAdju
Throwable throwable = errorMessage.getPayload();
assertThat(throwable, instanceOf(MessageHandlingException.class));
assertThat(throwable.getCause(), instanceOf(MessageConversionException.class));
assertThat(throwable.getMessage(), containsString("No suitable converter, payloadType=interface java.util.Map"));
assertThat(throwable.getMessage(),
containsString("No suitable converter for payload type [interface java.util.Map]"));
this.serverContext.close();