Formatting

This commit is contained in:
Hardy Ferentschik 2012-07-23 17:02:08 +02:00
parent 49e156d309
commit 58b5b7038b
1 changed files with 4 additions and 3 deletions

View File

@ -40,12 +40,13 @@ import org.hibernate.testing.jta.TestingJtaPlatformImpl;
*
* @author Steve Ebersole
*/
@RunWith( CustomRunner.class )
@RunWith(CustomRunner.class)
public abstract class BaseUnitTestCase {
private static final Logger log = Logger.getLogger( BaseUnitTestCase.class );
@Rule
public TestRule globalTimeout= new Timeout(30 * 60 * 1000); // no test should run longer than 30 minutes
public TestRule globalTimeout = new Timeout( 30 * 60 * 1000 ); // no test should run longer than 30 minutes
@After
public void releaseTransactions() {
if ( JtaStatusHelper.isActive( TestingJtaPlatformImpl.INSTANCE.getTransactionManager() ) ) {
@ -53,7 +54,7 @@ public abstract class BaseUnitTestCase {
try {
TestingJtaPlatformImpl.INSTANCE.getTransactionManager().rollback();
}
catch (SystemException ignored) {
catch ( SystemException ignored ) {
}
}
}