初始化
This commit is contained in:
18
pqs-user/user-boot/src/test/java/com/njcn/BaseJunitTest.java
Normal file
18
pqs-user/user-boot/src/test/java/com/njcn/BaseJunitTest.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.njcn;
|
||||
|
||||
import com.njcn.user.UserBootApplication;
|
||||
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 = UserBootApplication.class)
|
||||
public class BaseJunitTest {
|
||||
}
|
||||
25
pqs-user/user-boot/src/test/java/com/njcn/UserTest.java
Normal file
25
pqs-user/user-boot/src/test/java/com/njcn/UserTest.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.njcn;
|
||||
|
||||
import lombok.SneakyThrows;
|
||||
import org.junit.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2021年12月14日 12:55
|
||||
*/
|
||||
public class UserTest extends BaseJunitTest{
|
||||
|
||||
|
||||
|
||||
@SneakyThrows
|
||||
@Test
|
||||
public void test(){
|
||||
|
||||
|
||||
System.out.println("hello");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user