HM0002Test.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.miniframe.comm.httpclientapater;
  2. import org.apache.log4j.Logger;
  3. import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
  4. import com.miniframe.generate.comm.system.A_HM0002;
  5. import com.miniframe.generate.comm.httpclientapater.HM0002Client;
  6. import com.miniframe.generate.business.system.model.HM0002BaseModel;
  7. public class HM0002Test {
  8. private static final Logger logger = Logger.getLogger(HM0002Test.class);
  9. /**
  10. * 系统登出,获取报文体
  11. * @return
  12. */
  13. public static A_HM0002 getA_hm0002() {
  14. A_HM0002 a_hm0002 = new A_HM0002();
  15. // ----------以下增加【系统登出】上行体赋值-------------
  16. // ---------------------------------------------------
  17. return a_hm0002;
  18. }
  19. /**
  20. * 运行客户端测试,系统登出
  21. *
  22. * @param args
  23. * @throws Exception
  24. */
  25. public static void main(String[] args) throws Exception {
  26. HM0002BaseModel model = new HM0002BaseModel();
  27. model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0002"));
  28. model.setA_hm0002(HM0002Test.getA_hm0002());
  29. HM0002Client client = new HM0002Client();
  30. logger.error("客户端发送前总线:\r\n"+model);
  31. model = client.execute(model);
  32. logger.error("客户端发送后总线:\r\n"+model);
  33. }
  34. }