account for last H2 failure on core.

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19580 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2010-05-21 06:56:48 +00:00
parent c0361d566b
commit 06f13dd4dc
1 changed files with 18 additions and 8 deletions

View File

@ -370,11 +370,21 @@ public class NativeSQLQueriesTest extends FunctionalTestCase {
list = sqlQuery.list();
assertEquals( 2,list.size() );
m = (Map) list.get(0);
assertTrue(m.containsKey("org"));
assertClassAssignability(m.get("org").getClass(), Organization.class);
assertTrue(m.containsKey("emp"));
assertClassAssignability(m.get("emp").getClass(), Employment.class);
assertEquals( 2, m.size() );
assertTrue( m.containsKey("org") );
assertTrue( m.containsKey("emp") );
assertClassAssignability( m.get("org").getClass(), Organization.class );
if ( jboss.getId() == ( (Organization) m.get("org") ).getId() ) {
assertClassAssignability( m.get("emp").getClass(), Employment.class );
}
Map m2 = (Map) list.get(1);
assertEquals( 2, m.size() );
assertTrue( m2.containsKey("org") );
assertTrue( m2.containsKey("emp") );
assertClassAssignability( m2.get("org").getClass(), Organization.class );
if ( jboss.getId() == ( (Organization) m2.get("org") ).getId() ) {
assertClassAssignability( m2.get("emp").getClass(), Employment.class );
}
t.commit();
s.close();