Register custom factory in test class

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@240 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2008-12-23 00:13:03 +00:00
parent 0f7c9339c5
commit 6c327fe4cf
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package davmail.exchange;
import davmail.Settings;
import davmail.http.DavGatewaySSLProtocolSocketFactory;
import org.apache.commons.httpclient.util.URIUtil;
/**
@ -12,10 +13,13 @@ public class TestExchangeSession {
}
public static void main(String[] argv) {
// register custom SSL Socket factory
int currentArg = 0;
Settings.setConfigFilePath(argv[currentArg++]);
Settings.load();
DavGatewaySSLProtocolSocketFactory.register();
ExchangeSession session;
// test auth
try {