fixed bad test code

This commit is contained in:
Steve Ebersole 2016-02-08 16:21:10 -06:00 committed by Andrea Boriero
parent 6420610ced
commit f3d40ffad1
1 changed files with 2 additions and 3 deletions

View File

@ -16,11 +16,10 @@ import org.hibernate.annotations.Nationalized;
import org.hibernate.dialect.Oracle10gDialect;
import org.hibernate.resource.transaction.spi.TransactionStatus;
import org.junit.Test;
import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import org.junit.Test;
/**
* @author Andrea Boriero
@ -44,7 +43,7 @@ public class StringNationalizedTest extends BaseCoreFunctionalTestCase {
s.save( ne );
s.getTransaction().commit();
}
catch (Exception e) {
catch (RuntimeException e) {
if ( s.getTransaction().getStatus() == TransactionStatus.ACTIVE ) {
s.getTransaction().rollback();
}