Class BaseCoreFunctionalTestCase


  • public abstract class BaseCoreFunctionalTestCase
    extends BaseUnitTestCase
    Applies functional testing logic for core Hibernate testing on top of BaseUnitTestCase
    • Field Detail

      • DIALECT

        public static final Dialect DIALECT
      • session

        protected Session session
      • NO_MAPPINGS

        protected static final String[] NO_MAPPINGS
      • NO_CLASSES

        protected static final Class<?>[] NO_CLASSES
    • Constructor Detail

      • BaseCoreFunctionalTestCase

        public BaseCoreFunctionalTestCase()
    • Method Detail

      • getDialect

        protected static Dialect getDialect()
      • serviceRegistry

        protected org.hibernate.boot.registry.internal.StandardServiceRegistryImpl serviceRegistry()
      • buildSessionFactory

        protected void buildSessionFactory()
      • buildSessionFactory

        protected void buildSessionFactory​(Consumer<Configuration> configurationAdapter)
      • rebuildSessionFactory

        protected void rebuildSessionFactory()
      • rebuildSessionFactory

        protected void rebuildSessionFactory​(Consumer<Configuration> configurationAdapter)
      • buildConfiguration

        protected Configuration buildConfiguration()
      • constructAndConfigureConfiguration

        protected Configuration constructAndConfigureConfiguration()
      • constructConfiguration

        protected Configuration constructConfiguration()
      • configure

        protected void configure​(Configuration configuration)
      • addMappings

        protected void addMappings​(Configuration configuration)
      • getMappings

        protected String[] getMappings()
      • getBaseForMappings

        protected String getBaseForMappings()
      • getAnnotatedClasses

        protected Class<?>[] getAnnotatedClasses()
      • getAnnotatedPackages

        protected String[] getAnnotatedPackages()
      • getXmlFiles

        protected String[] getXmlFiles()
      • applyCacheSettings

        protected void applyCacheSettings​(Configuration configuration)
      • getCacheConcurrencyStrategy

        protected String getCacheConcurrencyStrategy()
      • afterConfigurationBuilt

        protected void afterConfigurationBuilt​(Configuration configuration)
      • buildServiceRegistry

        protected org.hibernate.boot.registry.internal.StandardServiceRegistryImpl buildServiceRegistry​(BootstrapServiceRegistry bootRegistry,
                                                                                                        Configuration configuration)
      • afterSessionFactoryBuilt

        protected void afterSessionFactoryBuilt()
      • createSchema

        protected boolean createSchema()
      • createSecondSchema

        protected String createSecondSchema()
        Feature supported only by H2 dialect.
        Returns:
        Provide not empty name to create second schema.
      • rebuildSessionFactoryOnError

        protected boolean rebuildSessionFactoryOnError()
      • releaseSessionFactory

        protected void releaseSessionFactory()
      • onFailure

        public void onFailure()
      • cleanupCache

        protected void cleanupCache()
      • isCleanupTestDataRequired

        protected boolean isCleanupTestDataRequired()
      • isCleanupTestDataUsingBulkDelete

        protected boolean isCleanupTestDataUsingBulkDelete()
      • assertAllDataRemoved

        protected void assertAllDataRemoved()
      • readCommittedIsolationMaintained

        protected boolean readCommittedIsolationMaintained​(String scenario)