Skip to content

Commit fe06fbc

Browse files
committed
Fix XmppConnFactoryBeanTests config for parser
The `xmppDomain` has two setters on the `XMPPTCPConnectionConfiguration.Builder`, so the Java Bean specification may choose a wrong one by name and the provided value may not fit into expectations * Rework `XmppConnectionFactoryBeanTests-context.xml` to avoid ambiguity with target setters presence
1 parent b7dd7d1 commit fe06fbc

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

spring-integration-xmpp/src/test/java/org/springframework/integration/xmpp/config/XmppConnectionFactoryBeanTests-context.xml

+2-7
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,10 @@
77
xmlns:int="http://www.springframework.org/schema/integration"
88
xmlns:int-xmpp="http://www.springframework.org/schema/integration/xmpp">
99

10-
<bean id="xmppConnectionConfigurationBuilder" class="org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration"
11-
factory-method="builder">
12-
<property name="xmppDomain" value="#{T(org.jxmpp.jid.impl.JidCreate).domainBareFrom('myServiceName')}"/>
13-
</bean>
1410

1511
<bean id="xmppConnection" class="org.springframework.integration.xmpp.config.XmppConnectionFactoryBean">
16-
<property name="connectionConfiguration">
17-
<bean factory-bean="xmppConnectionConfigurationBuilder" factory-method="build"/>
18-
</property>
12+
<property name="host" value="localhost"/>
13+
<property name="user" value="test"/>
1914
<property name="autoStartup" value="false"/>
2015
</bean>
2116

0 commit comments

Comments
 (0)