File was renamed from pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/test/TestSupport.java |
| | |
| | | * @Date: 2024/5/14 17:32 |
| | | * @Description |
| | | */ |
| | | public class TestSupport { |
| | | public class ComSupport { |
| | | protected static String mwUrlTest = "http://127.0.0.1:8070/rtuMw/com/test" ; |
| | | protected static String mwUrlSendCom = "http://127.0.0.1:8070/rtuMw/com/send" ; |
| | | |
| | | protected static String rtuAddr = "37142501020100215" ; |
| | | protected static String rtuResultSendWebUrl = "http://127.0.0.1:8080/test" ; |
| | | protected static String rtuResultSendWebUrl = "http://127.0.0.1:65535/test/comRes/receive" ; |
| | | |
| | | protected static String controllerType = "57" ; |
| | | protected static Integer projectNo = 10 ; |
| | | protected static String controllerType = "57" ;//控制器类型 |
| | | protected static Integer projectNo = 10 ;//项目编码 |
| | | |
| | | protected static String icCardAddr = "04BEA5BB" ; |
| | | protected static String icCardNo = "04BEA5BB" ; |
| | | protected static String icCardAddr = "04BEA5BB" ;//IC卡地址 |
| | | protected static String icCardNo = "37142501020500001" ;//IC卡编号(用户卡序列号) |
| | | |
| | | |
| | | private RestTemplate restTemplate; |
| | | |
| | | @Autowired |
| | | public void setRestTemplate(RestTemplate restTemplate){ |
| | | this.restTemplate = restTemplate ; |
| | | } |
| | | private RestTemplate restTemplate; |
| | | |
| | | |
| | | protected ComCdXyVo comCdXyVo(){ |
| | | ComCdXyVo comVo = new ComCdXyVo() ; |
| | |
| | | com.code = code ; |
| | | com.rtuAddr = rtuAddr ; |
| | | com.type = CommandType.outerCommand ; |
| | | com.noRtMwDealRes = false ; |
| | | com.rtuResultSendWebUrl = rtuResultSendWebUrl ; |
| | | |
| | | com.param = param ; |
| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | assert response != null; |
| | | return response.getBody(); |
| | | } |
| | | |
| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | assert response != null; |
| | | return response.getBody(); |
| | | } |
| | | |