ES0006Test.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.es.A_ES0006;
  6. import com.miniframe.generate.comm.httpesapater.ES0006Client;
  7. import com.miniframe.generate.business.es.model.ES0006BaseModel;
  8. public class ES0006Test {
  9. private static final Logger logger = LoggerFactory.getLogger(ES0006Test.class);
  10. /**
  11. * 项目组件连线,获取报文体
  12. * @return
  13. */
  14. public static A_ES0006 getA_es0006() {
  15. A_ES0006 a_es0006 = new A_ES0006();
  16. // ----------以下增加【项目组件连线】上行体赋值-------------
  17. // ---------------------------------------------------
  18. return a_es0006;
  19. }
  20. /**
  21. * 运行客户端测试,项目组件连线
  22. *
  23. * @param args
  24. * @throws Exception
  25. */
  26. public static void main(String[] args) throws Exception {
  27. ES0006BaseModel model = new ES0006BaseModel();
  28. model.setA_eshead(HttpesapaterUtil.getA_eshead("ES0006"));
  29. model.setA_es0006(ES0006Test.getA_es0006());
  30. ES0006Client client = new ES0006Client();
  31. logger.error("客户端发送前总线:\r\n"+model);
  32. model = client.execute(model);
  33. logger.error("客户端发送后总线:\r\n"+model);
  34. }
  35. }