diff --git a/pom.xml b/pom.xml index dfcbd8b..7e9bd5b 100644 --- a/pom.xml +++ b/pom.xml @@ -80,6 +80,7 @@ org.apache.maven.plugins maven-compiler-plugin 3.5.1 + true ${maven.compiler.source} ${maven.compiler.target} @@ -89,8 +90,11 @@ org.apache.maven.plugins maven-surefire-plugin 2.18.1 + true - true + 1 + false + diff --git a/spring-boot-nebula-web/src/test/java/ActionTest.java b/spring-boot-nebula-web/src/test/java/ActionTest.java new file mode 100644 index 0000000..a09f120 --- /dev/null +++ b/spring-boot-nebula-web/src/test/java/ActionTest.java @@ -0,0 +1,19 @@ +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * @author : wh + * @date : 2023/12/26 15:13 + * @description: + */ +@ExtendWith(MockitoExtension.class) +public class ActionTest { + + @Test + public void test() { + System.out.println("hahah"); + throw new RuntimeException("测试异常"); + + } +} diff --git a/spring-boot-nebula-web/src/test/java/Test.java b/spring-boot-nebula-web/src/test/java/Test.java deleted file mode 100644 index 5f65e04..0000000 --- a/spring-boot-nebula-web/src/test/java/Test.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @author : wh - * @date : 2023/12/26 15:13 - * @description: - */ -public class Test { - - @org.junit.jupiter.api.Test - public void test() { - System.out.println("hahah"); - throw new RuntimeException("测试异常"); - - } -} diff --git a/spring-boot-nebula-web/src/test/java/com/nebula/web/boot/api/NebulaPageTest.java b/spring-boot-nebula-web/src/test/java/com/nebula/web/boot/api/NebulaPageTest.java new file mode 100644 index 0000000..583a7ea --- /dev/null +++ b/spring-boot-nebula-web/src/test/java/com/nebula/web/boot/api/NebulaPageTest.java @@ -0,0 +1,19 @@ +package com.nebula.web.boot.api; + +import org.junit.jupiter.api.Test; + +/** + * @author : wh + * @date : 2023/12/26 17:05 + * @description: + */ +public class NebulaPageTest { + + @Test + public void testGetTotalCount() { + System.out.println("hahah"); + throw new RuntimeException("测试异常"); + + } + +} \ No newline at end of file