|
@@ -0,0 +1,38 @@
|
|
|
+package com.jjt.task;
|
|
|
+
|
|
|
+import com.jjt.JjtApplication;
|
|
|
+import com.jjt.calc.service.ITwinCalcDayYhjService;
|
|
|
+import com.jjt.calc.service.ITwinCalcHourYhjService;
|
|
|
+import com.jjt.rz.service.ITwinDeviceRzService;
|
|
|
+import com.jjt.utils.IotService;
|
|
|
+import com.jjt.ws.service.ITwinWorkshopCalcService;
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+import org.springframework.test.context.ActiveProfiles;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.time.LocalDate;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.time.LocalTime;
|
|
|
+
|
|
|
+/**
|
|
|
+ * DataProcess$
|
|
|
+ *
|
|
|
+ * @author wukai
|
|
|
+ * @date 2024/5/7 11:49
|
|
|
+ */
|
|
|
+@SpringBootTest(classes = JjtApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
|
|
+public class RzTest {
|
|
|
+ @Resource
|
|
|
+ private ITwinCalcDayYhjService dayService;
|
|
|
+ @Resource
|
|
|
+ private IotService iotService;
|
|
|
+ @Resource
|
|
|
+ private ITwinDeviceRzService rzService;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void test() {
|
|
|
+ iotService.setToken();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|