Fixed exception handling to expect IllegalArgumentException rather than QueryExceptioin

This commit is contained in:
Chris Cranford 2016-04-26 11:30:01 -05:00 committed by Steve Ebersole
parent 4b2e96c6e9
commit a340d11eea
1 changed files with 0 additions and 2 deletions

View File

@ -83,7 +83,6 @@ import org.junit.Test;
import org.jboss.logging.Logger;
import static org.hibernate.testing.junit4.ExtraAssertions.assertTyping;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
@ -1773,7 +1772,6 @@ public class FooBarTest extends LegacyTestCase {
}
catch (IllegalArgumentException qe) {
//should happen
assertTyping( QueryException.class, qe.getCause() );
}
q = s.createQuery("select bar, b from Bar bar inner join bar.baz baz inner join baz.cascadingBars b where bar.name like 'Bar%'");