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 java.lang.Class<?>[] |
NO_CLASSES |
protected static java.lang.String[] |
NO_MAPPINGS |
protected Session |
session |
static java.lang.String |
VALIDATE_DATA_CLEANUP |
executorService, globalTimeout, log
Constructor and Description |
---|
BaseCoreFunctionalTestCase() |
assertNoLeaks, executeAsync, executeSync, releaseTransactions, sleep
public static final java.lang.String VALIDATE_DATA_CLEANUP
public static final Dialect DIALECT
protected Session session
protected static final java.lang.String[] NO_MAPPINGS
protected static final java.lang.Class<?>[] NO_CLASSES
protected static Dialect getDialect()
protected Configuration configuration()
protected 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(java.util.function.Consumer<Configuration> configurationAdapter)
protected void rebuildSessionFactory()
protected void rebuildSessionFactory(java.util.function.Consumer<Configuration> configurationAdapter)
protected Configuration buildConfiguration()
protected Configuration constructAndConfigureConfiguration()
protected Configuration constructConfiguration()
protected void configure(Configuration configuration)
protected void addMappings(Configuration configuration)
protected java.lang.String[] getMappings()
protected java.lang.String getBaseForMappings()
protected java.lang.Class<?>[] getAnnotatedClasses()
protected java.lang.String[] getAnnotatedPackages()
protected java.lang.String[] getXmlFiles()
protected void applyCacheSettings(Configuration configuration)
protected java.lang.String getCacheConcurrencyStrategy()
protected void afterConfigurationBuilt(Configuration configuration)
protected BootstrapServiceRegistry buildBootstrapServiceRegistry()
protected void prepareBootstrapRegistryBuilder(BootstrapServiceRegistryBuilder builder)
protected StandardServiceRegistryImpl buildServiceRegistry(BootstrapServiceRegistry bootRegistry, Configuration configuration)
protected void prepareBasicRegistryBuilder(StandardServiceRegistryBuilder serviceRegistryBuilder)
protected void afterSessionFactoryBuilt()
protected boolean createSchema()
protected java.lang.String createSecondSchema()
protected boolean rebuildSessionFactoryOnError()
protected void releaseSessionFactory()
public void onFailure()
public final void beforeTest() throws java.lang.Exception
java.lang.Exception
protected void prepareTest() throws java.lang.Exception
java.lang.Exception
public final void afterTest() throws java.lang.Exception
java.lang.Exception
protected void cleanupCache()
protected boolean isCleanupTestDataRequired()
protected boolean isCleanupTestDataUsingBulkDelete()
protected void cleanupTestData() throws java.lang.Exception
java.lang.Exception
protected void cleanupTest() throws java.lang.Exception
java.lang.Exception
protected void assertAllDataRemoved()
protected boolean readCommittedIsolationMaintained(java.lang.String scenario)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.