From 83eb8b0f760734c292c6e46b620488c832c834f3 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Tue, 14 Jun 2016 18:34:16 +0100 Subject: [PATCH] HHH-10341 - Fix failing test --- .../java/org/hibernate/test/hql/ASTParserLoadingTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java b/hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java index 5ceb00ab5d..5031d7ad35 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java @@ -2465,11 +2465,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();