@Transactional public abstract class AbstractPartitionManagerTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
expectedException |
| Constructor and Description |
|---|
AbstractPartitionManagerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract PartitionManager |
partitionManager() |
protected abstract PartitionManager |
partitionManagerForAnotherConsumer() |
protected List<Partition> |
partitions(String... ids) |
void |
shouldAllowLockBySameNode() |
void |
shouldFailOnInvalidUnlock() |
void |
shouldLock() |
void |
shouldLockIndependentConsumers() |
void |
shouldLockIndependentEvents() |
void |
shouldLockIndependentPartitions() |
void |
shouldNotLockAlreadyLocked() |
void |
shouldUnlock() |
protected abstract PartitionManager partitionManager()
protected abstract PartitionManager partitionManagerForAnotherConsumer()
public void shouldLock()
public void shouldAllowLockBySameNode()
public void shouldNotLockAlreadyLocked()
public void shouldLockIndependentConsumers()
public void shouldLockIndependentEvents()
public void shouldLockIndependentPartitions()
public void shouldUnlock()
throws InterruptedException
InterruptedExceptionpublic void shouldFailOnInvalidUnlock()
throws InterruptedException
InterruptedExceptionCopyright © 2016–2017 Zalando SE. All rights reserved.