Methods Summary |
---|
protected void | cleanupTest()
Connection conn = cp.getConnection();
try {
new SchemaExport( getCfg(), conn ).drop( false, true );
}
finally {
if ( conn != null ) {
try {
cp.closeConnection( conn );
}
catch( Throwable ignore ) {
}
}
}
try {
cp.close();
}
catch( Throwable ignore ) {
}
super.cleanupTest();
|
public void | configure(org.hibernate.cfg.Configuration cfg)
super.configure( cfg );
cfg.setProperty( Environment.RELEASE_CONNECTIONS, ConnectionReleaseMode.ON_CLOSE.toString() );
cfg.setProperty( Environment.CONNECTION_PROVIDER, UserSuppliedConnectionProvider.class.getName() );
boolean supportsScroll = true;
Connection conn = null;
try {
conn = cp.getConnection();
supportsScroll = conn.getMetaData().supportsResultSetType(ResultSet.TYPE_SCROLL_INSENSITIVE);
}
catch( Throwable ignore ) {
}
finally {
if ( conn != null ) {
try {
conn.close();
}
catch( Throwable ignore ) {
// ignore it...
}
}
}
cfg.setProperty( Environment.USE_SCROLLABLE_RESULTSET, "" + supportsScroll );
|
public boolean | createSchema()
return false;
|
protected void | done()
cp.closeConnection( connectionUnderTest );
|
protected org.hibernate.Session | getSessionUnderTest()
connectionUnderTest = cp.getConnection();
return getSessions().openSession( connectionUnderTest );
|
protected void | prepareTest()
super.prepareTest();
Connection conn = cp.getConnection();
try {
new SchemaExport( getCfg(), conn ).create( false, true );
}
finally {
if ( conn != null ) {
try {
cp.closeConnection( conn );
}
catch( Throwable ignore ) {
}
}
}
|
protected void | reconnect(org.hibernate.Session session)
session.reconnect( connectionUnderTest );
|
public boolean | recreateSchemaAfterFailure()
return false;
|
public static junit.framework.Test | suite()
return new FunctionalTestClassTestSuite( SuppliedConnectionTest.class );
|