public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase
BaseUnitTestCase
Modifier and Type | Class and Description |
---|---|
static class |
BaseCoreFunctionalTestCase.RollbackWork |
Modifier and Type | Field and Description |
---|---|
static Dialect |
DIALECT |
protected static Class<?>[] |
NO_CLASSES |
protected static String[] |
NO_MAPPINGS |
protected Session |
session |
static String |
VALIDATE_DATA_CLEANUP |
executorService, globalTimeout, log
Constructor and Description |
---|
BaseCoreFunctionalTestCase() |
assertNoLeaks, executeAsync, executeSync, releaseTransactions, sleep
public static final String VALIDATE_DATA_CLEANUP
public static final Dialect DIALECT
protected Session session
protected static final String[] NO_MAPPINGS
protected static final Class<?>[] NO_CLASSES
protected static Dialect getDialect()
protected Configuration configuration()
protected org.hibernate.boot.registry.internal.StandardServiceRegistryImpl serviceRegistry()
protected SessionFactoryImplementor sessionFactory()
protected Session openSession() throws HibernateException
HibernateException
protected Session openSession(Interceptor interceptor) throws HibernateException
HibernateException
protected void buildSessionFactory()
protected void buildSessionFactory(Consumer<Configuration> configurationAdapter)
protected void rebuildSessionFactory()
protected void rebuildSessionFactory(Consumer<Configuration> configurationAdapter)
protected Configuration buildConfiguration()
protected Configuration constructAndConfigureConfiguration()
protected Configuration constructConfiguration()
protected void configure(Configuration configuration)
protected void addMappings(Configuration configuration)
protected String[] getMappings()
protected String getBaseForMappings()
protected Class<?>[] getAnnotatedClasses()
protected String[] getAnnotatedPackages()
protected String[] getXmlFiles()
protected void applyCacheSettings(Configuration configuration)
protected String getCacheConcurrencyStrategy()
protected void afterConfigurationBuilt(Configuration configuration)
protected BootstrapServiceRegistry buildBootstrapServiceRegistry()
protected void prepareBootstrapRegistryBuilder(BootstrapServiceRegistryBuilder builder)
protected org.hibernate.boot.registry.internal.StandardServiceRegistryImpl buildServiceRegistry(BootstrapServiceRegistry bootRegistry, Configuration configuration)
protected void prepareBasicRegistryBuilder(StandardServiceRegistryBuilder serviceRegistryBuilder)
protected void afterSessionFactoryBuilt()
protected boolean createSchema()
protected String createSecondSchema()
protected boolean rebuildSessionFactoryOnError()
protected void releaseSessionFactory()
public void onFailure()
protected void cleanupCache()
protected boolean isCleanupTestDataRequired()
protected boolean isCleanupTestDataUsingBulkDelete()
protected void assertAllDataRemoved()
protected boolean readCommittedIsolationMaintained(String scenario)
protected void inTransaction(Consumer<SessionImplementor> action)
protected void inTransaction(SessionImplementor session, Consumer<SessionImplementor> action)
protected void inSession(Consumer<SessionImplementor> action)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.