test 데이터 주석 처리
This commit is contained in:
@@ -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());
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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());
|
||||||
// }
|
// }*/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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");
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user