test 데이터 주석 처리

This commit is contained in:
주수현
2025-06-23 14:39:49 +09:00
parent 039864d15d
commit f3316bbadb
3 changed files with 10 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ import org.springframework.test.web.servlet.MockMvc;
@TestInstance(Lifecycle.PER_CLASS) @TestInstance(Lifecycle.PER_CLASS)
class AdminAuthFailHandlerTest { class AdminAuthFailHandlerTest {
static { /* static {
System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true"); System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true");
} }
@@ -43,13 +43,13 @@ class AdminAuthFailHandlerTest {
@BeforeAll @BeforeAll
public void beforeAll() { public void beforeAll() {
/* saveAdminPortIn.connect( *//* saveAdminPortIn.connect(
1L, 1L,
testUsername, testUsername,
"test.1@#$", "test.1@#$",
null, null,
false, false,
Arrays.asList("ROLE_SUPER", "ROLE_STAFF"));*/ Arrays.asList("ROLE_SUPER", "ROLE_STAFF"));*//*
} }
@Test @Test
@@ -69,5 +69,5 @@ class AdminAuthFailHandlerTest {
mockMvc mockMvc
.perform(formLogin().user(testUsername).password(goodPassword)) .perform(formLogin().user(testUsername).password(goodPassword))
.andExpect(unauthenticated()); .andExpect(unauthenticated());
} }*/
} }

View File

@@ -22,7 +22,7 @@ import org.springframework.test.web.servlet.MockMvc;
@AutoConfigureMockMvc @AutoConfigureMockMvc
@TestInstance(Lifecycle.PER_CLASS) @TestInstance(Lifecycle.PER_CLASS)
class AdminDetailsServiceTest { class AdminDetailsServiceTest {
/*
static { static {
System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true"); System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true");
} }
@@ -38,13 +38,13 @@ class AdminDetailsServiceTest {
@BeforeAll @BeforeAll
public void beforeAll() { public void beforeAll() {
/* saveAdminPortIn.connect( *//* saveAdminPortIn.connect(
1L, 1L,
username, username,
password, password,
null, null,
false, false,
Arrays.asList("ROLE_SUPER", "ROLE_STAFF"));*/ Arrays.asList("ROLE_SUPER", "ROLE_STAFF"));*//*
} }
@@ -68,5 +68,5 @@ class AdminDetailsServiceTest {
// void operate3() throws Exception { // void operate3() throws Exception {
// //
// mockMvc.perform(formLogin().user(oldUsername).password(password)).andExpect(unauthenticated()); // mockMvc.perform(formLogin().user(oldUsername).password(password)).andExpect(unauthenticated());
// } // }*/
} }

View File

@@ -18,7 +18,7 @@ import org.springframework.test.context.TestPropertySource;
@SpringBootTest @SpringBootTest
@TestPropertySource("classpath:application-override.properties") @TestPropertySource("classpath:application-override.properties")
class AESEncryptUtilTest { class AESEncryptUtilTest {
/*
static { static {
System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true"); System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true");
} }
@@ -42,5 +42,5 @@ class AESEncryptUtilTest {
throws NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException, throws NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException,
IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException { IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException {
assertEquals(phoneNo, aesEncryptUtil.decrypt(encryptedPhoneNo), "operate - decrypt"); assertEquals(phoneNo, aesEncryptUtil.decrypt(encryptedPhoneNo), "operate - decrypt");
} }*/
} }