merge
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user