BAEL-3942 : Correct failing build (#9289)
Changed IntegrationTest to LiveTest
This commit is contained in:
parent
1e3a588cb1
commit
3c9b335ed5
|
@ -0,0 +1,27 @@
|
|||
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 JsoupProxyLiveTest {
|
||||
|
||||
@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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue