HHH-10341 - Fix failing test

(cherry picked from commit 83eb8b0f76)
This commit is contained in:
Andrea Boriero 2016-06-14 18:34:16 +01:00 committed by Gail Badner
parent 80e591f064
commit 99aa8dd34a
1 changed files with 4 additions and 4 deletions

View File

@ -2433,11 +2433,11 @@ public class ASTParserLoadingTest extends BaseCoreFunctionalTestCase {
a.setDescription("an animal");
s.persist(a);
String[] aliases1 = s.createQuery("select a.bodyWeight as abw, a.description from Animal a").getReturnAliases();
assertEquals( aliases1[0], "abw" );
assertEquals(aliases1[1], "1");
assertEquals( "abw", aliases1[0] );
assertEquals( null, aliases1[1] );
String[] aliases2 = s.createQuery("select count(*), avg(a.bodyWeight) as avg from Animal a").getReturnAliases();
assertEquals( aliases2[0], "0" );
assertEquals(aliases2[1], "avg");
assertEquals( null, aliases2[0] );
assertEquals( "avg", aliases2[1] );
s.delete(a);
t.commit();
s.close();