File tree 1 file changed +2
-5
lines changed
google-http-client/src/test/java/com/google/api/client/http/javanet
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
package com .google .api .client .http .javanet ;
16
16
17
- import static org .junit .Assume .assumeThat ;
17
+ import static org .junit .Assume .assumeTrue ;
18
18
19
19
import com .google .api .client .http .GenericUrl ;
20
20
import com .google .api .client .http .HttpTransport ;
33
33
import java .net .InetSocketAddress ;
34
34
import java .net .URL ;
35
35
import java .security .KeyStore ;
36
- import java .util .Arrays ;
37
36
import java .util .concurrent .ExecutorService ;
38
37
import java .util .concurrent .Executors ;
39
38
import junit .framework .TestCase ;
40
- import org .hamcrest .CoreMatchers ;
41
- import org .hamcrest .core .Is ;
42
39
import org .junit .Test ;
43
40
44
41
/**
@@ -203,7 +200,7 @@ public void testDisconnectShouldNotWaitToReadResponse() throws IOException {
203
200
// This test does not behave as expected since JDK 23
204
201
// see https://bugs.openjdk.org/browse/JDK-6968351
205
202
int javaVersion = Integer .parseInt (System .getProperty ("java.version" ).split ("\\ ." )[0 ]);
206
- assumeThat (javaVersion < 23 , CoreMatchers . is ( true ) );
203
+ assumeTrue (javaVersion < 23 );
207
204
// This handler waits for 100s before returning writing content. The test should
208
205
// timeout if disconnect waits for the response before closing the connection.
209
206
final HttpHandler handler =
You can’t perform that action at this time.
0 commit comments