Test for intercepting broker channel

This commit is contained in:
Dave Syer
2017-10-18 09:08:36 +01:00
parent 85d8151592
commit c21a1e6dda

View File

@@ -46,13 +46,16 @@ public class TraceWebSocketAutoConfigurationTest {
DelegatingWebSocketMessageBrokerConfiguration delegatingWebSocketMessageBrokerConfiguration;
@Test
public void should_register_interceptors_for_inbound_and_outbound_channels() {
public void should_register_interceptors_for_all_channels() {
then(this.delegatingWebSocketMessageBrokerConfiguration.clientInboundChannel()
.getInterceptors())
.hasAtLeastOneElementOfType(TraceChannelInterceptor.class);
then(this.delegatingWebSocketMessageBrokerConfiguration.clientOutboundChannel()
.getInterceptors())
.hasAtLeastOneElementOfType(TraceChannelInterceptor.class);
then(this.delegatingWebSocketMessageBrokerConfiguration.brokerChannel()
.getInterceptors())
.hasAtLeastOneElementOfType(TraceChannelInterceptor.class);
}
@EnableAutoConfiguration