Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
weihubeats committed Dec 26, 2023
1 parent 24ccbf9 commit 4bb9c21
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 15 deletions.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
19 changes: 19 additions & 0 deletions spring-boot-nebula-web/src/test/java/ActionTest.java
Original file line number Diff line number Diff line change
@@ -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("测试异常");

}
}
14 changes: 0 additions & 14 deletions spring-boot-nebula-web/src/test/java/Test.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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("测试异常");

}

}

0 comments on commit 4bb9c21

Please sign in to comment.