public abstract class NamedLockFactoryAdapterTestSupport extends Object
SyncContextFactory.| Modifier and Type | Field and Description |
|---|---|
protected static org.eclipse.aether.named.NamedLockFactory |
namedLockFactory
Subclass MUST populate this field but subclass must take care of proper cleanup as well, if needed! Once set,
subclass must MUST call
createAdapter(). |
protected static NameMapper |
nameMapper
Subclass MAY populate this field but subclass must take care of proper cleanup as well, if needed!
|
| Constructor and Description |
|---|
NamedLockFactoryAdapterTestSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
before() |
static void |
cleanupAdapter() |
static void |
createAdapter() |
void |
exclusiveAccess() |
void |
fullyConsumeLockTime() |
void |
justAcquire() |
void |
justCreateAndClose() |
void |
mixedAccess() |
void |
nestedExclusiveExclusive() |
void |
nestedExclusiveShared() |
void |
nestedSharedExclusive() |
void |
nestedSharedShared() |
void |
releasedExclusiveAllowAccess() |
void |
sharedAccess() |
protected static NameMapper nameMapper
protected static org.eclipse.aether.named.NamedLockFactory namedLockFactory
createAdapter().public NamedLockFactoryAdapterTestSupport()
public static void createAdapter()
public static void cleanupAdapter()
public void before() throws IOException
IOExceptionpublic void justCreateAndClose()
public void justAcquire()
public void sharedAccess() throws InterruptedException
InterruptedExceptionpublic void exclusiveAccess() throws InterruptedException
InterruptedExceptionpublic void mixedAccess() throws InterruptedException
InterruptedExceptionpublic void nestedSharedShared() throws InterruptedException
InterruptedExceptionpublic void nestedExclusiveShared() throws InterruptedException
InterruptedExceptionpublic void nestedExclusiveExclusive() throws InterruptedException
InterruptedExceptionpublic void nestedSharedExclusive() throws InterruptedException
InterruptedExceptionpublic void fullyConsumeLockTime() throws InterruptedException
InterruptedExceptionpublic void releasedExclusiveAllowAccess() throws InterruptedException
InterruptedExceptionCopyright © 2010–2022 The Apache Software Foundation. All rights reserved.