code.onehippo.org is currently readonly. We are migrating to code.bloomreach.com, please continue working there on Monday 14/12. See: https://docs.bloomreach.com/display/engineering/GitLab

Commit a268b5e6 authored by Ard Schrijvers's avatar Ard Schrijvers

REPO-1811 use getHoldCount() instead of protected access

parent 0bf87cb5
......@@ -46,11 +46,11 @@ public class MemoryLockManagerTest {
assertEquals("123", memoryLockManager.getLocks().iterator().next().getLockKey());
assertEquals(Thread.currentThread().getName(), memoryLockManager.getLocks().iterator().next().getLockThread());
assertEquals(2, ((MutableLock)memoryLockManager.getLocks().iterator().next()).holdCount);
assertEquals(2, ((MutableLock)memoryLockManager.getLocks().iterator().next()).getHoldCount());
memoryLockManager.unlock("123");
assertEquals(1, memoryLockManager.getLocks().size());
assertEquals(1, ((MutableLock)memoryLockManager.getLocks().iterator().next()).holdCount);
assertEquals(1, ((MutableLock)memoryLockManager.getLocks().iterator().next()).getHoldCount());
memoryLockManager.unlock("123");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment