fix: msg_list → MSG_LIST 대문자 통일 및 rowcnt 값 정수 표기 수정
- standard-layout-djb.csv: msg_list → MSG_LIST 로 변경 - StandardMessageCoordinatorDJB: MSG_LIST 상수 경로 수정, msg_list_rowcnt 설정값 "00001" → "1" (NUMBER 타입에 선행 0 불필요) - StandardLayoutDJBTest: findItem 경로 MSG.msg_list → MSG.MSG_LIST - StandardMessageSpecTest: JSON 경로 msg_list → MSG_LIST Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@ import com.ext.eai.common.stdmessage.STDMessageKeys;
|
||||
*
|
||||
* 표준전문 구조 변경에 따른 각 처리 단계 후처리 정의:
|
||||
* - HEAD 평면 구조, GUID 40자, guid_prgs_no 별도 필드
|
||||
* - MSG 영역: msg_dvcd(NM/EM) + MAIN_MSG + msg_list
|
||||
* - MSG 영역: msg_dvcd(NM/EM) + MAIN_MSG + MSG_LIST
|
||||
* - 처리결과구분코드: S(성공) / F(오류)
|
||||
* - 전문종료부: @JJ
|
||||
*/
|
||||
@@ -63,7 +63,7 @@ public class StandardMessageCoordinatorDJB extends DefaultStandardMessageCoordin
|
||||
private static final String MSG_OUTP_MSG_CD = "MSG.MAIN_MSG.outp_msg_cd";
|
||||
private static final String MSG_OUTP_MSG_CTNT = "MSG.MAIN_MSG.outp_msg_ctnt";
|
||||
private static final String MSG_LIST_ROWCNT = "MSG.MAIN_MSG.msg_list_rowcnt";
|
||||
private static final String MSG_LIST = "MSG.msg_list";
|
||||
private static final String MSG_LIST = "MSG.MSG_LIST";
|
||||
|
||||
// DATA 영역 경로
|
||||
private static final String DATA_SCOP_LEN = "DATA.data_scop_len";
|
||||
@@ -173,8 +173,8 @@ public class StandardMessageCoordinatorDJB extends DefaultStandardMessageCoordin
|
||||
standardMessage.setData(MSG_OUTP_MSG_CD, siteErrCode);
|
||||
standardMessage.setData(MSG_OUTP_MSG_CTNT, siteErrMsg);
|
||||
|
||||
// msg_list 1건 구성
|
||||
standardMessage.setData(MSG_LIST_ROWCNT, "00001");
|
||||
// MSG_LIST 1건 구성
|
||||
standardMessage.setData(MSG_LIST_ROWCNT, "1");
|
||||
StandardItem msgList = standardMessage.findItem(MSG_LIST);
|
||||
if (msgList != null) {
|
||||
msgList.setSize(1);
|
||||
@@ -217,7 +217,7 @@ public class StandardMessageCoordinatorDJB extends DefaultStandardMessageCoordin
|
||||
mainMsgItem.setSize(1);
|
||||
}
|
||||
|
||||
// msg_dvcd=NM, outp_atrb_cd=0, outp_msg_cd, outp_msg_ctnt, msg_list_rowcnt=00000
|
||||
// msg_dvcd=NM, outp_atrb_cd=0, outp_msg_cd, outp_msg_ctnt, msg_list_rowcnt=0
|
||||
// → 모두 CSV 기본값 사용
|
||||
|
||||
makeMsgScopLen(responseMessage);
|
||||
|
||||
@@ -156,7 +156,7 @@ outp_msg_ctnt,3,2,1,1,200,1,,,정상처리되었습니다.
|
||||
outp_msg_desc,3,2,1,1,300,1,,,
|
||||
mngm_msg_cd,3,2,1,1,12,1,,,
|
||||
msg_list_rowcnt,3,2,0,1,5,2,,,0
|
||||
msg_list,2,4,0,1,0,1,MSG.MAIN_MSG.msg_list_rowcnt,,
|
||||
MSG_LIST,2,4,0,1,0,1,MSG.MAIN_MSG.msg_list_rowcnt,,
|
||||
outp_msg_cd,3,2,0,1,12,1,,,
|
||||
outp_msg_ctnt,3,2,0,1,200,1,,,
|
||||
outp_msg_desc,3,2,0,1,300,1,,,
|
||||
|
||||
|
@@ -126,8 +126,8 @@ class StandardLayoutDJBTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void MSG_msg_list_Grid_존재() {
|
||||
assertNotNull(message.findItem("MSG.msg_list"), "MSG.msg_list Grid 없음");
|
||||
void MSG_MSG_LIST_Grid_존재() {
|
||||
assertNotNull(message.findItem("MSG.MSG_LIST"), "MSG.MSG_LIST Grid 없음");
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
@@ -643,7 +643,7 @@ class StandardMessageSpecTest {
|
||||
coordinator.coordinateSetStandardMessageError(msg, mapper, "RECEAICMM999", "오류발생");
|
||||
String json = msg.getDataString(MessageType.JSON, "utf-8");
|
||||
JsonNode root = jacksonMapper.readTree(json);
|
||||
JsonNode msgList = root.path("MSG").path("msg_list");
|
||||
JsonNode msgList = root.path("MSG").path("MSG_LIST");
|
||||
assertFalse(msgList.isMissingNode() || msgList.isEmpty(),
|
||||
"MSG_LIST에 1건이 있어야 함");
|
||||
String cd = msgList.get(0).path("outp_msg_cd").asText();
|
||||
@@ -656,7 +656,7 @@ class StandardMessageSpecTest {
|
||||
coordinator.coordinateSetStandardMessageError(msg, mapper, "RECEAICMM999", "오류발생");
|
||||
String json = msg.getDataString(MessageType.JSON, "utf-8");
|
||||
JsonNode root = jacksonMapper.readTree(json);
|
||||
String ctnt = root.path("MSG").path("msg_list").get(0).path("outp_msg_ctnt").asText();
|
||||
String ctnt = root.path("MSG").path("MSG_LIST").get(0).path("outp_msg_ctnt").asText();
|
||||
assertFalse(ctnt.isEmpty(), "MSG_LIST[0].outp_msg_ctnt가 설정되어야 함");
|
||||
}
|
||||
|
||||
@@ -666,7 +666,7 @@ class StandardMessageSpecTest {
|
||||
coordinator.coordinateSetStandardMessageError(msg, mapper, "RECEAICMM999", "오류설명");
|
||||
String json = msg.getDataString(MessageType.JSON, "utf-8");
|
||||
JsonNode root = jacksonMapper.readTree(json);
|
||||
String desc = root.path("MSG").path("msg_list").get(0).path("outp_msg_desc").asText();
|
||||
String desc = root.path("MSG").path("MSG_LIST").get(0).path("outp_msg_desc").asText();
|
||||
assertFalse(desc.isEmpty(), "MSG_LIST[0].outp_msg_desc가 설정되어야 함");
|
||||
}
|
||||
|
||||
@@ -676,7 +676,7 @@ class StandardMessageSpecTest {
|
||||
coordinator.coordinateSetStandardMessageError(msg, mapper, "RECEAICMM999", "오류발생");
|
||||
String json = msg.getDataString(MessageType.JSON, "utf-8");
|
||||
JsonNode root = jacksonMapper.readTree(json);
|
||||
String loct = root.path("MSG").path("msg_list").get(0).path("err_occu_loct").asText();
|
||||
String loct = root.path("MSG").path("MSG_LIST").get(0).path("err_occu_loct").asText();
|
||||
assertFalse(loct.isEmpty(), "MSG_LIST[0].err_occu_loct가 설정되어야 함");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user