Fix compatibility with the latest SF
https://build.spring.io/browse/INT-MJATS41-869 * Revert to `B-S` versions for SA and SF * Since `MessagingException.toString()` now includes and `failedMessage` as well, a comparision with `TcpConnectionExceptionEvent.toString()` should be a bit different See https://jira.spring.io/browse/SPR-15091
This commit is contained in:
@@ -33,7 +33,7 @@ public interface TcpSocketFactorySupport {
|
||||
/**
|
||||
* Supplies the {@link ServerSocketFactory} to be used to create new
|
||||
* {@link ServerSocket}s.
|
||||
* @return the ServerSocketFacory
|
||||
* @return the ServerSocketFactory
|
||||
*/
|
||||
ServerSocketFactory getServerSocketFactory();
|
||||
|
||||
|
||||
@@ -117,7 +117,8 @@ public class ConnectionEventTests {
|
||||
assertNotNull(theEvent.get(0));
|
||||
assertTrue(theEvent.get(0) instanceof TcpConnectionExceptionEvent);
|
||||
assertTrue(theEvent.get(0).toString().endsWith("[factory=foo, connectionId=" + conn.getConnectionId() + "]"));
|
||||
assertThat(theEvent.get(0).toString(), containsString("RuntimeException: foo]"));
|
||||
assertThat(theEvent.get(0).toString(),
|
||||
containsString("RuntimeException: foo, failedMessage=GenericMessage [payload=bar"));
|
||||
TcpConnectionExceptionEvent event = (TcpConnectionExceptionEvent) theEvent.get(0);
|
||||
assertNotNull(event.getCause());
|
||||
assertSame(toBeThrown, event.getCause().getCause());
|
||||
|
||||
Reference in New Issue
Block a user