BES001Test.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.miniframe.comm.httpesapater;
  2. import org.slf4j.Logger;
  3. import org.slf4j.LoggerFactory;
  4. import com.miniframe.comm.httpesapater.HttpesapaterUtil;
  5. import com.miniframe.generate.comm.ac.A_BES001;
  6. import com.miniframe.generate.comm.httpesapater.BES001Client;
  7. import com.miniframe.generate.business.ac.model.BES001BaseModel;
  8. public class BES001Test {
  9. private static final Logger logger = LoggerFactory.getLogger(BES001Test.class);
  10. /**
  11. * 基础字典查询,获取报文体
  12. * @return
  13. */
  14. public static A_BES001 getA_bes001() {
  15. A_BES001 a_bes001 = new A_BES001();
  16. // ----------以下增加【基础字典查询】上行体赋值-------------
  17. // ---------------------------------------------------
  18. return a_bes001;
  19. }
  20. /**
  21. * 运行客户端测试,基础字典查询
  22. *
  23. * @param args
  24. * @throws Exception
  25. */
  26. public static void main(String[] args) throws Exception {
  27. BES001BaseModel model = new BES001BaseModel();
  28. model.setA_achead(HttpesapaterUtil.getA_achead("BES001"));
  29. model.setA_bes001(BES001Test.getA_bes001());
  30. BES001Client client = new BES001Client();
  31. logger.error("客户端发送前总线:\r\n"+model);
  32. model = client.execute(model);
  33. logger.error("客户端发送后总线:\r\n"+model);
  34. }
  35. }