Browse Source

Fix one more issue in STOMP broker relay int test

pull/535/head
Rossen Stoyanchev 11 years ago
parent
commit
56d26443e2
  1. 3
      spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java

3
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java

@ -168,6 +168,8 @@ public class StompBrokerRelayMessageHandlerIntegrationTests { @@ -168,6 +168,8 @@ public class StompBrokerRelayMessageHandlerIntegrationTests {
logger.debug("Starting test messageDeliveryExceptionIfSystemSessionForwardFails()");
stopActiveMqBrokerAndAwait();
this.eventPublisher.expectBrokerAvailabilityEvent(false);
StompHeaderAccessor headers = StompHeaderAccessor.create(StompCommand.SEND);
this.relay.handleMessage(MessageBuilder.createMessage("test".getBytes(), headers.getMessageHeaders()));
}
@ -184,6 +186,7 @@ public class StompBrokerRelayMessageHandlerIntegrationTests { @@ -184,6 +186,7 @@ public class StompBrokerRelayMessageHandlerIntegrationTests {
MessageExchange error = MessageExchangeBuilder.error(sess1).build();
stopActiveMqBrokerAndAwait();
this.eventPublisher.expectBrokerAvailabilityEvent(false);
this.responseHandler.expectMessages(error);
}

Loading…
Cancel
Save