public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase
BaseUnitTestCase
Modifier and Type | Class and Description |
---|---|
static class |
BaseCoreFunctionalTestCase.RollbackWork |
Modifier and Type | Field and Description |
---|---|
static org.hibernate.dialect.Dialect |
DIALECT |
protected static Class<?>[] |
NO_CLASSES |
protected static String[] |
NO_MAPPINGS |
protected org.hibernate.Session |
session |
static String |
VALIDATE_DATA_CLEANUP |
executorService, globalTimeout, log
Constructor and Description |
---|
BaseCoreFunctionalTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addMappings(org.hibernate.cfg.Configuration configuration) |
protected void |
afterConfigurationBuilt(org.hibernate.cfg.Configuration configuration) |
protected void |
afterSessionFactoryBuilt() |
void |
afterTest() |
protected void |
applyCacheSettings(org.hibernate.cfg.Configuration configuration) |
protected void |
assertAllDataRemoved() |
void |
beforeTest() |
protected org.hibernate.boot.registry.BootstrapServiceRegistry |
buildBootstrapServiceRegistry() |
protected org.hibernate.boot.registry.internal.StandardServiceRegistryImpl |
buildServiceRegistry(org.hibernate.boot.registry.BootstrapServiceRegistry bootRegistry,
org.hibernate.cfg.Configuration configuration) |
protected void |
buildSessionFactory() |
protected void |
buildSessionFactory(Consumer<org.hibernate.cfg.Configuration> configurationAdapter) |
protected void |
cleanupCache() |
protected void |
cleanupTest() |
protected void |
cleanupTestData() |
protected org.hibernate.cfg.Configuration |
configuration() |
protected void |
configure(org.hibernate.cfg.Configuration configuration) |
protected org.hibernate.cfg.Configuration |
constructAndConfigureConfiguration(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry) |
protected org.hibernate.cfg.Configuration |
constructConfiguration(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry) |
protected boolean |
createSchema() |
protected String |
createSecondSchema()
Feature supported only by H2 dialect.
|
protected Class<?>[] |
getAnnotatedClasses() |
protected String[] |
getAnnotatedPackages() |
protected String |
getBaseForMappings() |
protected String |
getCacheConcurrencyStrategy() |
protected static org.hibernate.dialect.Dialect |
getDialect() |
protected String[] |
getMappings() |
protected String[] |
getXmlFiles()
Deprecated.
(Since 6.0) this method will be renamed to getOrmXmlFile().
|
protected void |
inSession(Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
protected void |
inStatelessSession(Consumer<org.hibernate.StatelessSession> action) |
protected void |
inTransaction(Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
protected void |
inTransaction(org.hibernate.engine.spi.SessionImplementor session,
Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
protected boolean |
isCleanupTestDataRequired() |
protected boolean |
isCleanupTestDataUsingBulkDelete() |
void |
onFailure() |
protected org.hibernate.Session |
openSession() |
protected org.hibernate.Session |
openSession(org.hibernate.Interceptor interceptor) |
protected void |
prepareBasicRegistryBuilder(org.hibernate.boot.registry.StandardServiceRegistryBuilder serviceRegistryBuilder) |
protected void |
prepareBootstrapRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistryBuilder builder) |
protected void |
prepareTest() |
protected boolean |
readCommittedIsolationMaintained(String scenario) |
protected void |
rebuildSessionFactory() |
protected void |
rebuildSessionFactory(Consumer<org.hibernate.cfg.Configuration> configurationAdapter) |
protected boolean |
rebuildSessionFactoryOnError() |
protected void |
releaseSessionFactory() |
protected org.hibernate.boot.registry.internal.StandardServiceRegistryImpl |
serviceRegistry() |
protected org.hibernate.engine.spi.SessionFactoryImplementor |
sessionFactory() |
assertNoLeaks, executeAsync, executeSync, releaseTransactions, sleep
public static final String VALIDATE_DATA_CLEANUP
public static final org.hibernate.dialect.Dialect DIALECT
protected org.hibernate.Session session
protected static final String[] NO_MAPPINGS
protected static final Class<?>[] NO_CLASSES
protected static org.hibernate.dialect.Dialect getDialect()
protected org.hibernate.cfg.Configuration configuration()
protected org.hibernate.boot.registry.internal.StandardServiceRegistryImpl serviceRegistry()
protected org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory()
protected org.hibernate.Session openSession() throws org.hibernate.HibernateException
org.hibernate.HibernateException
protected org.hibernate.Session openSession(org.hibernate.Interceptor interceptor) throws org.hibernate.HibernateException
org.hibernate.HibernateException
protected void buildSessionFactory()
protected void buildSessionFactory(Consumer<org.hibernate.cfg.Configuration> configurationAdapter)
protected void rebuildSessionFactory()
protected void rebuildSessionFactory(Consumer<org.hibernate.cfg.Configuration> configurationAdapter)
protected org.hibernate.cfg.Configuration constructAndConfigureConfiguration(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry)
protected org.hibernate.cfg.Configuration constructConfiguration(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry)
protected void configure(org.hibernate.cfg.Configuration configuration)
protected void addMappings(org.hibernate.cfg.Configuration configuration)
protected String[] getMappings()
protected String getBaseForMappings()
protected Class<?>[] getAnnotatedClasses()
protected String[] getAnnotatedPackages()
@Deprecated protected String[] getXmlFiles()
protected void applyCacheSettings(org.hibernate.cfg.Configuration configuration)
protected String getCacheConcurrencyStrategy()
protected void afterConfigurationBuilt(org.hibernate.cfg.Configuration configuration)
protected org.hibernate.boot.registry.BootstrapServiceRegistry buildBootstrapServiceRegistry()
protected void prepareBootstrapRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistryBuilder builder)
protected org.hibernate.boot.registry.internal.StandardServiceRegistryImpl buildServiceRegistry(org.hibernate.boot.registry.BootstrapServiceRegistry bootRegistry, org.hibernate.cfg.Configuration configuration)
protected void prepareBasicRegistryBuilder(org.hibernate.boot.registry.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<org.hibernate.engine.spi.SessionImplementor> action)
protected void inTransaction(org.hibernate.engine.spi.SessionImplementor session, Consumer<org.hibernate.engine.spi.SessionImplementor> action)
protected void inSession(Consumer<org.hibernate.engine.spi.SessionImplementor> action)
protected void inStatelessSession(Consumer<org.hibernate.StatelessSession> action)
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.