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, toString
assertEquals, 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, format
protected 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
Throwable
public void testIndirectDeadlock() throws Throwable
Throwable
public void testUpgrade() throws Throwable
Throwable
public void testPreference() throws Throwable
Throwable
public void testGlobalTimeout() throws Throwable
Throwable
public void testStress() throws Throwable
Throwable
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.