Upgrade to Smack-4.2.2

https://build.spring.io/browse/INT-FATS5IC-340
This commit is contained in:
Artem Bilan
2017-11-30 10:03:20 -05:00
parent 65cf21c473
commit 74486a7fde
3 changed files with 3 additions and 4 deletions

View File

@@ -128,7 +128,7 @@ subprojects { subproject ->
romeToolsVersion = '1.8.0'
servletApiVersion = '3.1.0'
slf4jVersion = "1.7.25"
smackVersion = '4.2.1'
smackVersion = '4.2.2'
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '2.0.1.RELEASE'
springDataJpaVersion = '2.0.2.RELEASE'
springDataMongoVersion = '2.0.2.RELEASE'

View File

@@ -229,6 +229,7 @@ public class XmppConnectionFactoryBean extends AbstractFactoryBean<XMPPConnectio
}
@SuppressWarnings("deprecation")
private class LoggingConnectionListener implements ConnectionListener {
LoggingConnectionListener() {

View File

@@ -36,7 +36,6 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.apache.commons.logging.Log;
import org.jivesoftware.smack.SmackException.NotConnectedException;
import org.jivesoftware.smack.StanzaListener;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.packet.Message;
@@ -45,7 +44,6 @@ import org.jivesoftware.smack.util.PacketParserUtils;
import org.jivesoftware.smackx.gcm.packet.GcmPacketExtension;
import org.junit.Test;
import org.jxmpp.jid.impl.JidCreate;
import org.jxmpp.stringprep.XmppStringprepException;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
import org.xmlpull.v1.XmlPullParser;
@@ -128,7 +126,7 @@ public class ChatMessageListeningEndpointTests {
}
@Test
public void testWithErrorChannel() throws NotConnectedException, XmppStringprepException, InterruptedException {
public void testWithErrorChannel() throws Exception {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
XMPPConnection connection = mock(XMPPConnection.class);
bf.registerSingleton(XmppContextUtils.XMPP_CONNECTION_BEAN_NAME, connection);