MESH02Test.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.miniframe.comm.httpclientapater;
  2. import org.slf4j.Logger;
  3. import org.slf4j.LoggerFactory;
  4. import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
  5. import com.miniframe.generate.comm.system.A_MESH02;
  6. import com.miniframe.generate.comm.httpclientapater.MESH02Client;
  7. import com.miniframe.generate.business.system.model.MESH02BaseModel;
  8. public class MESH02Test {
  9. private static final Logger logger = LoggerFactory.getLogger(MESH02Test.class);
  10. /**
  11. * 几何文件渲染,获取报文体
  12. * @return
  13. */
  14. public static A_MESH02 getA_mesh02() {
  15. A_MESH02 a_mesh02 = new A_MESH02();
  16. // ----------以下增加【几何文件渲染】上行体赋值-------------
  17. // ---------------------------------------------------
  18. return a_mesh02;
  19. }
  20. /**
  21. * 运行客户端测试,几何文件渲染
  22. *
  23. * @param args
  24. * @throws Exception
  25. */
  26. public static void main(String[] args) throws Exception {
  27. MESH02BaseModel model = new MESH02BaseModel();
  28. model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("MESH02"));
  29. model.setA_mesh02(MESH02Test.getA_mesh02());
  30. MESH02Client client = new MESH02Client();
  31. logger.error("客户端发送前总线:\r\n"+model);
  32. model = client.execute(model);
  33. logger.error("客户端发送后总线:\r\n"+model);
  34. }
  35. }