java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.hibernate.test.TestCase
org.hibernate.test.connections.ConnectionManagementTestCase
org.hibernate.test.connections.SuppliedConnectionTest
- All Implemented Interfaces:
- junit.framework.Test
- public class SuppliedConnectionTest
- extends ConnectionManagementTestCase
Implementation of SuppliedConnectionTest.
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class org.hibernate.test.connections.ConnectionManagementTestCase |
checkDeserializedState, checkSerializedState, getMappings, prepare, release, testBasicSessionUsage, testConnectedSerialization, testManualDisconnectChain, testManualDisconnectedSerialization, testManualDisconnectWithOpenResources, testSessionClosedProtections |
| Methods inherited from class org.hibernate.test.TestCase |
afterSessionFactoryBuilt, appliesTo, assertClassAssignability, assertElementTypeAssignability, dialectIsCaseSensitive, dialectSupportsEmptyInList, fullTestName, getBaseForMappings, getCacheConcurrencyStrategy, getCfg, getDialect, getExtraProperties, getSessions, openSession, openSession, overrideCacheStrategy, readCommittedIsolationMaintained, reportSkip, reportSkip, runTest, setCfg, 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 |
cp
private org.hibernate.connection.ConnectionProvider cp
connectionUnderTest
private java.sql.Connection connectionUnderTest
SuppliedConnectionTest
public SuppliedConnectionTest(java.lang.String name)
suite
public static junit.framework.Test suite()
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
reconnect
protected void reconnect(org.hibernate.Session session)
- Description copied from class:
ConnectionManagementTestCase
- Perform any steps needed to reconnect a fixture session.
- Specified by:
reconnect in class ConnectionManagementTestCase
done
protected void done()
throws java.lang.Throwable
- Description copied from class:
ConnectionManagementTestCase
- Used to cleanup the environment after testing (e.g., ending a JTA
transaction or closing a user-supplied connection).
- Overrides:
done in class ConnectionManagementTestCase
configure
protected void configure(org.hibernate.cfg.Configuration cfg)
- Overrides:
configure in class ConnectionManagementTestCase
dropAfterFailure
protected boolean dropAfterFailure()
recreateSchema
protected boolean recreateSchema()
setUp
protected void setUp()
throws java.lang.Exception
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
tearDown
protected void tearDown()
throws java.lang.Exception
- Description copied from class:
junit.framework.TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.