This commit is contained in:
xiangwbs
2018-06-20 21:03:24 +08:00
parent b558bf0fdf
commit 88d0c70c94
2 changed files with 1 additions and 4 deletions
@@ -4,7 +4,6 @@ import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
@@ -20,7 +19,7 @@ import org.springframework.transaction.annotation.Transactional;
@SpringBootTest
@AutoConfigureMockMvc
@Transactional
@Rollback(false)
//@Rollback(false)
@WebAppConfiguration
public class BaseTest {
@Autowired
@@ -19,8 +19,6 @@ import javax.annotation.Resource;
public class SysRoleServiceTest extends BaseTest {
@Resource
private SysRoleService sysRoleService;
@Resource
private SysRoleMapper sysRoleMapper;
@Test
public void all() {