More test fixes for latest SF compatibility

This commit is contained in:
Artem Bilan
2022-06-28 12:44:40 -04:00
parent 2022c40d55
commit 2a5ddabd26
2 changed files with 4 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ public class MongoDbOutboundGatewayTests extends MongoDbAvailableTests {
public void testNoFactorySpecified() {
assertThatIllegalArgumentException()
.isThrownBy(() -> new MongoDbOutboundGateway((MongoDatabaseFactory) null))
.withStackTraceContaining("MongoDbFactory translator must not be null!");
.withStackTraceContaining("MongoDbFactory translator must not be null");
}
@Test

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2020 the original author or authors.
* Copyright 2015-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -138,7 +138,8 @@ public class StompMessageHandlerWebSocketIntegrationTests {
assertThat(cause).isInstanceOf(MessageDeliveryException.class);
MessageDeliveryException messageDeliveryException = (MessageDeliveryException) cause;
Message<?> failedMessage = messageDeliveryException.getFailedMessage();
assertThat((String) failedMessage.getPayload()).contains("preSend intentional Exception");
assertThat((String) failedMessage.getPayload())
.contains("Failed to send message to ExecutorSubscribableChannel[clientInboundChannel]");
receive = this.stompEvents.receive(10000);
assertThat(receive).isNotNull();