[HHH-3817] Add missing lock release to test

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18871 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Brian Stansberry 2010-02-24 19:11:53 +00:00
parent 523842514f
commit 5e71ea4c55
1 changed files with 10 additions and 1 deletions

View File

@ -91,7 +91,16 @@ public class PutFromLoadValidatorUnitTestCase extends TestCase {
if (transactional) {
tm.begin();
}
assertTrue(testee.acquirePutFromLoadLock(KEY1));
boolean lockable = testee.acquirePutFromLoadLock(KEY1);
try {
assertTrue(lockable);
}
finally {
if (lockable) {
testee.releasePutFromLoadLock(KEY1);
}
}
}
public void testRegisteredPut() throws Exception {