Fix one more issue in STOMP broker relay int test

This commit is contained in:
Rossen Stoyanchev 2014-04-29 16:36:43 -04:00
parent 13be6d2321
commit 56d26443e2
1 changed files with 3 additions and 0 deletions

View File

@ -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 {
MessageExchange error = MessageExchangeBuilder.error(sess1).build();
stopActiveMqBrokerAndAwait();
this.eventPublisher.expectBrokerAvailabilityEvent(false);
this.responseHandler.expectMessages(error);
}