mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-12 05:58:48 -05:00
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:
parent
0f7c9339c5
commit
6c327fe4cf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user