Skip to content

Commit

Permalink
HHH-13550 : Fix Oracle failure for test added by HHH-13424
Browse files Browse the repository at this point in the history
(cherry picked from commit 6510c34)
  • Loading branch information
gbadner committed Aug 9, 2019
1 parent 2f1774b commit cc164e4
Showing 1 changed file with 13 additions and 14 deletions.
Expand Up @@ -49,11 +49,12 @@ public void testRowAddedForNullValue() {
assertNotNull( anEntity );
assertNull( anEntity.aDetail );
// assert that a row was inserted into Details when its property is null
final Number id = (Number) entityManager.createNativeQuery(
"select id from Details where aDetail is null"
).getSingleResult();
assertEquals(
1,
entityManager.createNativeQuery(
"select id from Details where aDetail is null"
).getSingleResult()
id.intValue()
);
}
);
Expand All @@ -73,18 +74,16 @@ public void testRowAddedForNullValueInSubclassTable() {
assertNotNull( anEntity );
assertNull( anEntity.aDetail );
// assert that a row was inserted into Details when its property is null
assertEquals(
1,
entityManager.createNativeQuery(
"select id from Details where aDetail is null"
).getSingleResult()
);
Number id = (Number) entityManager.createNativeQuery(
"select id from Details where aDetail is null"
).getSingleResult();

assertEquals( 1, id.intValue() );
// assert that a row was inserted into MoreDetails when its property is null
assertEquals( 1,
entityManager.createNativeQuery(
"select id from MoreDetails where anotherDetail is null"
).getSingleResult()
);
id = (Number) entityManager.createNativeQuery(
"select id from MoreDetails where anotherDetail is null"
).getSingleResult();
assertEquals( 1,id.intValue() );
}
);
}
Expand Down

0 comments on commit cc164e4

Please sign in to comment.