Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.test.connections
Class SuppliedConnectionTest  view SuppliedConnectionTest download SuppliedConnectionTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.hibernate.test.TestCase
              extended byorg.hibernate.test.connections.ConnectionManagementTestCase
                  extended byorg.hibernate.test.connections.SuppliedConnectionTest
All Implemented Interfaces:
junit.framework.Test

public class SuppliedConnectionTest
extends ConnectionManagementTestCase

Implementation of SuppliedConnectionTest.


Field Summary
private  java.sql.Connection connectionUnderTest
           
private  org.hibernate.connection.ConnectionProvider cp
           
 
Fields inherited from class org.hibernate.test.TestCase
SKIP_LOG
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
SuppliedConnectionTest(java.lang.String name)
           
 
Method Summary
protected  void configure(org.hibernate.cfg.Configuration cfg)
           
protected  void done()
          Used to cleanup the environment after testing (e.g., ending a JTA transaction or closing a user-supplied connection).
protected  boolean dropAfterFailure()
           
protected  org.hibernate.Session getSessionUnderTest()
          Used to get a session configured based on the config scenario being tested.
protected  void reconnect(org.hibernate.Session session)
          Perform any steps needed to reconnect a fixture session.
protected  boolean recreateSchema()
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
           
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 
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.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cp

private org.hibernate.connection.ConnectionProvider cp

connectionUnderTest

private java.sql.Connection connectionUnderTest
Constructor Detail

SuppliedConnectionTest

public SuppliedConnectionTest(java.lang.String name)
Method Detail

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.