Enable sip tests.

cusax-fix
Damian Minkov 16 years ago
parent 4594ba57f0
commit 5662485c70

@ -553,6 +553,17 @@
<propertyref prefix="accounts"/>
<propertyref prefix="net"/>
</syspropertyset>
<!-- Setting properties necessary for dependencies on native libs.-->
<sysproperty key="java.library.path"
path="${ld.library.path}:${path}:${dyld.library.path}"/>
<sysproperty key="jna.library.path"
path="${ld.library.path}:${path}:${dyld.library.path}"/>
<env key="LD_LIBRARY_PATH" path="${ld.library.path}"/>
<env key="PATH" path="${path}"/>
<env key="DYLD_LIBRARY_PATH" path="${dyld.library.path}"/>
</java>
<!-- Generate the html report.
@ -680,16 +691,16 @@
<sysproperty key="jna.library.path"
path="${ld.library.path}:${path}:${dyld.library.path}"/>
<env key="LD_LIBRARY_PATH" path="${ld.library.path}"/>
<env key="PATH" path="${path}"/>
<env key="DYLD_LIBRARY_PATH" path="${dyld.library.path}"/>
<!-- pass l10n properties from ant call for
easy translation debugging -->
<sysproperty key="user.language" value="${user.language}" />
<sysproperty key="user.country" value="${user.country}" />
<sysproperty key="user.variant" value="${user.variant}" />
<env key="LD_LIBRARY_PATH" path="${ld.library.path}"/>
<env key="PATH" path="${path}"/>
<env key="DYLD_LIBRARY_PATH" path="${dyld.library.path}"/>
<!-- make sure that we automatically enable system.out when running
SIP Communicator from Ant-->
<arg line="--debug"/>

@ -106,6 +106,10 @@ accounts.sip.account2.PROXY_ADDRESS=
# (Optional)
accounts.sip.account2.PROXY_PORT=
# This will be the contact list which we will use to test persistent storing
# of sip protocol
accounts.sip.CONTACT_LIST=
# JABBER PROPERTIES
# JABBER ACCOUNT 1

@ -45,7 +45,6 @@ org.osgi.framework.system.packages.extra= org.osgi.framework; ; version=1.3.0, \
org.jdesktop.jdic.tray; \
org.jdesktop.jdic.desktop; \
com.apple.cocoa.application; \
net.java.sip.communicator.service.audionotifier; \
javax.crypto; \
javax.crypto.spec; \
javax.crypto.interfaces; \

@ -23,6 +23,7 @@ net.java.sip.communicator.slick.runner.TEST_LIST=ConfigurationServiceLick \
MsnProtocolProviderSlick \
GibberishProtocolProviderServiceLick \
RssProtocolProviderServiceLick \
SipProtocolProviderServiceLick \
PopupMessageHandlerSLick
# Note that NetworkAddressManagerServiceLick currently runs
@ -36,7 +37,6 @@ net.java.sip.communicator.slick.runner.TEST_LIST=ConfigurationServiceLick \
#
# MediaServiceLick because one of the 2 tests fails.
#
# SipProtocolProviderServiceLick because fourteen of 25 tests fail.
#
# GenericProtocolProviderServiceLick because it does not add any tests.
#

@ -996,6 +996,8 @@ public void unsubscribe(Contact contact)
IllegalStateException,
OperationFailedException
{
assertConnected();
if (!(contact instanceof ContactSipImpl))
throw
new IllegalArgumentException(
@ -1003,7 +1005,13 @@ public void unsubscribe(Contact contact)
ContactSipImpl sipcontact = (ContactSipImpl) contact;
unsubscribe(sipcontact, true);
/**
* Does not assert if there is no subscription cause if the user
* becomes offline he has terminated the subscription and so we have
* no subscription of this contact but we wont to remove it.
* Does not assert on connected cause have already has made the check.
*/
unsubscribe(sipcontact, false);
((ContactGroupSipImpl) sipcontact.getParentContactGroup())
.removeContact(sipcontact);

@ -47,7 +47,7 @@ public class SipProtocolProviderServiceLick
* contains the contact list that.
*/
public static final String CONTACT_LIST_PROPERTY_NAME
= "accounts.gibberish.CONTACT_LIST";
= "accounts.sip.CONTACT_LIST";
/**
* Initializes and registers all tests that we'll run as a part of this

Loading…
Cancel
Save