From f3d40ffad14102da183febc279fb802508b22363 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 8 Feb 2016 16:21:10 -0600 Subject: [PATCH] fixed bad test code --- .../hibernate/test/nationalized/StringNationalizedTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/nationalized/StringNationalizedTest.java b/hibernate-core/src/test/java/org/hibernate/test/nationalized/StringNationalizedTest.java index c8f48b1ea8..80700b7fd1 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/nationalized/StringNationalizedTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/nationalized/StringNationalizedTest.java @@ -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(); }