HHH-5013 the previous select query should not to hold locks in TypeParameterTest#testSave
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19004 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
7ea9c8fe76
commit
0e3378180c
|
@ -60,9 +60,10 @@ public class TypeParameterTest extends FunctionalTestCase {
|
||||||
assertEquals("Non-Default value should not be changed", resultSet.getInt("VALUE_THREE"), 5);
|
assertEquals("Non-Default value should not be changed", resultSet.getInt("VALUE_THREE"), 5);
|
||||||
assertTrue("Default value should have been mapped to null", resultSet.getObject("VALUE_FOUR") == null);
|
assertTrue("Default value should have been mapped to null", resultSet.getObject("VALUE_FOUR") == null);
|
||||||
|
|
||||||
deleteData();
|
|
||||||
t.commit();
|
t.commit();
|
||||||
s.close();
|
s.close();
|
||||||
|
deleteData();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testLoading() throws Exception {
|
public void testLoading() throws Exception {
|
||||||
|
@ -83,9 +84,10 @@ public class TypeParameterTest extends FunctionalTestCase {
|
||||||
assertEquals("Default value incorrectly loaded", obj.getValueThree(), -1);
|
assertEquals("Default value incorrectly loaded", obj.getValueThree(), -1);
|
||||||
assertEquals("Default value incorrectly loaded", obj.getValueFour(), -5);
|
assertEquals("Default value incorrectly loaded", obj.getValueFour(), -5);
|
||||||
|
|
||||||
deleteData();
|
|
||||||
t.commit();
|
t.commit();
|
||||||
s.close();
|
s.close();
|
||||||
|
deleteData();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initData() throws Exception {
|
private void initData() throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue