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