aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/java/sip
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2013-12-13 11:28:22 +0200
committerDamian Minkov <damencho@jitsi.org>2013-12-13 11:28:22 +0200
commit7ed6111ea6b593956be539a27a89ea0a12d84235 (patch)
treeee18190f9fafa5f61eb1f904595b599c38aff0cd /test/net/java/sip
parentd16483c93cb92441bd411d262710f8714ec3d845 (diff)
downloadjitsi-7ed6111ea6b593956be539a27a89ea0a12d84235.zip
jitsi-7ed6111ea6b593956be539a27a89ea0a12d84235.tar.gz
jitsi-7ed6111ea6b593956be539a27a89ea0a12d84235.tar.bz2
Trusts all certs when running tests, as they normally run in headless mode.
Diffstat (limited to 'test/net/java/sip')
-rw-r--r--test/net/java/sip/communicator/slick/protocol/sip/SipProtocolProviderServiceLick.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/sip/SipProtocolProviderServiceLick.java b/test/net/java/sip/communicator/slick/protocol/sip/SipProtocolProviderServiceLick.java
index 9beb088..4340ed9 100644
--- a/test/net/java/sip/communicator/slick/protocol/sip/SipProtocolProviderServiceLick.java
+++ b/test/net/java/sip/communicator/slick/protocol/sip/SipProtocolProviderServiceLick.java
@@ -10,7 +10,10 @@ import java.util.*;
import junit.framework.*;
+import net.java.sip.communicator.service.certificate.*;
import net.java.sip.communicator.service.protocol.sip.*;
+import net.java.sip.communicator.util.*;
+import org.jitsi.service.configuration.*;
import org.osgi.framework.*;
/**
@@ -79,6 +82,9 @@ public class SipProtocolProviderServiceLick
if (offlineMode != null && offlineMode.equalsIgnoreCase("true"))
SipSlickFixture.onlineTestingDisabled = true;
+ ServiceUtils.getService(SipSlickFixture.bc, ConfigurationService.class)
+ .setProperty(CertificateService.PNAME_ALWAYS_TRUST, true);
+
// xcap parsing tests
addTest(TestXCapParse.suite());