This commit is contained in:
weihu 2023-12-26 17:21:43 +08:00
parent 24ccbf994e
commit 4bb9c21bcf
4 changed files with 43 additions and 15 deletions

View File

@ -80,6 +80,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<inherited>true</inherited>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
@ -89,8 +90,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<inherited>true</inherited>
<configuration>
<skipTests>true</skipTests>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<!-- <skipTests>false</skipTests>-->
</configuration>
</plugin>
<plugin>

View File

@ -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("测试异常");
}
}

View File

@ -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("测试异常");
}
}

View File

@ -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("测试异常");
}
}