public abstract class AbstractClusterLockServiceTckTest extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractClusterLockServiceTckTest.LockTester
A test thread that encapsulates most of the logic associated with verifying cluster lock behaviour.
|
| Modifier and Type | Field and Description |
|---|---|
protected ClusterLockService |
clusterLockService |
| Constructor and Description |
|---|
AbstractClusterLockServiceTckTest() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ClusterLockService |
createClusterLockService() |
protected void |
runLockTesters(AbstractClusterLockServiceTckTest.LockTester... threads) |
void |
test_runWithLock_differentLockNames() |
void |
test_runWithLock_doInterrupt() |
void |
test_runWithLock_reentrancy() |
void |
test_runWithLock_sameLockNames() |
void |
test_runWithLockInterruptibly_doInterruptBefore() |
void |
test_runWithLockInterruptibly_doInterruptRace()
This test covers optional functionality.
|
void |
test_tryRunWithLock_acquireLater() |
void |
test_tryRunWithLock_no_acquire() |
protected final ClusterLockService clusterLockService
protected abstract ClusterLockService createClusterLockService()
public void test_runWithLock_differentLockNames()
throws Exception
Exceptionpublic void test_runWithLock_reentrancy()
throws Exception
Exceptionpublic void test_runWithLock_sameLockNames()
throws Exception
Exceptionpublic void test_runWithLock_doInterrupt()
throws Exception
Exceptionpublic void test_runWithLockInterruptibly_doInterruptBefore()
throws Exception
Exceptionpublic void test_runWithLockInterruptibly_doInterruptRace()
throws Exception
Exceptionpublic void test_tryRunWithLock_no_acquire()
throws Exception
Exceptionpublic void test_tryRunWithLock_acquireLater()
throws Exception
Exceptionprotected void runLockTesters(AbstractClusterLockServiceTckTest.LockTester... threads) throws InterruptedException
InterruptedExceptionCopyright © 2019 Atlassian. All rights reserved.