Skip to content

Commit 42958ef

Browse files
committed
Revert "fix assumption code"
This reverts commit d355740.
1 parent e525298 commit 42958ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

google-http-client/src/test/java/com/google/api/client/http/javanet/NetHttpTransportTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
package com.google.api.client.http.javanet;
1616

17-
import static org.junit.Assume.assumeTrue;
17+
import static org.junit.Assume.assumeThat;
1818

1919
import com.google.api.client.http.GenericUrl;
2020
import com.google.api.client.http.HttpTransport;
@@ -33,9 +33,12 @@
3333
import java.net.InetSocketAddress;
3434
import java.net.URL;
3535
import java.security.KeyStore;
36+
import java.util.Arrays;
3637
import java.util.concurrent.ExecutorService;
3738
import java.util.concurrent.Executors;
3839
import junit.framework.TestCase;
40+
import org.hamcrest.CoreMatchers;
41+
import org.hamcrest.core.Is;
3942
import org.junit.Test;
4043

4144
/**
@@ -200,7 +203,7 @@ public void testDisconnectShouldNotWaitToReadResponse() throws IOException {
200203
// This test does not behave as expected since JDK 23
201204
// see https://bugs.openjdk.org/browse/JDK-6968351
202205
int javaVersion = Integer.parseInt(System.getProperty("java.version").split("\\.")[0]);
203-
assumeTrue(javaVersion < 23);
206+
assumeThat(javaVersion < 23, CoreMatchers.is(true));
204207
// This handler waits for 100s before returning writing content. The test should
205208
// timeout if disconnect waits for the response before closing the connection.
206209
final HttpHandler handler =

0 commit comments

Comments
 (0)