[JAVA-32305] Failing test for External UrlCheckerUnitTest in core-java-networking-2 (#16174)

This commit is contained in:
Harry9656 2024-03-22 16:36:21 +01:00 committed by GitHub
parent 8095c35738
commit 04b7d05a76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}