JUnit test 대응
This commit is contained in:
@@ -4,6 +4,7 @@ import com.eactive.apim.portal.template.entity.MessageCode;
|
|||||||
import com.eactive.apim.portal.template.entity.MessageRequest;
|
import com.eactive.apim.portal.template.entity.MessageRequest;
|
||||||
import com.eactive.ext.kjb.common.KjbEaiBatchException;
|
import com.eactive.ext.kjb.common.KjbEaiBatchException;
|
||||||
import com.eactive.ext.kjb.common.KjbProperty;
|
import com.eactive.ext.kjb.common.KjbProperty;
|
||||||
|
import com.eactive.ext.kjb.common.KjbPropertyHolder;
|
||||||
import com.eactive.ext.kjb.common.KjbUmsException;
|
import com.eactive.ext.kjb.common.KjbUmsException;
|
||||||
import com.eactive.ext.kjb.ums.KjbEmailSendModule;
|
import com.eactive.ext.kjb.ums.KjbEmailSendModule;
|
||||||
import com.eactive.ext.kjb.ums.KjbUmsService;
|
import com.eactive.ext.kjb.ums.KjbUmsService;
|
||||||
@@ -25,7 +26,7 @@ public class UmsTest {
|
|||||||
|
|
||||||
@BeforeAll
|
@BeforeAll
|
||||||
public static void init() {
|
public static void init() {
|
||||||
prop = new KjbProperty();
|
prop = new KjbProperty();
|
||||||
prop.setEaiBatchUrl("http://172.31.32.111:10230/BATAppWeb/EaiBatCall");
|
prop.setEaiBatchUrl("http://172.31.32.111:10230/BATAppWeb/EaiBatCall");
|
||||||
prop.setUmsEaiBatchInterfaceId("UIEFF00001UAG");
|
prop.setUmsEaiBatchInterfaceId("UIEFF00001UAG");
|
||||||
|
|
||||||
@@ -45,6 +46,8 @@ public class UmsTest {
|
|||||||
prop.setUmsEaiBatchBackupDir("/Data/eapim/portal/sendmail/bak");
|
prop.setUmsEaiBatchBackupDir("/Data/eapim/portal/sendmail/bak");
|
||||||
prop.setUmsEaiBatchErrorDir("/Data/eapim/portal/sendmail/error");
|
prop.setUmsEaiBatchErrorDir("/Data/eapim/portal/sendmail/error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
KjbPropertyHolder.setForTest(prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -62,7 +65,7 @@ public class UmsTest {
|
|||||||
messageRequest.setSubject("제목 - test");
|
messageRequest.setSubject("제목 - test");
|
||||||
messageRequest.setMessage("{\"ATHN_NO\"; \"369369\"}");
|
messageRequest.setMessage("{\"ATHN_NO\"; \"369369\"}");
|
||||||
|
|
||||||
KjbUmsService umsService = new KjbUmsService(prop);
|
KjbUmsService umsService = KjbUmsService.getInstance();
|
||||||
try {
|
try {
|
||||||
boolean result = umsService.send(messageRequest);
|
boolean result = umsService.send(messageRequest);
|
||||||
|
|
||||||
@@ -89,7 +92,7 @@ public class UmsTest {
|
|||||||
log.info("{}: {}", key, System.getProperty((String) key));
|
log.info("{}: {}", key, System.getProperty((String) key));
|
||||||
});
|
});
|
||||||
|
|
||||||
KjbEmailSendModule service = KjbEmailSendModule.getInstance(prop, null);
|
KjbEmailSendModule service = KjbEmailSendModule.getInstance();
|
||||||
|
|
||||||
List<MessageRequest> requestList = new ArrayList<>();
|
List<MessageRequest> requestList = new ArrayList<>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user