代码调整

This commit is contained in:
2023-05-05 13:39:49 +08:00
parent d4ba963d98
commit 285db14844
44 changed files with 2731 additions and 24 deletions

View File

@@ -0,0 +1,18 @@
package com.njcn.influx;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;
/**
* @author hongawen
* @version 1.0.0
* @date 2021年12月10日 15:05
*/
@RunWith(SpringRunner.class)
@WebAppConfiguration
@SpringBootTest(classes = PqsInfluxApplication.class)
public class BaseJunitTest {
}

View File

@@ -0,0 +1,38 @@
package com.njcn.influx;
import com.njcn.influx.mapper.CldStatisticsFlowMapper;
import com.njcn.influx.pojo.po.CldStatisFlow;
import com.njcn.influx.query.InfluxQueryWrapper;
import com.njcn.influx.service.DataFlickerService;
import lombok.SneakyThrows;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
/**
* @author hongawen
* @version 1.0.0
* @date 2021年12月14日 12:55
*/
public class DemoTest extends BaseJunitTest {
@Autowired
private CldStatisticsFlowMapper cldStatisticsFlowMapper;
@Autowired
private DataFlickerService dataFlickerService;
@SneakyThrows
@Test
public void test() {
dataFlickerService.getDataFlicker("ff2d9674c1f1ecce7f33a5bf17fc4f2d","2023-05-02 00:00:00","2023-05-02 23:59:59");
}
}