INT-3913 Remove/resolve deprecation from the past
JIRA: https://jira.spring.io/browse/INT-3913 * Remove deprecated classes and methods/constructors, deprecated XML attributes * Remove `TcpConnectionEventListeningMessageProducer` and rework tests logic to the `ApplicationEventListeningMessageProducer` * Fix several typos * Remove/rework deprecated entities mentioning
This commit is contained in:
committed by
Gary Russell
parent
ea4763faa9
commit
eaed954458
@@ -34,7 +34,7 @@
|
||||
stanza-filter="stanzaFilter"/>
|
||||
|
||||
<xmpp:inbound-channel-adapter id="autoChannel"
|
||||
xmpp-connection="testConnection" extract-payload="false"
|
||||
xmpp-connection="testConnection" payload-expression="#root"
|
||||
auto-startup="false" error-channel="errorChannel"
|
||||
mapped-request-headers="foo*, xmpp*"/>
|
||||
|
||||
|
||||
@@ -3,20 +3,13 @@
|
||||
xmlns="http://www.springframework.org/schema/integration"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:p="http://www.springframework.org/schema/p"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xmlns:util="http://www.springframework.org/schema/util"
|
||||
xmlns:xmpp="http://www.springframework.org/schema/integration/xmpp"
|
||||
xmlns:tool="http://www.springframework.org/schema/tool"
|
||||
xmlns:lang="http://www.springframework.org/schema/lang"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/integration/xmpp
|
||||
http://www.springframework.org/schema/integration/xmpp/spring-integration-xmpp.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
|
||||
http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool.xsd
|
||||
http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang.xsd">
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
||||
|
||||
<context:property-placeholder location="classpath:test.properties"/>
|
||||
|
||||
@@ -27,7 +20,8 @@
|
||||
host="${user.1.host}"
|
||||
service-name="${user.1.service}"/>
|
||||
|
||||
<xmpp:inbound-channel-adapter channel="inboundChatChannel" xmpp-connection="testConnection" extract-payload="false"/>
|
||||
<xmpp:inbound-channel-adapter channel="inboundChatChannel" xmpp-connection="testConnection"
|
||||
payload-expression="#root"/>
|
||||
|
||||
<channel id="inboundChatChannel"/>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 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.
|
||||
@@ -73,7 +73,7 @@ public class ChatMessageListeningEndpointTests {
|
||||
|
||||
|
||||
@Test
|
||||
/**
|
||||
/*
|
||||
* Should add/remove StanzaListener when endpoint started/stopped
|
||||
*/
|
||||
public void testLifecycle() {
|
||||
@@ -172,14 +172,14 @@ public class ChatMessageListeningEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("deprecation")
|
||||
public void testExpression() throws Exception {
|
||||
TestXMPPConnection testXMPPConnection = new TestXMPPConnection();
|
||||
|
||||
QueueChannel inputChannel = new QueueChannel();
|
||||
|
||||
ChatMessageListeningEndpoint endpoint = new ChatMessageListeningEndpoint(testXMPPConnection);
|
||||
endpoint.setExtractPayload(false);
|
||||
SpelExpressionParser parser = new SpelExpressionParser();
|
||||
endpoint.setPayloadExpression(parser.parseExpression("#root"));
|
||||
endpoint.setOutputChannel(inputChannel);
|
||||
endpoint.setBeanFactory(mock(BeanFactory.class));
|
||||
endpoint.afterPropertiesSet();
|
||||
@@ -223,7 +223,7 @@ public class ChatMessageListeningEndpointTests {
|
||||
xmlPullParser.next();
|
||||
testXMPPConnection.parseAndProcessStanza(xmlPullParser);
|
||||
|
||||
ArgumentCaptor<String> argumentCaptor = new ArgumentCaptor<String>();
|
||||
ArgumentCaptor<String> argumentCaptor = ArgumentCaptor.forClass(String.class);
|
||||
|
||||
assertTrue(logLatch.await(10, TimeUnit.SECONDS));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user