test 파일 삭제
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
package app.module.core.common.util;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import app.module.core.config.application.util.AESEncryptUtil;
|
||||
import java.security.InvalidAlgorithmParameterException;
|
||||
import java.security.InvalidKeyException;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import javax.crypto.BadPaddingException;
|
||||
import javax.crypto.IllegalBlockSizeException;
|
||||
import javax.crypto.NoSuchPaddingException;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
|
||||
@SpringBootTest
|
||||
@TestPropertySource("classpath:application-override.properties")
|
||||
class AESEncryptUtilTest {
|
||||
/*
|
||||
static {
|
||||
System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true");
|
||||
}
|
||||
|
||||
private final String phoneNo = "01012341234";
|
||||
private final String encryptedPhoneNo = "dQSU9oEA+WD1WKQZIRaR9g==";
|
||||
@Autowired
|
||||
AESEncryptUtil aesEncryptUtil;
|
||||
|
||||
@Test
|
||||
@DisplayName("operate - AESEncryptUtilTest (암호화)")
|
||||
void encrypt()
|
||||
throws NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException,
|
||||
IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException {
|
||||
assertEquals(encryptedPhoneNo, aesEncryptUtil.encrypt(phoneNo), "operate - encrypt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("operate - AESEncryptUtilTest (복호화)")
|
||||
void decrypt()
|
||||
throws NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException,
|
||||
IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException {
|
||||
assertEquals(phoneNo, aesEncryptUtil.decrypt(encryptedPhoneNo), "operate - decrypt");
|
||||
}*/
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
# disable JNDI lookup
|
||||
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration
|
||||
spring.profiles.active=local
|
||||
spring.jpa.hibernate.ddl-auto=create
|
||||
spring.datasource.url=jdbc:h2:~/test;
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=
|
||||
spring.datasource.driver-class-name=org.h2.Driver
|
||||
spring.jpa.properties.hibernate.show_sql=true
|
||||
logging.level.org.hibernate.type.descriptor.sql=trace
|
||||
front-app.initData.test=true
|
||||
Reference in New Issue
Block a user