public class LockCleanupTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCK_NAME |
org.mockito.junit.MockitoRule |
mockitoRule |
static long |
RENEWAL_INTERVAL_MS |
static long |
SLEEP_DURATION |
| Constructor and Description |
|---|
LockCleanupTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testRenewerLostRaceWithUnlock() |
void |
testRenewerUnregistersOnDeadOwner() |
void |
testUnlockLostRaceWithRenewer() |
public static final String LOCK_NAME
public static final long SLEEP_DURATION
public static final long RENEWAL_INTERVAL_MS
public org.mockito.junit.MockitoRule mockitoRule
public void setUp()
public void testUnlockLostRaceWithRenewer()
public void testRenewerLostRaceWithUnlock()
throws InterruptedException
InterruptedExceptionpublic void testRenewerUnregistersOnDeadOwner()
throws InterruptedException
InterruptedExceptionCopyright © 2019 Atlassian. All rights reserved.