public class DatabaseClusterLockServiceTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
expectedException |
org.mockito.junit.MockitoRule |
mockitoRule |
| Constructor and Description |
|---|
DatabaseClusterLockServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testCleanUpOrphanLocks() |
void |
testGetStatusesOfAllHeldClusterLocks() |
void |
testTryLock_evictDeadFailOnRemote() |
void |
testTryLock_evictDeadThread() |
void |
testTryLock_failedRemotely() |
void |
testTryLock_ownedRemotely() |
void |
testTryLock_reenter() |
void |
testTryLock_ReinsertOnDbErased() |
void |
testTryLock_retryOnInsertFailure() |
void |
testTryLock_unownedLock() |
void |
testUnlock_giveUpOnStateException() |
void |
testUnlock_happyPath() |
void |
testUnlock_reentryHappyPath() |
void |
testUnlock_rethrowOnTooManyExceptions() |
void |
testUnlock_retryOnGeneralExceptions() |
public org.junit.rules.ExpectedException expectedException
public org.mockito.junit.MockitoRule mockitoRule
public void testGetStatusesOfAllHeldClusterLocks()
public void testTryLock_unownedLock()
public void testTryLock_ReinsertOnDbErased()
public void testTryLock_retryOnInsertFailure()
public void testTryLock_ownedRemotely()
public void testTryLock_failedRemotely()
public void testTryLock_evictDeadThread()
throws Exception
Exceptionpublic void testTryLock_evictDeadFailOnRemote()
throws Exception
Exceptionpublic void testTryLock_reenter()
public void testUnlock_happyPath()
public void testUnlock_reentryHappyPath()
public void testUnlock_retryOnGeneralExceptions()
public void testUnlock_rethrowOnTooManyExceptions()
public void testUnlock_giveUpOnStateException()
Copyright © 2019 Atlassian. All rights reserved.