Deleted JsoupProxyIntegrationTest.java (#9294)

This commit is contained in:
Sam Millington 2020-05-15 16:32:16 +01:00 committed by GitHub
parent 590ea4ec18
commit 536feb6fae
1 changed files with 0 additions and 27 deletions

View File

@ -1,27 +0,0 @@
package com.baeldung.jsonproxy;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Proxy;
import org.jsoup.Jsoup;
import org.junit.Test;
public class JsoupProxyIntegrationTest {
@Test
public void whenUsingHostAndPort_thenConnect() throws IOException {
Jsoup.connect("https://spring.io/blog")
.proxy("200.216.227.141", 53281)
.get();
}
@Test
public void whenUsingProxyClass_thenConnect() throws IOException {
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("200.216.227.141", 53281));
Jsoup.connect("https://spring.io/blog")
.proxy(proxy)
.get();
}
}