Skip to content

Commit

Permalink
for checkstyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
KomachiSion committed Jun 25, 2024
1 parent affb57f commit 3326cdf
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

import java.util.Properties;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;

public class RamUtilTest {

Expand All @@ -47,19 +48,19 @@ public void tearDown() throws Exception {
}

@Test
public void testGetAccessKeyWithUserAKSK() {
public void testGetAccessKeyWithUserAkSk() {
assertEquals("userAk", RamUtil.getAccessKey(properties));
assertEquals("userSk", RamUtil.getSecretKey(properties));
}

@Test
public void testGetAccessKeyWithSpasAKSK() {
public void testGetAccessKeyWithSpasAkSk() {
assertEquals("spasAk", RamUtil.getAccessKey(new Properties()));
assertEquals("spasSk", RamUtil.getSecretKey(new Properties()));
}

@Test
public void testGetAccessKeyWithoutSpasAKSK() {
public void testGetAccessKeyWithoutSpasAkSk() {
Properties properties1 = new Properties();
properties1.setProperty(PropertyKeyConst.IS_USE_RAM_INFO_PARSING, "false");
assertNull(RamUtil.getAccessKey(properties1));
Expand Down

0 comments on commit 3326cdf

Please sign in to comment.