From 0206b36c75ff0479a41a542570be1956e86cd590 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Sat, 16 Dec 2023 18:59:17 -0500 Subject: [PATCH] GH-8808: Upgrade to Smack 4.4.7 Fixes: #8808 Fix `ChatMessageInboundChannelAdapterParserTests` according to a new state of the library. Looks like there is no more one more `StanzaListener` added to the `XMPPConnection` internally by the library --- build.gradle | 2 +- .../config/ChatMessageInboundChannelAdapterParserTests.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 6418dc8bf9..0552e923c3 100644 --- a/build.gradle +++ b/build.gradle @@ -106,7 +106,7 @@ ext { romeToolsVersion = '2.1.0' rsocketVersion = '1.1.4' servletApiVersion = '6.0.0' - smackVersion = '4.4.6' + smackVersion = '4.4.7' springAmqpVersion = '3.1.0' springDataVersion = '2023.1.0' springGraphqlVersion = '1.2.4' diff --git a/spring-integration-xmpp/src/test/java/org/springframework/integration/xmpp/config/ChatMessageInboundChannelAdapterParserTests.java b/spring-integration-xmpp/src/test/java/org/springframework/integration/xmpp/config/ChatMessageInboundChannelAdapterParserTests.java index 0d87f376a7..163237e47d 100644 --- a/spring-integration-xmpp/src/test/java/org/springframework/integration/xmpp/config/ChatMessageInboundChannelAdapterParserTests.java +++ b/spring-integration-xmpp/src/test/java/org/springframework/integration/xmpp/config/ChatMessageInboundChannelAdapterParserTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 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. @@ -82,7 +82,7 @@ public class ChatMessageInboundChannelAdapterParserTests { assertThat(TestUtils.getPropertyValue(adapter, "payloadExpression.expression")).isEqualTo("#root"); adapter.start(); Map asyncRecvListeners = TestUtils.getPropertyValue(connection, "asyncRecvListeners", Map.class); - assertThat(asyncRecvListeners.size()).isEqualTo(6); + assertThat(asyncRecvListeners.size()).isEqualTo(5); Object lastListener = asyncRecvListeners.values().stream().reduce((first, second) -> second).get(); assertThat(TestUtils.getPropertyValue(lastListener, "packetFilter")).isSameAs(stanzaFilter); adapter.stop();