Skip to content

Commit d355740

Browse files
committed
fix assumption code
1 parent e2c988e commit d355740

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

+2-5
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.assumeThat;
17+
import static org.junit.Assume.assumeTrue;
1818

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

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

0 commit comments

Comments
 (0)