[JAVA-32305] Failing test for External UrlCheckerUnitTest in core-java-networking-2 (#16174)
This commit is contained in:
parent
8095c35738
commit
04b7d05a76
@ -6,7 +6,7 @@ import java.io.IOException;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class UrlCheckerUnitTest {
|
||||
public class UrlCheckerIntegrationTest {
|
||||
|
||||
@Test
|
||||
public void givenValidUrl_WhenUsingHEAD_ThenReturn200() throws IOException {
|
||||
@ -18,7 +18,7 @@ public class UrlCheckerUnitTest {
|
||||
@Test
|
||||
public void givenInvalidIUrl_WhenUsingHEAD_ThenReturn404() throws IOException {
|
||||
UrlChecker tester = new UrlChecker();
|
||||
int responseCode = tester.getResponseCodeForURLUsingHead("http://www.example.com/unkownurl");
|
||||
int responseCode = tester.getResponseCodeForURLUsingHead("http://www.example.com/xyz");
|
||||
assertEquals(404, responseCode);
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ public class UrlCheckerUnitTest {
|
||||
@Test
|
||||
public void givenInvalidIUrl_WhenUsingGET_ThenReturn404() throws IOException {
|
||||
UrlChecker tester = new UrlChecker();
|
||||
int responseCode = tester.getResponseCodeForURL("http://www.example.com/unkownurl");
|
||||
int responseCode = tester.getResponseCodeForURL("http://www.example.com/xyz");
|
||||
assertEquals(404, responseCode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user