Skip to content

Commit

Permalink
HHH-10341 - Fix failing test
Browse files Browse the repository at this point in the history
(cherry picked from commit 83eb8b0)
  • Loading branch information
dreab8 authored and gbadner committed Jun 28, 2016
1 parent adf41c6 commit f6aa53c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2433,11 +2433,11 @@ public void testAliases() {
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();
Expand Down

0 comments on commit f6aa53c

Please sign in to comment.