Home >> All >> org >> hibernate >> test >> [ connections Javadoc ] |
Source code: org/hibernate/test/connections/CurrentSessionConnectionTest.java
1 // $Id: CurrentSessionConnectionTest.java 9595 2006-03-10 18:14:21Z steve.ebersole@jboss.com $ 2 package org.hibernate.test.connections; 3 4 import org.hibernate.Session; 5 import junit.framework.Test; 6 import junit.framework.TestSuite; 7 8 /** 9 * Implementation of CurrentSessionConnectionTest. 10 * 11 * @author Steve Ebersole 12 */ 13 public class CurrentSessionConnectionTest extends AggressiveReleaseTest { 14 15 public CurrentSessionConnectionTest(String name) { 16 super( name ); 17 } 18 19 public static Test suite() { 20 return new TestSuite( CurrentSessionConnectionTest.class ); 21 } 22 23 protected Session getSessionUnderTest() throws Throwable { 24 return getSessions().getCurrentSession(); 25 } 26 27 protected void release(Session session) { 28 // do nothing, txn synch should release session as part of current-session definition 29 } 30 }