@@ -44,7 +44,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
*/
|
||||
@ContextConfiguration
|
||||
@Transactional
|
||||
public class Jsr310JpaConvertersIntegrationTests extends AbstractAttributeConverterIntegrationTests {
|
||||
class Jsr310JpaConvertersIntegrationTests extends AbstractAttributeConverterIntegrationTests {
|
||||
|
||||
@PersistenceContext EntityManager em;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ContextConfiguration("classpath:auditing/auditing-entity-listener.xml")
|
||||
@Transactional
|
||||
@DirtiesContext
|
||||
public class AuditingEntityListenerTests {
|
||||
class AuditingEntityListenerTests {
|
||||
|
||||
@Autowired AuditableUserRepository repository;
|
||||
@Autowired AnnotatedAuditableUserRepository annotatedUserRepository;
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:auditing/auditing-entity-with-embeddable-listener.xml")
|
||||
public class AuditingEntityWithEmbeddableListenerTests {
|
||||
class AuditingEntityWithEmbeddableListenerTests {
|
||||
|
||||
@Autowired AuditableEntityRepository repository;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
public class QueryByExampleWithOptionalEmptyTests {
|
||||
class QueryByExampleWithOptionalEmptyTests {
|
||||
|
||||
@Autowired UserWithOptionalFieldRepository repository;
|
||||
UserWithOptionalField user;
|
||||
|
||||
@@ -55,7 +55,7 @@ import org.springframework.data.util.TypeInformation;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class JpaPersistentPropertyImplUnitTests {
|
||||
class JpaPersistentPropertyImplUnitTests {
|
||||
|
||||
@Mock Metamodel model;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.springframework.transaction.support.DefaultTransactionDefinition;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:hjppa-test.xml")
|
||||
public class HibernateJpaParametersParameterAccessorUnitTests {
|
||||
class HibernateJpaParametersParameterAccessorUnitTests {
|
||||
|
||||
@Autowired private EntityManager em;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ import org.springframework.transaction.support.TransactionTemplate;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
public class PersistenceProviderIntegrationTests {
|
||||
public abstract class PersistenceProviderIntegrationTests {
|
||||
|
||||
@Autowired CategoryRepository categories;
|
||||
@Autowired ProductRepository products;
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(locations = { "classpath:config/namespace-autoconfig-context.xml" })
|
||||
public class AbstractPersistableIntegrationTests {
|
||||
class AbstractPersistableIntegrationTests {
|
||||
|
||||
@Autowired CustomAbstractPersistableRepository repository;
|
||||
@Autowired EntityManager em;
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(locations = { "classpath:config/namespace-autoconfig-context.xml" })
|
||||
public class CustomAbstractPersistableIntegrationTests {
|
||||
class CustomAbstractPersistableIntegrationTests {
|
||||
|
||||
@Autowired CustomAbstractPersistableRepository repository;
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:config/namespace-autoconfig-context.xml")
|
||||
@Transactional
|
||||
public class EntityGraphRepositoryMethodsIntegrationTests {
|
||||
class EntityGraphRepositoryMethodsIntegrationTests {
|
||||
|
||||
@Autowired EntityManager em;
|
||||
@Autowired RepositoryMethodsWithEntityGraphConfigRepository repository;
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:config/namespace-application-context.xml")
|
||||
@Transactional
|
||||
public class EntityWithAssignedIdIntegrationTests {
|
||||
class EntityWithAssignedIdIntegrationTests {
|
||||
|
||||
@Autowired EntityWithAssignedIdRepository repository;
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = SampleConfig.class)
|
||||
public class MappedTypeRepositoryIntegrationTests {
|
||||
class MappedTypeRepositoryIntegrationTests {
|
||||
|
||||
@Autowired ConcreteRepository1 concreteRepository1;
|
||||
@Autowired ConcreteRepository2 concreteRepository2;
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
* @author Eberhard Wolff
|
||||
*/
|
||||
@ContextConfiguration(locations = "classpath:config/namespace-application-context.xml", inheritLocations = false)
|
||||
public class NamespaceUserRepositoryTests extends UserRepositoryTests {
|
||||
class NamespaceUserRepositoryTests extends UserRepositoryTests {
|
||||
|
||||
@Autowired
|
||||
ListableBeanFactory beanFactory;
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(locations = "classpath:infrastructure.xml")
|
||||
public class ORMInfrastructureTests {
|
||||
class ORMInfrastructureTests {
|
||||
|
||||
@Autowired ApplicationContext context;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:config/namespace-application-context.xml")
|
||||
public class ParentRepositoryIntegrationTests {
|
||||
class ParentRepositoryIntegrationTests {
|
||||
|
||||
@Autowired ParentRepository repository;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration({ "classpath:eclipselink.xml", "classpath:config/namespace-application-context.xml" })
|
||||
@Transactional
|
||||
public class QueryByExampleEclipseLinkIntegrationTests {
|
||||
class QueryByExampleEclipseLinkIntegrationTests {
|
||||
|
||||
@Autowired RoleRepository repository;
|
||||
@Autowired EntityManager em;
|
||||
|
||||
@@ -43,7 +43,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration({ "classpath:hibernate.xml", "classpath:config/namespace-application-context.xml" })
|
||||
@Transactional
|
||||
public class QueryByExampleHibernateIntegrationTests {
|
||||
class QueryByExampleHibernateIntegrationTests {
|
||||
|
||||
@Autowired RoleRepository repository;
|
||||
@Autowired EntityManager em;
|
||||
|
||||
@@ -40,7 +40,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = SampleConfig.class)
|
||||
@Transactional
|
||||
public class RedeclaringRepositoryMethodsTests {
|
||||
class RedeclaringRepositoryMethodsTests {
|
||||
|
||||
@Autowired RedeclaringRepositoryMethodsRepository repository;
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = SampleConfig.class)
|
||||
@Transactional
|
||||
public class RepositoryWithCompositeKeyTests {
|
||||
class RepositoryWithCompositeKeyTests {
|
||||
|
||||
@Autowired EmployeeRepositoryWithIdClass employeeRepositoryWithIdClass;
|
||||
@Autowired EmployeeRepositoryWithEmbeddedId employeeRepositoryWithEmbeddedId;
|
||||
|
||||
@@ -48,7 +48,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = RepositoryWithIdClassKeyTests.TestConfig.class)
|
||||
@Transactional
|
||||
public class RepositoryWithIdClassKeyTests {
|
||||
class RepositoryWithIdClassKeyTests {
|
||||
|
||||
@Autowired private SiteRepository siteRepository;
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(locations = { "classpath:application-context.xml" })
|
||||
@Transactional
|
||||
public class RoleRepositoryIntegrationTests {
|
||||
class RoleRepositoryIntegrationTests {
|
||||
|
||||
@Autowired RoleRepository repository;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:config/namespace-application-context.xml")
|
||||
public class SPR8954Tests {
|
||||
class SPR8954Tests {
|
||||
|
||||
@Autowired ApplicationContext context;
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional
|
||||
@ContextConfiguration(classes = StoredProcedureIntegrationTests.TestConfig.class)
|
||||
@ExtendWith(SpringExtension.class)
|
||||
public class StoredProcedureIntegrationTests {
|
||||
class StoredProcedureIntegrationTests {
|
||||
|
||||
private static final String NOT_SUPPORTED = "Stored procedures with REF_CURSOR are currently not supported by HSQL dialect";
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(locations = "classpath:config/namespace-application-context.xml")
|
||||
@Transactional
|
||||
public class UserRepositoryFinderTests {
|
||||
class UserRepositoryFinderTests {
|
||||
|
||||
@Autowired UserRepository userRepository;
|
||||
@Autowired RoleRepository roleRepository;
|
||||
|
||||
@@ -47,7 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:application-context.xml")
|
||||
@Transactional
|
||||
public class UserRepositoryStoredProcedureIntegrationTests {
|
||||
class UserRepositoryStoredProcedureIntegrationTests {
|
||||
|
||||
@Autowired UserRepository repository;
|
||||
@PersistenceContext EntityManager em;
|
||||
|
||||
@@ -111,7 +111,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:application-context.xml")
|
||||
@Transactional
|
||||
public class UserRepositoryTests {
|
||||
class UserRepositoryTests {
|
||||
|
||||
@PersistenceContext EntityManager em;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ import org.springframework.data.repository.cdi.Eager;
|
||||
*
|
||||
* @author Greg Turnquist
|
||||
*/
|
||||
public class JpaQueryRewriterWithCdiIntegrationTests {
|
||||
class JpaQueryRewriterWithCdiIntegrationTests {
|
||||
|
||||
private static SeContainer container;
|
||||
private static Log LOGGER = LogFactory.getLog(CdiExtensionIntegrationTests.class);
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
* @author Jens Schauder
|
||||
*/
|
||||
@ContextConfiguration(locations = "classpath:config/namespace-nested-repositories-application-context.xml")
|
||||
public class AllowNestedRepositoriesRepositoryConfigTests extends AbstractRepositoryConfigTests {
|
||||
class AllowNestedRepositoriesRepositoryConfigTests extends AbstractRepositoryConfigTests {
|
||||
|
||||
@Autowired NestedUserRepository fooRepository;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(locations = "classpath:config/namespace-customfactory-context.xml")
|
||||
public class CustomRepositoryFactoryConfigTests {
|
||||
class CustomRepositoryFactoryConfigTests {
|
||||
|
||||
@Autowired(required = false) UserCustomExtendedRepository userRepository;
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ import org.springframework.util.ClassUtils;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
public class JpaRepositoriesRegistrarIntegrationTests {
|
||||
class JpaRepositoriesRegistrarIntegrationTests {
|
||||
|
||||
@Autowired UserRepository repository;
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
public class NestedRepositoriesJavaConfigTests {
|
||||
class NestedRepositoriesJavaConfigTests {
|
||||
|
||||
@Autowired NestedUserRepository nestedUserRepository;
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(locations = "classpath:config/lookup-strategies-context.xml")
|
||||
public class QueryLookupStrategyTests {
|
||||
class QueryLookupStrategyTests {
|
||||
|
||||
@Autowired ApplicationContext context;
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
public class RepositoriesJavaConfigTests {
|
||||
class RepositoriesJavaConfigTests {
|
||||
|
||||
@Autowired Repositories repositories;
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ import com.mysql.cj.jdbc.MysqlDataSource;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = MySqlStoredProcedureIntegrationTests.Config.class)
|
||||
public class MySqlStoredProcedureIntegrationTests {
|
||||
class MySqlStoredProcedureIntegrationTests {
|
||||
|
||||
@Autowired EmployeeRepositoryWithNoCursor repository;
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ import org.testcontainers.containers.PostgreSQLContainer;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = PostgresStoredProcedureIntegrationTests.Config.class)
|
||||
public class PostgresStoredProcedureIntegrationTests {
|
||||
class PostgresStoredProcedureIntegrationTests {
|
||||
|
||||
@Autowired EmployeeRepositoryWithRefCursor repository;
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ import org.testcontainers.containers.PostgreSQLContainer;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = PostgresStoredProcedureNullHandlingIntegrationTests.Config.class)
|
||||
public class PostgresStoredProcedureNullHandlingIntegrationTests {
|
||||
class PostgresStoredProcedureNullHandlingIntegrationTests {
|
||||
|
||||
@Autowired TestModelRepository repository;
|
||||
|
||||
@@ -83,7 +83,7 @@ public class PostgresStoredProcedureNullHandlingIntegrationTests {
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
||||
@Entity
|
||||
public class TestModel {
|
||||
class TestModel {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = ProjectionsIntegrationTests.Config.class)
|
||||
public class ProjectionJoinIntegrationTests {
|
||||
class ProjectionJoinIntegrationTests {
|
||||
|
||||
@Autowired private UserRepository userRepository;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = Config.class)
|
||||
public class ProjectionsIntegrationTests {
|
||||
class ProjectionsIntegrationTests {
|
||||
|
||||
@Autowired DummyEntityWithCollectionRepository repository;
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:infrastructure.xml")
|
||||
public class AbstractJpaQueryTests {
|
||||
class AbstractJpaQueryTests {
|
||||
|
||||
@PersistenceContext EntityManager em;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:infrastructure.xml")
|
||||
public class AbstractStringBasedJpaQueryIntegrationTests {
|
||||
class AbstractStringBasedJpaQueryIntegrationTests {
|
||||
|
||||
@PersistenceContext EntityManager em;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
public class CustomNonBindableJpaParametersIntegrationTests {
|
||||
class CustomNonBindableJpaParametersIntegrationTests {
|
||||
|
||||
@Autowired ProductRepository products;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ import org.springframework.util.ObjectUtils;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:application-context.xml")
|
||||
@Transactional
|
||||
public class Jpa21UtilsTests {
|
||||
class Jpa21UtilsTests {
|
||||
|
||||
@Autowired EntityManager em;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:infrastructure.xml")
|
||||
public class JpaCountQueryCreatorIntegrationTests {
|
||||
class JpaCountQueryCreatorIntegrationTests {
|
||||
|
||||
@PersistenceContext EntityManager entityManager;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ import org.springframework.data.repository.query.RepositoryQuery;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class JpaQueryLookupStrategyUnitTests {
|
||||
class JpaQueryLookupStrategyUnitTests {
|
||||
|
||||
private static final QueryMethodEvaluationContextProvider EVALUATION_CONTEXT_PROVIDER = QueryMethodEvaluationContextProvider.DEFAULT;
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ import org.springframework.data.util.ClassTypeInformation;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class JpaQueryMethodUnitTests {
|
||||
class JpaQueryMethodUnitTests {
|
||||
|
||||
private static final String METHOD_NAME = "findByFirstname";
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
public class JpaQueryRewriteIntegrationTests {
|
||||
class JpaQueryRewriteIntegrationTests {
|
||||
|
||||
@Autowired private UserRepositoryWithRewriter repository;
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ import org.springframework.util.FileSystemUtils;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
@Transactional
|
||||
public class MetaAnnotatedQueryMethodEclipseLinkIntegrationTests {
|
||||
class MetaAnnotatedQueryMethodEclipseLinkIntegrationTests {
|
||||
|
||||
@Autowired RoleRepositoryWithMeta repository;
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
@Transactional
|
||||
public class MetaAnnotatedQueryMethodHibernateIntegrationTests {
|
||||
class MetaAnnotatedQueryMethodHibernateIntegrationTests {
|
||||
|
||||
@Autowired RoleRepositoryWithMeta repository;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.springframework.data.repository.core.support.DefaultRepositoryMetadat
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class MetaAnnotatedQueryMethodUnitTests {
|
||||
class MetaAnnotatedQueryMethodUnitTests {
|
||||
|
||||
@Mock QueryExtractor extractor;
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ import org.springframework.data.repository.query.Param;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class ParameterBinderUnitTests {
|
||||
class ParameterBinderUnitTests {
|
||||
|
||||
private static final int MAX_PARAMETERS = 1;
|
||||
private Method valid;
|
||||
|
||||
@@ -61,7 +61,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:infrastructure.xml")
|
||||
public class PartTreeJpaQueryIntegrationTests {
|
||||
class PartTreeJpaQueryIntegrationTests {
|
||||
|
||||
private static String PROPERTY = "h.target." + getQueryProperty();
|
||||
private static Class<?> HIBERNATE_NATIVE_QUERY = org.hibernate.query.Query.class;
|
||||
|
||||
@@ -72,7 +72,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:infrastructure.xml")
|
||||
public class QueryUtilsIntegrationTests {
|
||||
class QueryUtilsIntegrationTests {
|
||||
|
||||
@PersistenceContext EntityManager em;
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = QueryWithNullLikeHibernateIntegrationTests.Config.class)
|
||||
@Transactional
|
||||
public class QueryWithNullLikeHibernateIntegrationTests {
|
||||
class QueryWithNullLikeHibernateIntegrationTests {
|
||||
|
||||
@Autowired EmployeeWithNullLikeRepository repository;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ import org.springframework.data.repository.query.ReturnedType;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class TupleConverterUnitTests {
|
||||
class TupleConverterUnitTests {
|
||||
|
||||
@Mock Tuple tuple;
|
||||
@Mock TupleElement<String> element;
|
||||
|
||||
@@ -50,7 +50,7 @@ import org.springframework.stereotype.Component;
|
||||
* @author Jens Schauder
|
||||
* @soundtrack Marcus Miller - Papa Was A Rolling Stone (Afrodeezia)
|
||||
*/
|
||||
public class DefaultJpaContextIntegrationTests {
|
||||
class DefaultJpaContextIntegrationTests {
|
||||
|
||||
private static EntityManagerFactory firstEmf;
|
||||
private static EntityManagerFactory secondEmf;
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.data.jpa.repository.query.DefaultJpaEntityMetadata;
|
||||
* @author Christoph Strobl
|
||||
* @author Jens Schauder
|
||||
*/
|
||||
public class DefaultJpaEntityMetadataUnitTest {
|
||||
class DefaultJpaEntityMetadataUnitTest {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
public class EntityManagerBeanDefinitionRegistrarPostProcessorIntegrationTests {
|
||||
class EntityManagerBeanDefinitionRegistrarPostProcessorIntegrationTests {
|
||||
|
||||
@Autowired EntityManagerInjectionTarget target;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
|
||||
* @author Jens Schauder
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
public class EntityManagerBeanDefinitionRegistrarPostProcessorUnitTests {
|
||||
class EntityManagerBeanDefinitionRegistrarPostProcessorUnitTests {
|
||||
|
||||
@Test // DATAJPA-453
|
||||
void findsBeanDefinitionInParentBeanFactory() {
|
||||
|
||||
@@ -36,7 +36,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(locations = "classpath:multiple-entity-manager-integration-context.xml")
|
||||
public class EntityManagerFactoryRefTests {
|
||||
class EntityManagerFactoryRefTests {
|
||||
|
||||
@Autowired UserRepository userRepository;
|
||||
@Autowired AuditableUserRepository auditableUserRepository;
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.core.io.ClassPathResource;
|
||||
* @author Jens Schauder
|
||||
* @author Krzysztof Krason
|
||||
*/
|
||||
public class EntityManagerFactoryRefUnitTests {
|
||||
class EntityManagerFactoryRefUnitTests {
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("classpath:infrastructure.xml")
|
||||
public class HibernateJpaMetamodelEntityInformationIntegrationTests
|
||||
class HibernateJpaMetamodelEntityInformationIntegrationTests
|
||||
extends JpaMetamodelEntityInformationIntegrationTests {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -43,7 +43,7 @@ import org.mockito.quality.Strictness;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class JpaEntityInformationSupportUnitTests {
|
||||
class JpaEntityInformationSupportUnitTests {
|
||||
|
||||
@Mock EntityManager em;
|
||||
@Mock Metamodel metaModel;
|
||||
|
||||
@@ -57,7 +57,7 @@ import org.springframework.util.ClassUtils;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class JpaRepositoryFactoryUnitTests {
|
||||
class JpaRepositoryFactoryUnitTests {
|
||||
|
||||
private JpaRepositoryFactory factory;
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = SampleConfig.class)
|
||||
@Transactional
|
||||
public class MailMessageRepositoryIntegrationTests {
|
||||
class MailMessageRepositoryIntegrationTests {
|
||||
|
||||
private static final QMailMessage message = QMailMessage.mailMessage;
|
||||
static final QMailSender sender = QMailSender.mailSender;
|
||||
|
||||
@@ -45,7 +45,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional
|
||||
@ContextConfiguration
|
||||
@ExtendWith(SpringExtension.class)
|
||||
public class QuerydslRepositorySupportIntegrationTests {
|
||||
class QuerydslRepositorySupportIntegrationTests {
|
||||
|
||||
@Configuration
|
||||
@EnableTransactionManagement
|
||||
|
||||
@@ -43,7 +43,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration({ "classpath:infrastructure.xml" })
|
||||
@Transactional
|
||||
public class QuerydslRepositorySupportTests {
|
||||
class QuerydslRepositorySupportTests {
|
||||
|
||||
@PersistenceContext EntityManager em;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ import org.springframework.test.util.ReflectionTestUtils;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class ClasspathScanningPersistenceUnitPostProcessorUnitTests {
|
||||
class ClasspathScanningPersistenceUnitPostProcessorUnitTests {
|
||||
|
||||
@Mock MutablePersistenceUnitInfo pui;
|
||||
private String basePackage = getClass().getPackage().getName();
|
||||
|
||||
Reference in New Issue
Block a user