INT-3972: Allow Disabling of Roster Subscriptions

JIRA: https://jira.spring.io/browse/INT-3972
This commit is contained in:
Artem Bilan
2016-03-25 13:27:34 -04:00
committed by Gary Russell
parent f660b6df2f
commit 69ee423ce2
6 changed files with 34 additions and 9 deletions

View File

@@ -12,5 +12,6 @@
<int-xmpp:xmpp-connection user="happy.user@my.domain" password="blah" host="localhost" auto-startup="false"/>
<int-xmpp:xmpp-connection id="connectionWithResource" resource="Smack" service-name="my.domain"
user="happy.user" password="blah" host="localhost" auto-startup="false"/>
user="happy.user" password="blah" host="localhost" auto-startup="false"
subscription-mode=""/>
</beans>

View File

@@ -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.
@@ -52,6 +52,7 @@ public class XmppConnectionParserTests {
xmppFb = ac.getBean("&connectionWithResource", XmppConnectionFactoryBean.class);
assertEquals("Smack", TestUtils.getPropertyValue(xmppFb, "resource"));
assertNull(TestUtils.getPropertyValue(xmppFb, "subscriptionMode"));
ac.close();
}