java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.hibernate.test.TestCase
org.hibernate.test.connections.ConnectionManagementTestCase
org.hibernate.test.connections.ThreadLocalCurrentSessionTest
- All Implemented Interfaces:
- junit.framework.Test
- public class ThreadLocalCurrentSessionTest
- extends ConnectionManagementTestCase
Fields inherited from class junit.framework.TestCase |
|
Methods inherited from class org.hibernate.test.TestCase |
afterSessionFactoryBuilt, appliesTo, assertClassAssignability, assertElementTypeAssignability, dialectIsCaseSensitive, dialectSupportsEmptyInList, dropAfterFailure, fullTestName, getBaseForMappings, getCacheConcurrencyStrategy, getCfg, getDialect, getExtraProperties, getSessions, openSession, openSession, overrideCacheStrategy, readCommittedIsolationMaintained, recreateSchema, reportSkip, reportSkip, runTest, setCfg, setUp, sfi |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
ThreadLocalCurrentSessionTest
public ThreadLocalCurrentSessionTest(java.lang.String name)
configure
protected void configure(org.hibernate.cfg.Configuration cfg)
- Overrides:
configure
in class ConnectionManagementTestCase
getSessionUnderTest
protected org.hibernate.Session getSessionUnderTest()
throws java.lang.Throwable
- Description copied from class:
ConnectionManagementTestCase
- Used to get a session configured based on the config scenario being
tested.
- Specified by:
getSessionUnderTest
in class ConnectionManagementTestCase
release
protected void release(org.hibernate.Session session)
- Description copied from class:
ConnectionManagementTestCase
- Used to release a fixture session 55 .
Overridden to perform session releasing/testing specific to the given
config scenario being tested.
- Overrides:
release
in class ConnectionManagementTestCase
reconnect
protected void reconnect(org.hibernate.Session session)
throws java.lang.Throwable
- Description copied from class:
ConnectionManagementTestCase
- Perform any steps needed to reconnect a fixture session.
- Specified by:
reconnect
in class ConnectionManagementTestCase
checkSerializedState
protected void checkSerializedState(org.hibernate.Session session)
- Description copied from class:
ConnectionManagementTestCase
- Check the state of a fixture session after serialization, as well
as validate the environmental state after session serialization.
- Overrides:
checkSerializedState
in class ConnectionManagementTestCase
checkDeserializedState
protected void checkDeserializedState(org.hibernate.Session session)
- Description copied from class:
ConnectionManagementTestCase
- Check the state of a fixture session after deserialization, as well
as validate the environmental state after session deserialization.
- Overrides:
checkDeserializedState
in class ConnectionManagementTestCase
testTransactionProtection
public void testTransactionProtection()
testContextCleanup
public void testContextCleanup()