public abstract class NamedLockFactoryAdapterTestSupport extends Object
SyncContextFactory
.Modifier and Type | Field and Description |
---|---|
protected static 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 org.eclipse.aether.internal.impl.synccontext.named.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 |
justAcquire() |
void |
justCreateAndClose() |
void |
mixedAccess() |
void |
nestedExclusiveExclusive() |
void |
nestedExclusiveShared() |
void |
nestedSharedExclusive() |
void |
nestedSharedShared() |
void |
sharedAccess() |
protected static org.eclipse.aether.internal.impl.synccontext.named.NameMapper nameMapper
protected static NamedLockFactory namedLockFactory
createAdapter()
.public NamedLockFactoryAdapterTestSupport()
public static void createAdapter()
public static void cleanupAdapter()
public void before() throws IOException
IOException
public void justCreateAndClose()
public void justAcquire()
public void sharedAccess() throws InterruptedException
InterruptedException
public void exclusiveAccess() throws InterruptedException
InterruptedException
public void mixedAccess() throws InterruptedException
InterruptedException
public void nestedSharedShared() throws InterruptedException
InterruptedException
public void nestedExclusiveShared() throws InterruptedException
InterruptedException
public void nestedExclusiveExclusive() throws InterruptedException
InterruptedException
public void nestedSharedExclusive() throws InterruptedException
InterruptedException
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.