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
This commit is contained in:
Artem Bilan
2023-12-16 18:59:17 -05:00
parent a4f03dc6fa
commit 0206b36c75
2 changed files with 3 additions and 3 deletions

View File

@@ -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'

View File

@@ -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();