Package org.zalando.fahrschein.test
Class AbstractPartitionManagerTest
- java.lang.Object
-
- org.zalando.fahrschein.test.AbstractPartitionManagerTest
-
@Transactional public abstract class AbstractPartitionManagerTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.ExpectedExceptionexpectedException
-
Constructor Summary
Constructors Constructor Description AbstractPartitionManagerTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.zalando.fahrschein.PartitionManagerpartitionManager()protected abstract org.zalando.fahrschein.PartitionManagerpartitionManagerForAnotherConsumer()protected List<org.zalando.fahrschein.domain.Partition>partitions(String... ids)voidshouldAllowLockBySameNode()voidshouldFailOnInvalidUnlock()voidshouldLock()voidshouldLockIndependentConsumers()voidshouldLockIndependentEvents()voidshouldLockIndependentPartitions()voidshouldNotLockAlreadyLocked()voidshouldUnlock()
-
-
-
Method Detail
-
partitionManager
protected abstract org.zalando.fahrschein.PartitionManager partitionManager()
-
partitionManagerForAnotherConsumer
protected abstract org.zalando.fahrschein.PartitionManager partitionManagerForAnotherConsumer()
-
shouldLock
public void shouldLock()
-
shouldAllowLockBySameNode
public void shouldAllowLockBySameNode()
-
shouldNotLockAlreadyLocked
public void shouldNotLockAlreadyLocked()
-
shouldLockIndependentConsumers
public void shouldLockIndependentConsumers()
-
shouldLockIndependentEvents
public void shouldLockIndependentEvents()
-
shouldLockIndependentPartitions
public void shouldLockIndependentPartitions()
-
shouldUnlock
public void shouldUnlock() throws InterruptedException- Throws:
InterruptedException
-
shouldFailOnInvalidUnlock
public void shouldFailOnInvalidUnlock() throws InterruptedException- Throws:
InterruptedException
-
-