HHH-10341 - Fix failing test
This commit is contained in:
parent
04f1fcc762
commit
83eb8b0f76
|
@ -2465,11 +2465,11 @@ public class ASTParserLoadingTest extends BaseCoreFunctionalTestCase {
|
||||||
a.setDescription("an animal");
|
a.setDescription("an animal");
|
||||||
s.persist(a);
|
s.persist(a);
|
||||||
String[] aliases1 = s.createQuery("select a.bodyWeight as abw, a.description from Animal a").getReturnAliases();
|
String[] aliases1 = s.createQuery("select a.bodyWeight as abw, a.description from Animal a").getReturnAliases();
|
||||||
assertEquals( aliases1[0], "abw" );
|
assertEquals( "abw", aliases1[0] );
|
||||||
assertEquals(aliases1[1], "1");
|
assertEquals( null, aliases1[1] );
|
||||||
String[] aliases2 = s.createQuery("select count(*), avg(a.bodyWeight) as avg from Animal a").getReturnAliases();
|
String[] aliases2 = s.createQuery("select count(*), avg(a.bodyWeight) as avg from Animal a").getReturnAliases();
|
||||||
assertEquals( aliases2[0], "0" );
|
assertEquals( null, aliases2[0] );
|
||||||
assertEquals(aliases2[1], "avg");
|
assertEquals( "avg", aliases2[1] );
|
||||||
s.delete(a);
|
s.delete(a);
|
||||||
t.commit();
|
t.commit();
|
||||||
s.close();
|
s.close();
|
||||||
|
|
Loading…
Reference in New Issue