Skip to content

Commit

Permalink
Merge pull request #4 from square/jwilson/example
Browse files Browse the repository at this point in the history
Don't connect to external hosts in unit tests.
  • Loading branch information
pforhan committed Jul 23, 2012
2 parents 7781c07 + 4425f3e commit 9284516
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
import java.net.URL;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;
import junit.framework.TestCase;

public final class ExternalSpdyTest extends TestCase {

public void testSpdy() throws Exception {
public final class ExternalSpdyExample {
public static void main(String[] args) throws Exception {
URL url = new URL("https://www.google.ca/");
OkHttpsConnection connection = OkHttpsConnection.open(url);

Expand Down

0 comments on commit 9284516

Please sign in to comment.