FileDocCategorySizeDatePackage
AbstractOperationTestCase.javaAPI DocHibernate 3.2.51509Mon Jan 08 05:00:02 GMT 2007org.hibernate.test.ops

AbstractOperationTestCase

public abstract class AbstractOperationTestCase extends org.hibernate.junit.functional.FunctionalTestCase
{@inheritDoc}
author
Steve Ebersole

Fields Summary
Constructors Summary
public AbstractOperationTestCase(String name)

		super( name );
	
Methods Summary
protected voidassertDeleteCount(int expected)

		int deletes = ( int ) getSessions().getStatistics().getEntityDeleteCount();
		assertEquals( "unexpected delete counts", expected, deletes );
	
protected voidassertInsertCount(int expected)

		int inserts = ( int ) getSessions().getStatistics().getEntityInsertCount();
		assertEquals( "unexpected insert count", expected, inserts );
	
protected voidassertUpdateCount(int expected)

		int updates = ( int ) getSessions().getStatistics().getEntityUpdateCount();
		assertEquals( "unexpected update counts", expected, updates );
	
protected voidclearCounts()

		getSessions().getStatistics().clear();
	
public voidconfigure(org.hibernate.cfg.Configuration cfg)

		cfg.setProperty( Environment.GENERATE_STATISTICS, "true");
		cfg.setProperty( Environment.STATEMENT_BATCH_SIZE, "0" );
	
public java.lang.StringgetCacheConcurrencyStrategy()

		return null;
	
public java.lang.String[]getMappings()

		return new String[] { "ops/Node.hbm.xml", "ops/Employer.hbm.xml", "ops/OptLockEntity.hbm.xml", "ops/OneToOne.hbm.xml", "ops/Competition.hbm.xml" };