|
|
@ -38,7 +38,7 @@ public class SaeolBeanTest extends TestSupport {
|
|
|
|
String str = read("example/SOHNN00004/2024102316211251623987173.xml");
|
|
|
|
String str = read("example/SOHNN00004/2024102316211251623987173.xml");
|
|
|
|
minwonBean.parseResponse(msg, str);
|
|
|
|
minwonBean.parseResponse(msg, str);
|
|
|
|
SOHNN00004.Resp00004 resp = msg.getResponse();
|
|
|
|
SOHNN00004.Resp00004 resp = msg.getResponse();
|
|
|
|
minwonBean.save(resp);
|
|
|
|
minwonBean.save(msg);
|
|
|
|
resp.getResult().forEach(item -> Assertions.assertEquals(SOHNN00004.Item.GET, item.getDetail()));
|
|
|
|
resp.getResult().forEach(item -> Assertions.assertEquals(SOHNN00004.Item.GET, item.getDetail()));
|
|
|
|
|
|
|
|
|
|
|
|
String msg_key = resp.header().getMsgKey();
|
|
|
|
String msg_key = resp.header().getMsgKey();
|
|
|
@ -47,11 +47,11 @@ public class SaeolBeanTest extends TestSupport {
|
|
|
|
Assertions.assertEquals(size, list.size());
|
|
|
|
Assertions.assertEquals(size, list.size());
|
|
|
|
list.forEach(System.out::println);
|
|
|
|
list.forEach(System.out::println);
|
|
|
|
|
|
|
|
|
|
|
|
minwonBean.save(resp);
|
|
|
|
minwonBean.save(msg);
|
|
|
|
resp.getResult().forEach(item -> Assertions.assertEquals(SOHNN00004.Item.NONE, item.getDetail()));
|
|
|
|
resp.getResult().forEach(item -> Assertions.assertEquals(SOHNN00004.Item.NONE, item.getDetail()));
|
|
|
|
|
|
|
|
|
|
|
|
resp.getResult().forEach(item -> item.setUsr_nm("새 사용자"));
|
|
|
|
resp.getResult().forEach(item -> item.setUsr_nm("새 사용자"));
|
|
|
|
minwonBean.save(resp);
|
|
|
|
minwonBean.save(msg);
|
|
|
|
resp.getResult().forEach(item -> Assertions.assertEquals(SOHNN00004.Item.UPDATE, item.getDetail()));
|
|
|
|
resp.getResult().forEach(item -> Assertions.assertEquals(SOHNN00004.Item.UPDATE, item.getDetail()));
|
|
|
|
|
|
|
|
|
|
|
|
if (tearDown) {
|
|
|
|
if (tearDown) {
|
|
|
@ -72,7 +72,7 @@ public class SaeolBeanTest extends TestSupport {
|
|
|
|
String str = read("example/SOHNN00011/2024102316211329159369198.xml");
|
|
|
|
String str = read("example/SOHNN00011/2024102316211329159369198.xml");
|
|
|
|
minwonBean.parseResponse(msg, str);
|
|
|
|
minwonBean.parseResponse(msg, str);
|
|
|
|
SOHNN00011.Resp00011 resp = msg.getResponse();
|
|
|
|
SOHNN00011.Resp00011 resp = msg.getResponse();
|
|
|
|
minwonBean.save(resp, detail);
|
|
|
|
minwonBean.save(msg, detail);
|
|
|
|
|
|
|
|
|
|
|
|
String msgKey = resp.header().getMsgKey();
|
|
|
|
String msgKey = resp.header().getMsgKey();
|
|
|
|
DataObject dataobject = testMapper.execSelect("SELECT * FROM TB_SOHNN00011 WHERE MSG_KEY = '" + msgKey + "'").get(0);
|
|
|
|
DataObject dataobject = testMapper.execSelect("SELECT * FROM TB_SOHNN00011 WHERE MSG_KEY = '" + msgKey + "'").get(0);
|
|
|
|