1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package com.miniframe.comm.httpclientapater;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
- import com.miniframe.generate.comm.system.A_MESH02;
- import com.miniframe.generate.comm.httpclientapater.MESH02Client;
- import com.miniframe.generate.business.system.model.MESH02BaseModel;
- public class MESH02Test {
- private static final Logger logger = LoggerFactory.getLogger(MESH02Test.class);
- /**
- * 几何文件渲染,获取报文体
- * @return
- */
- public static A_MESH02 getA_mesh02() {
- A_MESH02 a_mesh02 = new A_MESH02();
- // ----------以下增加【几何文件渲染】上行体赋值-------------
- // ---------------------------------------------------
- return a_mesh02;
- }
-
- /**
- * 运行客户端测试,几何文件渲染
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- MESH02BaseModel model = new MESH02BaseModel();
- model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("MESH02"));
- model.setA_mesh02(MESH02Test.getA_mesh02());
- MESH02Client client = new MESH02Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|