Package io.debezium.relational.history
Class KafkaDatabaseHistoryTest
- java.lang.Object
-
- io.debezium.relational.history.KafkaDatabaseHistoryTest
-
public class KafkaDatabaseHistoryTest extends Object
- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description private KafkaDatabaseHistoryhistoryprivate static KafkaClusterkafkaprivate static intPARTITION_NOprivate Map<String,Object>positionprivate Map<String,String>source
-
Constructor Summary
Constructors Constructor Description KafkaDatabaseHistoryTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach()voidbeforeEach()voiddifferentiateStorageExistsFromHistoryExists()protected voidsetLogPosition(int index)voidshouldIgnoreUnparseableMessages()voidshouldStartWithEmptyTopicAndStoreDataAndRecoverAllState()voidshouldStopOnUnparseableSQL()voidshouldValidateMandatoryValues()static voidstartKafka()static voidstopKafka()voidtestExists()private voidtestHistoryTopicContent(String topicName, boolean skipUnparseableDDL)
-
-
-
Field Detail
-
kafka
private static KafkaCluster kafka
-
history
private KafkaDatabaseHistory history
-
PARTITION_NO
private static final int PARTITION_NO
- See Also:
- Constant Field Values
-
-
Method Detail
-
stopKafka
public static void stopKafka()
-
afterEach
public void afterEach()
-
shouldStartWithEmptyTopicAndStoreDataAndRecoverAllState
public void shouldStartWithEmptyTopicAndStoreDataAndRecoverAllState() throws Exception- Throws:
Exception
-
testHistoryTopicContent
private void testHistoryTopicContent(String topicName, boolean skipUnparseableDDL)
-
setLogPosition
protected void setLogPosition(int index)
-
shouldIgnoreUnparseableMessages
public void shouldIgnoreUnparseableMessages() throws Exception- Throws:
Exception
-
shouldStopOnUnparseableSQL
public void shouldStopOnUnparseableSQL() throws Exception- Throws:
Exception
-
testExists
public void testExists()
-
differentiateStorageExistsFromHistoryExists
@FixFor("DBZ-1886") public void differentiateStorageExistsFromHistoryExists()
-
shouldValidateMandatoryValues
@FixFor("DBZ-2144") public void shouldValidateMandatoryValues()
-
-