KjbProperty 타입 오류 수정
This commit is contained in:
@@ -73,7 +73,7 @@ public class KjbProperty {
|
|||||||
|
|
||||||
@KjbPropertyValue(key = "kjb.obp.url")
|
@KjbPropertyValue(key = "kjb.obp.url")
|
||||||
@Pattern(regexp = "^(https?://[^\\s/$.?#][^\\s]*)|\\s*$", message = "kjb.obp.url 는 유효한 URL 형식이거나 공백이어야 합니다. 예: http://example.com/api")
|
@Pattern(regexp = "^(https?://[^\\s/$.?#][^\\s]*)|\\s*$", message = "kjb.obp.url 는 유효한 URL 형식이거나 공백이어야 합니다. 예: http://example.com/api")
|
||||||
private int obpUrl;
|
private String obpUrl;
|
||||||
|
|
||||||
@KjbPropertyValue(key = "kjb.obp.trust_system.key", defaultValue = "x-obp-trust-system")
|
@KjbPropertyValue(key = "kjb.obp.trust_system.key", defaultValue = "x-obp-trust-system")
|
||||||
@NotEmpty
|
@NotEmpty
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package com.eactive.ext.kjb.ums.test;
|
||||||
|
|
||||||
|
import com.eactive.ext.kjb.common.KjbProperty;
|
||||||
|
import com.eactive.ext.kjb.utils.ValidationUtil;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.junit.jupiter.api.Assumptions;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class KjbPropertyTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testKjbProperty() {
|
||||||
|
Assumptions.assumeTrue(
|
||||||
|
"true".equalsIgnoreCase(System.getenv("KJB_EAPIM_TEST_ENABLED")),
|
||||||
|
"OS 환경변수 내 KJB_EAPIM_TEST_ENABLED=TRUE 설정되어 있어야 동작함");
|
||||||
|
|
||||||
|
|
||||||
|
log.info("KjbProperty 테스트 시작");
|
||||||
|
|
||||||
|
|
||||||
|
log.info("기본값 Validation 테스트");
|
||||||
|
KjbProperty prop = new KjbProperty();
|
||||||
|
ValidationUtil.validateOrThrow(prop);
|
||||||
|
|
||||||
|
log.info("KjbProperty 테스트 완료");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user