29
29
import io .netty .util .concurrent .Future ;
30
30
import org .hamcrest .CoreMatchers ;
31
31
import org .hamcrest .Matchers ;
32
- import org .junit .Ignore ;
33
- import org .junit .Test ;
32
+ import org .junit .jupiter .api .Disabled ;
33
+ import org .junit .jupiter .api .Test ;
34
+ import org .junit .jupiter .api .Timeout ;
34
35
35
36
import javax .net .ssl .SSLEngine ;
36
37
import javax .net .ssl .SSLException ;
49
50
import java .util .concurrent .BlockingQueue ;
50
51
import java .util .concurrent .CountDownLatch ;
51
52
import java .util .concurrent .LinkedBlockingQueue ;
53
+ import java .util .concurrent .TimeUnit ;
52
54
import java .util .function .Consumer ;
53
55
54
56
import static org .hamcrest .MatcherAssert .assertThat ;
55
- import static org .junit .Assert .assertEquals ;
56
- import static org .junit .Assert .assertNull ;
57
- import static org .junit .Assert .assertTrue ;
58
- import static org .junit .Assert .fail ;
57
+ import static org .junit .jupiter . api . Assertions .assertEquals ;
58
+ import static org .junit .jupiter . api . Assertions .assertNull ;
59
+ import static org .junit .jupiter . api . Assertions .assertTrue ;
60
+ import static org .junit .jupiter . api . Assertions .fail ;
59
61
60
62
public class QuicChannelConnectTest extends AbstractQuicTest {
61
63
62
- @ Test (timeout = 5000 )
64
+ @ Test
65
+ @ Timeout (value = 5000 , unit = TimeUnit .MILLISECONDS )
63
66
public void testConnectAndQLog () throws Throwable {
64
67
Path path = Files .createTempFile ("qlog" , ".quic" );
65
68
assertTrue (path .toFile ().delete ());
@@ -75,7 +78,8 @@ public void testConnectAndQLog() throws Throwable {
75
78
});
76
79
}
77
80
78
- @ Test (timeout = 5000 )
81
+ @ Test
82
+ @ Timeout (value = 5000 , unit = TimeUnit .MILLISECONDS )
79
83
public void testConnectAndQLogDir () throws Throwable {
80
84
Path path = Files .createTempDirectory ("qlogdir-" );
81
85
testQLog (path , p -> {
@@ -406,7 +410,7 @@ public void checkServerTrusted(X509Certificate[] chain, String authType)
406
410
}
407
411
}
408
412
409
- @ Ignore
413
+ @ Disabled
410
414
@ Test
411
415
public void testALPNProtocolMissmatch () throws Throwable {
412
416
CountDownLatch latch = new CountDownLatch (1 );
0 commit comments