rename test
This commit is contained in:
parent
48f3f0b834
commit
4bae45370d
|
@ -1,9 +1,9 @@
|
|||
package org.baeldung.persistence;
|
||||
|
||||
import org.baeldung.persistence.query.JPACriteriaQueryTest;
|
||||
import org.baeldung.persistence.query.JPAQuerydslTest;
|
||||
import org.baeldung.persistence.query.JPASpecificationTest;
|
||||
import org.baeldung.persistence.query.RsqlTest;
|
||||
import org.baeldung.persistence.query.JPACriteriaQueryIntegrationTest;
|
||||
import org.baeldung.persistence.query.JPAQuerydslIntegrationTest;
|
||||
import org.baeldung.persistence.query.JPASpecificationIntegrationTest;
|
||||
import org.baeldung.persistence.query.RsqlIntegrationTest;
|
||||
import org.baeldung.persistence.service.FooServicePersistenceIntegrationTest;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
|
@ -11,11 +11,11 @@ import org.junit.runners.Suite;
|
|||
@RunWith(Suite.class)
|
||||
@Suite.SuiteClasses({
|
||||
// @formatter:off
|
||||
RsqlTest.class
|
||||
,JPASpecificationTest.class
|
||||
RsqlIntegrationTest.class
|
||||
,JPASpecificationIntegrationTest.class
|
||||
,FooServicePersistenceIntegrationTest.class
|
||||
,JPAQuerydslTest.class
|
||||
,JPACriteriaQueryTest.class
|
||||
,JPAQuerydslIntegrationTest.class
|
||||
,JPACriteriaQueryIntegrationTest.class
|
||||
}) //
|
||||
public class PersistenceTestSuite {
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@ContextConfiguration(classes = { PersistenceConfig.class })
|
||||
@Transactional
|
||||
@Rollback
|
||||
public class JPACriteriaQueryTest {
|
||||
public class JPACriteriaQueryIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private IUserDAO userApi;
|
|
@ -23,7 +23,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@ContextConfiguration(classes = { PersistenceConfig.class })
|
||||
@Transactional
|
||||
@Rollback
|
||||
public class JPAQuerydslTest {
|
||||
public class JPAQuerydslIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private MyUserRepository repo;
|
|
@ -26,7 +26,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@ContextConfiguration(classes = { PersistenceConfig.class })
|
||||
@Transactional
|
||||
@Rollback
|
||||
public class JPASpecificationTest {
|
||||
public class JPASpecificationIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private UserRepository repository;
|
|
@ -27,7 +27,7 @@ import cz.jirutka.rsql.parser.ast.Node;
|
|||
@ContextConfiguration(classes = { PersistenceConfig.class })
|
||||
@Transactional
|
||||
@Rollback
|
||||
public class RsqlTest {
|
||||
public class RsqlIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private UserRepository repository;
|
|
@ -23,7 +23,7 @@ import org.springframework.web.context.WebApplicationContext;
|
|||
@WebAppConfiguration
|
||||
@Transactional
|
||||
@ContextConfiguration(classes = { SecurityWithoutCsrfConfig.class, PersistenceConfig.class, WebConfig.class })
|
||||
public class LoggerInterceptorTest {
|
||||
public class LoggerInterceptorIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
WebApplicationContext wac;
|
|
@ -28,7 +28,7 @@ import org.springframework.web.context.WebApplicationContext;
|
|||
@Transactional
|
||||
@ContextConfiguration(classes = { SecurityWithoutCsrfConfig.class, PersistenceConfig.class, WebConfig.class })
|
||||
@WithMockUser(username = "admin", roles = { "USER", "ADMIN" })
|
||||
public class SessionTimerInterceptorTest {
|
||||
public class SessionTimerInterceptorIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
WebApplicationContext wac;
|
|
@ -25,7 +25,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||
@Transactional
|
||||
@ContextConfiguration(classes = { SecurityWithoutCsrfConfig.class, PersistenceConfig.class, WebConfig.class })
|
||||
@WithMockUser(username = "admin", roles = { "USER", "ADMIN" })
|
||||
public class UserInterceptorTest {
|
||||
public class UserInterceptorIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
WebApplicationContext wac;
|
Loading…
Reference in New Issue