HM0004Test.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_HM0004;
  5. import com.miniframe.generate.comm.httpclientapater.HM0004Client;
  6. import com.miniframe.generate.business.system.model.HM0004BaseModel;
  7. public class HM0004Test {
  8. private static final Logger logger = Logger.getLogger(HM0004Test.class);
  9. /**
  10. * 密码重置,获取报文体
  11. * @return
  12. */
  13. public static A_HM0004 getA_hm0004() {
  14. A_HM0004 a_hm0004 = new A_HM0004();
  15. // ----------以下增加【密码重置】上行体赋值-------------
  16. // ---------------------------------------------------
  17. return a_hm0004;
  18. }
  19. /**
  20. * 运行客户端测试,密码重置
  21. *
  22. * @param args
  23. * @throws Exception
  24. */
  25. public static void main(String[] args) throws Exception {
  26. HM0004BaseModel model = new HM0004BaseModel();
  27. model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0004"));
  28. model.setA_hm0004(HM0004Test.getA_hm0004());
  29. HM0004Client client = new HM0004Client();
  30. logger.error("客户端发送前总线:\r\n"+model);
  31. model = client.execute(model);
  32. logger.error("客户端发送后总线:\r\n"+model);
  33. }
  34. }