Skip to content

Commit aab7513

Browse files
committed
Fixed exception handling to expect IllegalArgumentException rather than QueryExceptioin
1 parent 38e487f commit aab7513

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

hibernate-core/src/test/java/org/hibernate/test/legacy/FooBarTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383

8484
import org.jboss.logging.Logger;
8585

86-
import static org.hibernate.testing.junit4.ExtraAssertions.assertTyping;
8786
import static org.junit.Assert.assertEquals;
8887
import static org.junit.Assert.assertFalse;
8988
import static org.junit.Assert.assertNull;
@@ -1773,7 +1772,6 @@ public void testNamedParams() throws Exception {
17731772
}
17741773
catch (IllegalArgumentException qe) {
17751774
//should happen
1776-
assertTyping( QueryException.class, qe.getCause() );
17771775
}
17781776

17791777
q = s.createQuery("select bar, b from Bar bar inner join bar.baz baz inner join baz.cascadingBars b where bar.name like 'Bar%'");

0 commit comments

Comments
 (0)