初始化
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.njcn;
|
||||
|
||||
import com.njcn.system.SystemBootMain;
|
||||
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 = SystemBootMain.class)
|
||||
public class BaseJunitTest {
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn;
|
||||
|
||||
import com.njcn.system.service.IDictTypeService;
|
||||
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 DictDataTest extends BaseJunitTest{
|
||||
|
||||
@Autowired
|
||||
private IDictTypeService dictTypeService;
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
dictTypeService.dictDataCache();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user