public class GenericLockTest extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
protected static int |
READ_LOCK |
protected static long |
TIMEOUT |
protected static int |
WRITE_LOCK |
| Constructor and Description |
|---|
GenericLockTest(String testName) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acquireNoWait(GenericLock lock,
String owner,
int targetLockLevel) |
static void |
main(String[] args) |
static junit.framework.Test |
suite() |
void |
testBasic() |
void |
testChaos() |
void |
testDeadlock() |
void |
testGlobalTimeout() |
void |
testIndirectDeadlock() |
void |
testPreference() |
void |
testStress() |
void |
testTimeout() |
void |
testUpgrade() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatprotected static final int READ_LOCK
protected static final int WRITE_LOCK
protected static final long TIMEOUT
public GenericLockTest(String testName)
public static junit.framework.Test suite()
protected boolean acquireNoWait(GenericLock lock, String owner, int targetLockLevel)
public void testTimeout()
public void testDeadlock() throws Throwable
Throwablepublic void testIndirectDeadlock() throws Throwable
Throwablepublic void testUpgrade() throws Throwable
Throwablepublic void testPreference() throws Throwable
Throwablepublic void testGlobalTimeout() throws Throwable
Throwablepublic void testStress() throws Throwable
ThrowableCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.