Skip to content

Commit ac073dc

Browse files
kwoykeKrzysztof Woyke
andauthored
JAVA-6348: Properly ignore a unit test (eugenp#11031)
Co-authored-by: Krzysztof Woyke <[email protected]>
1 parent 3e2ee4b commit ac073dc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core-java-modules/core-java-11/src/test/java/com/baeldung/java11/httpclient/test/HttpRequestUnitTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import java.security.NoSuchAlgorithmException;
1818
import java.time.Duration;
1919

20+
import org.junit.Ignore;
2021
import org.junit.Test;
21-
import org.junit.jupiter.api.Disabled;
2222

2323
public class HttpRequestUnitTest {
2424

@@ -51,10 +51,10 @@ public void shouldUseHttp2WhenWebsiteUsesHttp2() throws IOException, Interrupted
5151

5252
/*
5353
* This test will fail as soon as the given URL returns a HTTP 2 response.
54-
* Therefore, let's leave it commented out.
54+
* Therefore, let's leave it ignored.
5555
* */
56-
@Test
57-
@Disabled
56+
@Test
57+
@Ignore
5858
public void shouldFallbackToHttp1_1WhenWebsiteDoesNotUseHttp2() throws IOException, InterruptedException, URISyntaxException, NoSuchAlgorithmException {
5959
HttpRequest request = HttpRequest.newBuilder()
6060
.uri(new URI("https://postman-echo.com/get"))

0 commit comments

Comments
 (0)