Search in sources :

Example 26 with DdlResult

use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.

the class DdlResultTest method getTableNameOutputNull.

// Test written by Diffblue Cover.
@Test
public void getTableNameOutputNull() {
    // Arrange
    final DdlResult objectUnderTest = new DdlResult();
    // Act
    final String actual = objectUnderTest.getTableName();
    // Assert result
    Assert.assertNull(actual);
}
Also used : DdlResult(com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult) Test(org.junit.Test)

Example 27 with DdlResult

use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.

the class DdlResultTest method getRenameTableResultOutputNull.

// Test written by Diffblue Cover.
@Test
public void getRenameTableResultOutputNull() {
    // Arrange
    final DdlResult objectUnderTest = new DdlResult();
    // Act
    final DdlResult actual = objectUnderTest.getRenameTableResult();
    // Assert result
    Assert.assertNull(actual);
}
Also used : DdlResult(com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult) Test(org.junit.Test)

Example 28 with DdlResult

use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.

the class DdlResultTest method getOriTableNameOutputNull.

// Test written by Diffblue Cover.
@Test
public void getOriTableNameOutputNull() {
    // Arrange
    final DdlResult objectUnderTest = new DdlResult();
    // Act
    final String actual = objectUnderTest.getOriTableName();
    // Assert result
    Assert.assertNull(actual);
}
Also used : DdlResult(com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult) Test(org.junit.Test)

Example 29 with DdlResult

use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.

the class DdlResultTest method getTypeOutputNull.

// Test written by Diffblue Cover.
@Test
public void getTypeOutputNull() {
    // Arrange
    final DdlResult objectUnderTest = new DdlResult();
    // Act
    final EventType actual = objectUnderTest.getType();
    // Assert result
    Assert.assertNull(actual);
}
Also used : EventType(com.alibaba.otter.canal.protocol.CanalEntry.EventType) DdlResult(com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult) Test(org.junit.Test)

Example 30 with DdlResult

use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.

the class DdlResultTest method setOriSchemaNameInputNotNullOutputVoid.

// Test written by Diffblue Cover.
@Test
public void setOriSchemaNameInputNotNullOutputVoid() {
    // Arrange
    final DdlResult objectUnderTest = new DdlResult();
    final String oriSchemaName = "3";
    // Act
    objectUnderTest.setOriSchemaName(oriSchemaName);
    // Assert side effects
    Assert.assertEquals("3", objectUnderTest.getOriSchemaName());
}
Also used : DdlResult(com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult) Test(org.junit.Test)

Aggregations

DdlResult (com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult)33 Test (org.junit.Test)29 CanalParseException (com.alibaba.otter.canal.parse.exception.CanalParseException)3 ByteString (com.google.protobuf.ByteString)3 EventType (com.alibaba.otter.canal.protocol.CanalEntry.EventType)2 MetaHistoryDO (com.alibaba.otter.canal.parse.inbound.mysql.tsdb.dao.MetaHistoryDO)1 Header (com.alibaba.otter.canal.protocol.CanalEntry.Header)1 RowChange (com.alibaba.otter.canal.protocol.CanalEntry.RowChange)1 TransactionBegin (com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin)1 TransactionEnd (com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd)1 EntryPosition (com.alibaba.otter.canal.protocol.position.EntryPosition)1 LogHeader (com.taobao.tddl.dbsync.binlog.event.LogHeader)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 HashMap (java.util.HashMap)1 List (java.util.List)1