public class TestNonBlockingLockManager
extends junit.framework.TestCase
Modifier and Type | Class and Description |
---|---|
static class |
TestNonBlockingLockManager.Wait10ResourceTask<T>
Waits 10ms once it acquires its locks.
|
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEBUG |
protected static boolean |
INFO |
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
TestNonBlockingLockManager() |
TestNonBlockingLockManager(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_run1()
Test ability to run a
Callable on the service, get() the result,
and then shutdown the service. |
void |
test_run1WithLock()
Test ability to obtain a lock, run a
Callable on the service,
get() the result, and then shutdown the service. |
void |
test_shutdown()
Test startup and normal shutdown.
|
void |
test_shutdownNow()
Test startup and fast shutdown.
|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
protected static final org.apache.log4j.Logger log
protected static final boolean INFO
protected static final boolean DEBUG
public TestNonBlockingLockManager()
public TestNonBlockingLockManager(String name)
public void test_shutdownNow() throws InterruptedException, ExecutionException
public void test_shutdown() throws InterruptedException, ExecutionException
public void test_run1() throws InterruptedException, ExecutionException
Callable
on the service, get() the result,
and then shutdown the service.public void test_run1WithLock() throws InterruptedException, ExecutionException
Callable
on the service,
get() the result, and then shutdown the service.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.