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 |
---|---|
static 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() |
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 Dialect getDialect()
protected StandardServiceRegistry serviceRegistry()
protected MetadataImplementor metadata()
protected SessionFactoryImplementor sessionFactory()
protected Session openSession() throws HibernateException
HibernateException
protected Session openSession(Interceptor interceptor) throws HibernateException
HibernateException
protected Session getSession()
protected void rebuildSessionFactory()
protected void cleanupCache()
protected void startUp()
protected void buildResources()
protected final StandardServiceRegistryBuilder constructStandardServiceRegistryBuilder()
protected void addSettings(Map settings)
protected void configureBootstrapServiceRegistryBuilder(BootstrapServiceRegistryBuilder bsrb)
bsrb
- The BootstrapServiceRegistryBuilderprotected void afterBootstrapServiceRegistryBuilt(BootstrapServiceRegistry bsr)
bsr
- The BootstrapServiceRegistryprotected boolean createSchema()
protected String createSecondSchema()
protected void configureStandardServiceRegistryBuilder(StandardServiceRegistryBuilder ssrb)
ssrb
- The StandardServiceRegistryBuilderprotected void afterStandardServiceRegistryBuilt(StandardServiceRegistry ssr)
ssr
- The StandardServiceRegistryprotected void applyMetadataSources(MetadataSources sources)
protected String[] getMappings()
protected String getBaseForMappings()
protected Class[] getAnnotatedClasses()
protected String[] getAnnotatedPackages()
protected String[] getXmlFiles()
protected void afterMetadataSourcesApplied(MetadataSources metadataSources)
protected void initialize(MetadataBuilder metadataBuilder)
protected void configureMetadataBuilder(MetadataBuilder metadataBuilder)
protected boolean overrideCacheStrategy()
protected String getCacheConcurrencyStrategy()
protected final void applyCacheSettings(Metadata metadata)
protected void afterMetadataBuilt(Metadata metadata)
protected void configureSessionFactoryBuilder(SessionFactoryBuilder sfb)
protected void afterSessionFactoryBuilt(SessionFactoryImplementor sessionFactory)
protected void shutDown()
protected void releaseResources()
public void onFailure()
protected boolean rebuildSessionFactoryOnError()
protected boolean isCleanupTestDataRequired()
protected void assertAllDataRemoved()
public void inSession(Consumer<SessionImplementor> action)
public void inStatelessSession(Consumer<StatelessSession> action)
public <R> R fromSession(Function<SessionImplementor,R> action)
public void inTransaction(Consumer<SessionImplementor> action)
public void inStatelessTransaction(Consumer<StatelessSession> action)
public <R> R fromTransaction(Function<SessionImplementor,R> action)
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.