More test fixes for latest SF compatibility
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user