|
|
@@ -0,0 +1,32 @@
|
|
|
+package cn.seecoder.web.service.func_test;
|
|
|
+
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
+import org.junit.runner.RunWith;
|
|
|
+import org.mybatis.spring.annotation.MapperScan;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+import org.springframework.test.context.junit4.SpringRunner;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author PuHong Weng
|
|
|
+ * @date 2021/5/5
|
|
|
+ * @description:
|
|
|
+ */
|
|
|
+@RunWith(SpringRunner.class)
|
|
|
+@SpringBootTest
|
|
|
+@MapperScan(basePackages = {"cn.seecoder.web.dao"})
|
|
|
+class FuncTestServiceTest {
|
|
|
+
|
|
|
+ private final FuncTestService funcTestService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ FuncTestServiceTest(FuncTestService funcTestService) {
|
|
|
+ this.funcTestService = funcTestService;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void getLatestRecord() {
|
|
|
+ funcTestService.getLatestRecord();
|
|
|
+ }
|
|
|
+}
|