public class BaseNonConfigCoreFunctionalTestCase extends BaseUnitTestCase
BaseUnitTestCase
.
Much like BaseCoreFunctionalTestCase
, except that
this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to
use (the neutered form of) Configuration.Modifier and Type | Class and Description |
---|---|
class |
BaseNonConfigCoreFunctionalTestCase.RollbackWork |
Modifier and Type | Field and Description |
---|---|
protected static Class[] |
NO_CLASSES |
protected static String[] |
NO_MAPPINGS |
static String |
VALIDATE_DATA_CLEANUP |
executorService, globalTimeout, log
Constructor and Description |
---|
BaseNonConfigCoreFunctionalTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSettings(Map settings) |
protected void |
afterBootstrapServiceRegistryBuilt(org.hibernate.boot.registry.BootstrapServiceRegistry bsr)
Hook to allow tests to use the BootstrapServiceRegistry if they wish
|
protected void |
afterMetadataBuilt(org.hibernate.boot.Metadata metadata) |
protected void |
afterMetadataSourcesApplied(org.hibernate.boot.MetadataSources metadataSources) |
protected void |
afterSessionFactoryBuilt(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) |
protected void |
afterStandardServiceRegistryBuilt(org.hibernate.boot.registry.StandardServiceRegistry ssr)
Hook to allow tests to use the StandardServiceRegistry if they wish
|
void |
afterTest() |
protected void |
applyCacheSettings(org.hibernate.boot.Metadata metadata) |
protected void |
applyMetadataSources(org.hibernate.boot.MetadataSources sources) |
protected void |
assertAllDataRemoved() |
void |
beforeTest() |
protected void |
buildResources() |
protected void |
cleanupCache() |
protected void |
cleanupTest() |
protected void |
cleanupTestData() |
protected void |
configureBootstrapServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistryBuilder bsrb)
Apply any desired config to the BootstrapServiceRegistryBuilder to be incorporated
into the built BootstrapServiceRegistry
|
protected void |
configureMetadataBuilder(org.hibernate.boot.MetadataBuilder metadataBuilder) |
protected void |
configureSessionFactoryBuilder(org.hibernate.boot.SessionFactoryBuilder sfb) |
protected void |
configureStandardServiceRegistryBuilder(org.hibernate.boot.registry.StandardServiceRegistryBuilder ssrb)
Apply any desired config to the StandardServiceRegistryBuilder to be incorporated
into the built StandardServiceRegistry
|
protected org.hibernate.boot.registry.StandardServiceRegistryBuilder |
constructStandardServiceRegistryBuilder() |
protected boolean |
createSchema() |
protected String |
createSecondSchema() |
<R> R |
fromSession(Function<org.hibernate.engine.spi.SessionImplementor,R> action) |
<R> R |
fromTransaction(Function<org.hibernate.engine.spi.SessionImplementor,R> action) |
protected Class[] |
getAnnotatedClasses() |
protected String[] |
getAnnotatedPackages() |
protected String |
getBaseForMappings() |
protected String |
getCacheConcurrencyStrategy() |
protected org.hibernate.dialect.Dialect |
getDialect() |
protected String[] |
getMappings() |
protected org.hibernate.Session |
getSession() |
protected String[] |
getXmlFiles() |
protected void |
initialize(org.hibernate.boot.MetadataBuilder metadataBuilder) |
void |
inSession(Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
void |
inStatelessSession(Consumer<org.hibernate.StatelessSession> action) |
void |
inStatelessTransaction(Consumer<org.hibernate.StatelessSession> action) |
void |
inTransaction(Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
protected boolean |
isCleanupTestDataRequired() |
protected org.hibernate.boot.spi.MetadataImplementor |
metadata() |
void |
onFailure() |
protected org.hibernate.Session |
openSession() |
protected org.hibernate.Session |
openSession(org.hibernate.Interceptor interceptor) |
protected boolean |
overrideCacheStrategy() |
protected void |
prepareTest() |
protected void |
rebuildSessionFactory() |
protected boolean |
rebuildSessionFactoryOnError() |
protected void |
releaseResources() |
protected org.hibernate.boot.registry.StandardServiceRegistry |
serviceRegistry() |
protected org.hibernate.engine.spi.SessionFactoryImplementor |
sessionFactory() |
protected void |
shutDown() |
protected void |
startUp() |
assertNoLeaks, executeAsync, executeSync, releaseTransactions, sleep
public static final String VALIDATE_DATA_CLEANUP
protected static final String[] NO_MAPPINGS
protected static final Class[] NO_CLASSES
protected org.hibernate.dialect.Dialect getDialect()
protected org.hibernate.boot.registry.StandardServiceRegistry serviceRegistry()
protected org.hibernate.boot.spi.MetadataImplementor metadata()
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 org.hibernate.Session getSession()
protected void rebuildSessionFactory()
protected void cleanupCache()
protected void startUp()
protected void buildResources()
protected final org.hibernate.boot.registry.StandardServiceRegistryBuilder constructStandardServiceRegistryBuilder()
protected void addSettings(Map settings)
protected void configureBootstrapServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistryBuilder bsrb)
bsrb
- The BootstrapServiceRegistryBuilderprotected void afterBootstrapServiceRegistryBuilt(org.hibernate.boot.registry.BootstrapServiceRegistry bsr)
bsr
- The BootstrapServiceRegistryprotected boolean createSchema()
protected String createSecondSchema()
protected void configureStandardServiceRegistryBuilder(org.hibernate.boot.registry.StandardServiceRegistryBuilder ssrb)
ssrb
- The StandardServiceRegistryBuilderprotected void afterStandardServiceRegistryBuilt(org.hibernate.boot.registry.StandardServiceRegistry ssr)
ssr
- The StandardServiceRegistryprotected void applyMetadataSources(org.hibernate.boot.MetadataSources sources)
protected String[] getMappings()
protected String getBaseForMappings()
protected Class[] getAnnotatedClasses()
protected String[] getAnnotatedPackages()
protected String[] getXmlFiles()
protected void afterMetadataSourcesApplied(org.hibernate.boot.MetadataSources metadataSources)
protected void initialize(org.hibernate.boot.MetadataBuilder metadataBuilder)
protected void configureMetadataBuilder(org.hibernate.boot.MetadataBuilder metadataBuilder)
protected boolean overrideCacheStrategy()
protected String getCacheConcurrencyStrategy()
protected final void applyCacheSettings(org.hibernate.boot.Metadata metadata)
protected void afterMetadataBuilt(org.hibernate.boot.Metadata metadata)
protected void configureSessionFactoryBuilder(org.hibernate.boot.SessionFactoryBuilder sfb)
protected void afterSessionFactoryBuilt(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
protected void shutDown()
protected void releaseResources()
public void onFailure()
protected boolean rebuildSessionFactoryOnError()
protected boolean isCleanupTestDataRequired()
protected void assertAllDataRemoved()
public void inSession(Consumer<org.hibernate.engine.spi.SessionImplementor> action)
public void inStatelessSession(Consumer<org.hibernate.StatelessSession> action)
public <R> R fromSession(Function<org.hibernate.engine.spi.SessionImplementor,R> action)
public void inTransaction(Consumer<org.hibernate.engine.spi.SessionImplementor> action)
public void inStatelessTransaction(Consumer<org.hibernate.StatelessSession> action)
public <R> R fromTransaction(Function<org.hibernate.engine.spi.SessionImplementor,R> action)
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.