1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package com.miniframe.comm.httpesapater;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import com.miniframe.comm.httpesapater.HttpesapaterUtil;
- import com.miniframe.generate.comm.es.A_ES0023;
- import com.miniframe.generate.comm.httpesapater.ES0023Client;
- import com.miniframe.generate.business.es.model.ES0023BaseModel;
- public class ES0023Test {
- private static final Logger logger = LoggerFactory.getLogger(ES0023Test.class);
- /**
- * 单位系统切换,获取报文体
- * @return
- */
- public static A_ES0023 getA_es0023() {
- A_ES0023 a_es0023 = new A_ES0023();
- // ----------以下增加【单位系统切换】上行体赋值-------------
- // ---------------------------------------------------
- return a_es0023;
- }
-
- /**
- * 运行客户端测试,单位系统切换
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- ES0023BaseModel model = new ES0023BaseModel();
- model.setA_eshead(HttpesapaterUtil.getA_eshead("ES0023"));
- model.setA_es0023(ES0023Test.getA_es0023());
- ES0023Client client = new ES0023Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|