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

Quick Search    Search Deep

org.hibernate.test.connections
Class AggressiveReleaseTest  view AggressiveReleaseTest download AggressiveReleaseTest.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.AggressiveReleaseTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CurrentSessionConnectionTest

public class AggressiveReleaseTest
extends ConnectionManagementTestCase

Implementation of AggressiveReleaseTest.


Field Summary
 
Fields inherited from class org.hibernate.test.TestCase
SKIP_LOG
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
AggressiveReleaseTest(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  org.hibernate.Session getSessionUnderTest()
          Used to get a session configured based on the config scenario being tested.
protected  void prepare()
          Used to prepare the environment for testing (e.g., starting a JTA transaction or obtaining a user-supplied connection).
protected  void reconnect(org.hibernate.Session session)
          Perform any steps needed to reconnect a fixture session.
static junit.framework.Test suite()
           
 void testBorrowedConnections()
           
 void testConnectionMaintanenceDuringFlush()
           
 void testQueryIteration()
           
 void testQueryScrolling()
           
 void testSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResources()
           
 void testSerializationOnAfterStatementAggressiveRelease()
           
 void testSuppliedConnection()
           
 
Methods inherited from class org.hibernate.test.connections.ConnectionManagementTestCase
checkDeserializedState, checkSerializedState, getMappings, release, testBasicSessionUsage, testConnectedSerialization, testManualDisconnectChain, testManualDisconnectedSerialization, testManualDisconnectWithOpenResources, testSessionClosedProtections
 
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.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, tearDown, 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
 

Constructor Detail

AggressiveReleaseTest

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

suite

public static junit.framework.Test suite()

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

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

prepare

protected void prepare()
                throws java.lang.Throwable
Description copied from class: ConnectionManagementTestCase
Used to prepare the environment for testing (e.g., starting a JTA transaction or obtaining a user-supplied connection).

Overrides:
prepare 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

testSerializationOnAfterStatementAggressiveRelease

public void testSerializationOnAfterStatementAggressiveRelease()
                                                        throws java.lang.Throwable

testSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResources

public void testSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResources()
                                                                              throws java.lang.Throwable

testQueryIteration

public void testQueryIteration()
                        throws java.lang.Throwable

testQueryScrolling

public void testQueryScrolling()
                        throws java.lang.Throwable

testSuppliedConnection

public void testSuppliedConnection()
                            throws java.lang.Throwable

testBorrowedConnections

public void testBorrowedConnections()
                             throws java.lang.Throwable

testConnectionMaintanenceDuringFlush

public void testConnectionMaintanenceDuringFlush()
                                          throws java.lang.Throwable