From d833d67220c359be1b2bb26465c9a282b651f613 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 13 九月 2024 14:40:51 +0800
Subject: [PATCH] 去掉test

---
 /dev/null |   38 --------------------------------------
 1 files changed, 0 insertions(+), 38 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/test/java/com/iailab/InfluxDBTest.java b/iailab-module-model/iailab-module-model-biz/src/test/java/com/iailab/InfluxDBTest.java
deleted file mode 100644
index 026c73a..0000000
--- a/iailab-module-model/iailab-module-model-biz/src/test/java/com/iailab/InfluxDBTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package com.iailab;
-
-import com.iailab.module.data.influxdb.pojo.InfluxPointValuePOJO;
-import com.iailab.module.data.influxdb.pojo.InfluxPointValueSimPOJO;
-import com.iailab.module.data.influxdb.service.InfluxDBService;
-import org.junit.jupiter.api.Test;
-
-import javax.annotation.Resource;
-
-import java.util.ArrayList;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.List;
-
-/**
- * @author PanZhibao
- * @Description
- * @createTime 2023年12月10日 12:19:00
- */
-public class InfluxDBTest {
-
-    @Resource
-    private InfluxDBService influxDBService;
-
-
-    @Test
-    public void testWrite() {
-        try {
-            List<InfluxPointValuePOJO> pointValues = new ArrayList<>();
-            InfluxPointValuePOJO pojo = new InfluxPointValueSimPOJO();
-            pojo.setPoint("88880102030001");
-            pojo.setType("float");
-            pojo.setTimestamp(new Date().toInstant());
-            ((InfluxPointValueSimPOJO) pojo).setValue(123d);
-            pointValues.add(pojo);
-
-            InfluxPointValuePOJO pojo1 = new InfluxPointValueSimPOJO();
-            pojo1.setPoint("88880102030001");
-            pojo1.setType("float");
-            pojo1.setTimestamp(new Date().toInstant());
-            ((InfluxPointValueSimPOJO) pojo1).setValue(456d);
-            pointValues.add(pojo1);
-
-            influxDBService.asyncWritePointValues(pointValues);
-        } catch (Exception ex) {
-            ex.printStackTrace();
-        }
-
-    }
-
-    @Test
-    public void testQueryPointMaxValue() {
-        InfluxPointValuePOJO point = new InfluxPointValuePOJO();
-        point.setType("float");
-        point.setPoint("88880102030001");
-        Calendar calendar = Calendar.getInstance();
-        calendar.add(Calendar.HOUR_OF_DAY, -1);
-
-        Object value = influxDBService.queryPointMaxValue(point, calendar.getTime());
-
-        System.out.println("value=" + value);
-
-    }
-}
diff --git a/iailab-module-model/iailab-module-model-biz/src/test/java/com/iailab/OadpTagCollectorTest.java b/iailab-module-model/iailab-module-model-biz/src/test/java/com/iailab/OadpTagCollectorTest.java
deleted file mode 100644
index adbdec0..0000000
--- a/iailab-module-model/iailab-module-model-biz/src/test/java/com/iailab/OadpTagCollectorTest.java
+++ /dev/null
@@ -1,38 +0,0 @@
-//package com.iailab;
-//
-//import org.testng.annotations.Test;
-//
-//import javax.annotation.Resource;
-//
-//import java.util.ArrayList;
-//import java.util.Calendar;
-//import java.util.List;
-//
-///**
-// * @author PanZhibao
-// * @Description
-// * @createTime 2023年04月25日 16:17:00
-// */
-//public class OadpTagCollectorTest {
-//
-//    @Resource
-//    private OadpTagCollector tagCollector;
-//
-//    @Test
-//    public void test() {
-//        Calendar calendar = Calendar.getInstance();
-//        calendar.set(Calendar.MILLISECOND, 0);
-//        List<String> tags = new ArrayList<>();
-//        tags.add("source=producer-modbus;id=device0.change_random_int32");
-//        tags.add("source=producer-modbus;id=device0.change_random_float");
-//        tagCollector.collect(calendar.getTime(), tags);
-//    }
-//
-//
-//    @Test
-//    public void testSp() {
-//        String regex = "[+\\-\\*/()\\&&\\||]";
-//        String expression = "324123423&&34576||9999||66666+536345";
-//        String[] arr = expression.split(regex);
-//    }
-//}

--
Gitblit v1.9.3