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_MESH01;
- import com.miniframe.generate.comm.httpclientapater.MESH01Client;
- import com.miniframe.generate.business.system.model.MESH01BaseModel;
- public class MESH01Test {
- private static final Logger logger = LoggerFactory.getLogger(MESH01Test.class);
- /**
- * 几何文件绑定,获取报文体
- * @return
- */
- public static A_MESH01 getA_mesh01() {
- A_MESH01 a_mesh01 = new A_MESH01();
- // ----------以下增加【几何文件绑定】上行体赋值-------------
- // ---------------------------------------------------
- return a_mesh01;
- }
-
- /**
- * 运行客户端测试,几何文件绑定
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- MESH01BaseModel model = new MESH01BaseModel();
- model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("MESH01"));
- model.setA_mesh01(MESH01Test.getA_mesh01());
- MESH01Client client = new MESH01Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|