@Test public void test(@Mocked MessageBrokerRegistry mockMessageBrokerRegistry) { testWebSocketConfig.configureMessageBroker(mockMessageBrokerRegistry); new Verifications() { { mockMessageBrokerRegistry.enableSimpleBroker(anyString); times = 1; mockMessageBrokerRegistry.setApplicationDestinationPrefixes(anyString); times = 1; } }; }
@Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); config.setApplicationDestinationPrefixes("/app"); }
WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); config.setApplicationDestinationPrefixes("/app"); } }
WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); config.setApplicationDestinationPrefixes("/app"); }  }
WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); config.setApplicationDestinationPrefixes("/app"); }  @Override void configureMessageBroker(MessageBrokerRegistry config); @Override void registerStompEndpoints(StompEndpointRegistry registry); }
WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); config.setApplicationDestinationPrefixes("/app"); }  @Override void configureMessageBroker(MessageBrokerRegistry config); @Override void registerStompEndpoints(StompEndpointRegistry registry);  }