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
This commit is contained in:
Artem Bilan
2022-10-13 15:59:18 -04:00
parent b7dd7d1379
commit fe06fbc241

View File

@@ -7,15 +7,10 @@
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-xmpp="http://www.springframework.org/schema/integration/xmpp">
<bean id="xmppConnectionConfigurationBuilder" class="org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration"
factory-method="builder">
<property name="xmppDomain" value="#{T(org.jxmpp.jid.impl.JidCreate).domainBareFrom('myServiceName')}"/>
</bean>
<bean id="xmppConnection" class="org.springframework.integration.xmpp.config.XmppConnectionFactoryBean">
<property name="connectionConfiguration">
<bean factory-bean="xmppConnectionConfigurationBuilder" factory-method="build"/>
</property>
<property name="host" value="localhost"/>
<property name="user" value="test"/>
<property name="autoStartup" value="false"/>
</bean>