Commit 15d01681 by fsn

Merge remote-tracking branch 'origin/springboot' into springboot

parents ae1fdbcb 4659c86c
......@@ -22,8 +22,8 @@ import org.springframework.web.context.WebApplicationContext;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = GunsApplication.class)
@WebAppConfiguration
@Transactional
public class BaseTest {
@Transactional //测试之后数据可回滚
public class BaseJunit {
@Autowired
WebApplicationContext webApplicationContext;
......
package com.stylefeng.guns.system;
import com.stylefeng.guns.base.BaseTest;
import com.stylefeng.guns.base.BaseJunit;
import com.stylefeng.guns.modular.system.dao.NoticeDao;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -16,7 +16,7 @@ import static org.junit.Assert.assertTrue;
* @author fengshuonan
* @date 2017-05-21 15:02
*/
public class BlackBoardTest extends BaseTest {
public class BlackBoardTest extends BaseJunit {
@Autowired
NoticeDao noticeDao;
......
package com.stylefeng.guns.system;
import com.stylefeng.guns.base.BaseTest;
import com.stylefeng.guns.base.BaseJunit;
import com.stylefeng.guns.common.persistence.dao.DeptMapper;
import com.stylefeng.guns.common.persistence.model.Dept;
import com.stylefeng.guns.modular.system.dao.DeptDao;
......@@ -19,7 +19,7 @@ import static org.junit.Assert.assertTrue;
* @author fengshuonan
* @date 2017-04-27 17:05
*/
public class DeptTest extends BaseTest {
public class DeptTest extends BaseJunit {
@Resource
DeptDao deptDao;
......
package com.stylefeng.guns.system;
import com.stylefeng.guns.base.BaseTest;
import com.stylefeng.guns.base.BaseJunit;
import com.stylefeng.guns.modular.system.dao.DictDao;
import com.stylefeng.guns.modular.system.service.IDictService;
import org.junit.Assert;
......@@ -16,7 +16,7 @@ import java.util.Map;
* @author fengshuonan
* @date 2017-04-27 17:05
*/
public class DictTest extends BaseTest {
public class DictTest extends BaseJunit {
@Resource
IDictService dictService;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment