public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase
BaseUnitTestCase
Modifier and Type | Class and Description |
---|---|
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 |
USE_NEW_METADATA_MAPPINGS |
static java.lang.String |
VALIDATE_DATA_CLEANUP |
globalTimeout
Constructor and Description |
---|
BaseCoreFunctionalTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addMappings(Configuration configuration) |
protected void |
addMappings(MetadataSources sources) |
protected void |
afterConfigurationBuilt(Configuration configuration) |
protected void |
afterConfigurationBuilt(Mappings mappings,
Dialect dialect) |
protected void |
afterSessionFactoryBuilt() |
void |
afterTest() |
protected void |
applyCacheSettings(Configuration configuration) |
protected void |
assertAllDataRemoved() |
void |
beforeTest() |
protected Configuration |
buildConfiguration() |
protected StandardServiceRegistryImpl |
buildServiceRegistry(Configuration configuration) |
protected void |
buildSessionFactory() |
protected void |
cleanupCache() |
protected void |
cleanupTest() |
protected void |
cleanupTestData() |
protected Configuration |
configuration() |
protected void |
configure(Configuration configuration) |
protected Configuration |
constructConfiguration() |
protected boolean |
createSchema() |
protected java.lang.String |
createSecondSchema()
Feature supported only by H2 dialect.
|
protected BootstrapServiceRegistry |
generateBootstrapRegistry(java.util.Properties properties) |
protected java.lang.Class<?>[] |
getAnnotatedClasses() |
protected java.lang.String[] |
getAnnotatedPackages() |
protected java.lang.String |
getBaseForMappings() |
protected java.lang.String |
getCacheConcurrencyStrategy() |
protected static Dialect |
getDialect() |
protected java.lang.String[] |
getMappings() |
protected java.lang.String[] |
getXmlFiles() |
protected boolean |
isCleanupTestDataRequired() |
void |
onFailure() |
protected Session |
openSession() |
protected Session |
openSession(Interceptor interceptor) |
protected boolean |
overrideCacheStrategy() |
protected void |
prepareBasicRegistryBuilder(ServiceRegistryBuilder serviceRegistryBuilder) |
protected void |
prepareBootstrapRegistryBuilder(BootstrapServiceRegistryBuilder builder) |
protected void |
prepareTest() |
protected boolean |
readCommittedIsolationMaintained(java.lang.String scenario) |
protected void |
rebuildSessionFactory() |
protected boolean |
rebuildSessionFactoryOnError() |
protected StandardServiceRegistryImpl |
serviceRegistry() |
protected SessionFactoryImplementor |
sessionFactory() |
releaseTransactions
public static final java.lang.String VALIDATE_DATA_CLEANUP
public static final java.lang.String USE_NEW_METADATA_MAPPINGS
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 Configuration buildConfiguration()
protected Configuration constructConfiguration()
protected void configure(Configuration configuration)
protected void addMappings(Configuration configuration)
protected void addMappings(MetadataSources sources)
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 boolean overrideCacheStrategy()
protected java.lang.String getCacheConcurrencyStrategy()
protected void afterConfigurationBuilt(Configuration configuration)
protected StandardServiceRegistryImpl buildServiceRegistry(Configuration configuration)
protected BootstrapServiceRegistry generateBootstrapRegistry(java.util.Properties properties)
protected void prepareBootstrapRegistryBuilder(BootstrapServiceRegistryBuilder builder)
protected void prepareBasicRegistryBuilder(ServiceRegistryBuilder serviceRegistryBuilder)
protected void afterSessionFactoryBuilt()
protected boolean createSchema()
protected java.lang.String createSecondSchema()
protected boolean rebuildSessionFactoryOnError()
public void onFailure()
protected void rebuildSessionFactory()
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 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-2013 Red Hat, Inc. All Rights Reserved.