diff options
author | Koushik Dutta <koushd@gmail.com> | 2014-04-20 12:19:19 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2014-04-20 12:19:19 -0700 |
commit | e359b6fb7de5782bd3f8537cc2cec3a97faf719e (patch) | |
tree | 811cf3b1b42100cb4c251360423c18869f00198c | |
parent | 6357fa4a7accd0f0207027a600d09c2129387566 (diff) | |
download | AndroidAsync-e359b6fb7de5782bd3f8537cc2cec3a97faf719e.tar.gz AndroidAsync-e359b6fb7de5782bd3f8537cc2cec3a97faf719e.tar.bz2 AndroidAsync-e359b6fb7de5782bd3f8537cc2cec3a97faf719e.zip |
add disabled ssl proxy test
-rw-r--r-- | AndroidAsyncTest/src/com/koushikdutta/async/test/ProxyTests.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/AndroidAsyncTest/src/com/koushikdutta/async/test/ProxyTests.java b/AndroidAsyncTest/src/com/koushikdutta/async/test/ProxyTests.java new file mode 100644 index 0000000..f7243d0 --- /dev/null +++ b/AndroidAsyncTest/src/com/koushikdutta/async/test/ProxyTests.java @@ -0,0 +1,22 @@ +package com.koushikdutta.async.test; + +import android.util.Log; + +import com.koushikdutta.async.http.AsyncHttpClient; +import com.koushikdutta.async.http.AsyncHttpGet; + +import junit.framework.TestCase; + +import java.util.concurrent.TimeUnit; + +/** + * Created by koush on 4/20/14. + */ +public class ProxyTests extends TestCase { + private void disabledTestSSLProxy() throws Exception { + AsyncHttpGet get = new AsyncHttpGet("http://yahoo.com"); + get.enableProxy("192.168.2.21", 8888); + get.setLogging("SSLProxy", Log.VERBOSE); + String ret = AsyncHttpClient.getDefaultInstance().executeString(get, null).get(5000, TimeUnit.DAYS.MILLISECONDS); + } +} |