INT-3972: Allow Disabling of Roster Subscriptions
JIRA: https://jira.spring.io/browse/INT-3972
This commit is contained in:
committed by
Gary Russell
parent
f660b6df2f
commit
69ee423ce2
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user