File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
client/src/test/java/com/alibaba/nacos/client/auth/ram/utils Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 25
25
26
26
import java .util .Properties ;
27
27
28
- import static org .junit .Assert .*;
28
+ import static org .junit .Assert .assertEquals ;
29
+ import static org .junit .Assert .assertNull ;
29
30
30
31
public class RamUtilTest {
31
32
@@ -47,19 +48,19 @@ public void tearDown() throws Exception {
47
48
}
48
49
49
50
@ Test
50
- public void testGetAccessKeyWithUserAKSK () {
51
+ public void testGetAccessKeyWithUserAkSk () {
51
52
assertEquals ("userAk" , RamUtil .getAccessKey (properties ));
52
53
assertEquals ("userSk" , RamUtil .getSecretKey (properties ));
53
54
}
54
55
55
56
@ Test
56
- public void testGetAccessKeyWithSpasAKSK () {
57
+ public void testGetAccessKeyWithSpasAkSk () {
57
58
assertEquals ("spasAk" , RamUtil .getAccessKey (new Properties ()));
58
59
assertEquals ("spasSk" , RamUtil .getSecretKey (new Properties ()));
59
60
}
60
61
61
62
@ Test
62
- public void testGetAccessKeyWithoutSpasAKSK () {
63
+ public void testGetAccessKeyWithoutSpasAkSk () {
63
64
Properties properties1 = new Properties ();
64
65
properties1 .setProperty (PropertyKeyConst .IS_USE_RAM_INFO_PARSING , "false" );
65
66
assertNull (RamUtil .getAccessKey (properties1 ));
You can’t perform that action at this time.
0 commit comments