Skip to content

Commit 2a5ddab

Browse files
committed
More test fixes for latest SF compatibility
1 parent 2022c40 commit 2a5ddab

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spring-integration-mongodb/src/test/java/org/springframework/integration/mongodb/outbound/MongoDbOutboundGatewayTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void cleanUp() {
9898
public void testNoFactorySpecified() {
9999
assertThatIllegalArgumentException()
100100
.isThrownBy(() -> new MongoDbOutboundGateway((MongoDatabaseFactory) null))
101-
.withStackTraceContaining("MongoDbFactory translator must not be null!");
101+
.withStackTraceContaining("MongoDbFactory translator must not be null");
102102
}
103103

104104
@Test

spring-integration-stomp/src/test/java/org/springframework/integration/stomp/outbound/StompMessageHandlerWebSocketIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015-2020 the original author or authors.
2+
* Copyright 2015-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -138,7 +138,8 @@ public void testStompMessageHandler() throws InterruptedException {
138138
assertThat(cause).isInstanceOf(MessageDeliveryException.class);
139139
MessageDeliveryException messageDeliveryException = (MessageDeliveryException) cause;
140140
Message<?> failedMessage = messageDeliveryException.getFailedMessage();
141-
assertThat((String) failedMessage.getPayload()).contains("preSend intentional Exception");
141+
assertThat((String) failedMessage.getPayload())
142+
.contains("Failed to send message to ExecutorSubscribableChannel[clientInboundChannel]");
142143

143144
receive = this.stompEvents.receive(10000);
144145
assertThat(receive).isNotNull();

0 commit comments

Comments
 (0)