22
22
import static org .apache .hadoop .security .token .delegation .ZKDelegationTokenSecretManager .ZK_DTSM_TOKEN_WATCHER_ENABLED ;
23
23
import static org .apache .hadoop .security .token .delegation .web .DelegationTokenManager .REMOVAL_SCAN_INTERVAL ;
24
24
import static org .apache .hadoop .security .token .delegation .web .DelegationTokenManager .RENEW_INTERVAL ;
25
- import static org .junit .Assert .fail ;
25
+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
26
+ import static org .junit .jupiter .api .Assertions .fail ;
26
27
27
28
import org .apache .hadoop .conf .Configuration ;
28
29
import org .apache .hadoop .hdfs .server .federation .router .security .token .ZKDelegationTokenSecretManagerImpl ;
34
35
import org .apache .hadoop .security .token .delegation .web .DelegationTokenIdentifier ;
35
36
import org .apache .hadoop .security .token .delegation .web .DelegationTokenManager ;
36
37
import org .apache .hadoop .util .Time ;
37
- import org .junit .Assert ;
38
- import org .junit .Test ;
38
+ import org .junit .jupiter .api .Test ;
39
39
import org .slf4j .Logger ;
40
40
import org .slf4j .LoggerFactory ;
41
41
@@ -68,7 +68,7 @@ public void testMultiNodeOperationWithoutWatch() throws Exception {
68
68
Token <DelegationTokenIdentifier > token =
69
69
(Token <DelegationTokenIdentifier >) tm1 .createToken (
70
70
UserGroupInformation .getCurrentUser (), "foo" );
71
- Assert . assertNotNull (token );
71
+ assertNotNull (token );
72
72
tm2 .verifyToken (token );
73
73
tm2 .renewToken (token , "foo" );
74
74
tm1 .verifyToken (token );
@@ -82,7 +82,7 @@ public void testMultiNodeOperationWithoutWatch() throws Exception {
82
82
83
83
token = (Token <DelegationTokenIdentifier >) tm2 .createToken (
84
84
UserGroupInformation .getCurrentUser (), "bar" );
85
- Assert . assertNotNull (token );
85
+ assertNotNull (token );
86
86
tm1 .verifyToken (token );
87
87
tm1 .renewToken (token , "bar" );
88
88
tm2 .verifyToken (token );
@@ -133,7 +133,7 @@ public void testMultiNodeTokenRemovalShortSyncWithoutWatch()
133
133
Token <DelegationTokenIdentifier > token =
134
134
(Token <DelegationTokenIdentifier >) tm1 .createToken (
135
135
UserGroupInformation .getCurrentUser (), "foo" );
136
- Assert . assertNotNull (token );
136
+ assertNotNull (token );
137
137
tm2 .verifyToken (token );
138
138
139
139
// time: X + 9
@@ -198,7 +198,7 @@ public void testMultiNodeTokenRemovalLongSyncWithoutWatch()
198
198
Token <DelegationTokenIdentifier > token =
199
199
(Token <DelegationTokenIdentifier >) tm1 .createToken (
200
200
UserGroupInformation .getCurrentUser (), "foo" );
201
- Assert . assertNotNull (token );
201
+ assertNotNull (token );
202
202
tm2 .verifyToken (token );
203
203
204
204
// time: X + 9
0 commit comments