Search in sources :

Example 11 with EventType

use of com.alibaba.otter.canal.protocol.CanalEntry.EventType 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)

Aggregations

EventType (com.alibaba.otter.canal.protocol.CanalEntry.EventType)11 RowChange (com.alibaba.otter.canal.protocol.CanalEntry.RowChange)8 Entry (com.alibaba.otter.canal.protocol.CanalEntry.Entry)7 RowData (com.alibaba.otter.canal.protocol.CanalEntry.RowData)7 CanalParseException (com.alibaba.otter.canal.parse.exception.CanalParseException)6 Header (com.alibaba.otter.canal.protocol.CanalEntry.Header)4 TransactionBegin (com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin)4 TransactionEnd (com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd)4 LogHeader (com.taobao.tddl.dbsync.binlog.event.LogHeader)4 List (java.util.List)4 Test (org.junit.Test)4 AbstractLogPositionManager (com.alibaba.otter.canal.parse.index.AbstractLogPositionManager)3 AbstractCanalEventSinkTest (com.alibaba.otter.canal.parse.stub.AbstractCanalEventSinkTest)3 AuthenticationInfo (com.alibaba.otter.canal.parse.support.AuthenticationInfo)3 EntryPosition (com.alibaba.otter.canal.protocol.position.EntryPosition)3 LogPosition (com.alibaba.otter.canal.protocol.position.LogPosition)3 CanalSinkException (com.alibaba.otter.canal.sink.exception.CanalSinkException)3 ByteString (com.google.protobuf.ByteString)3 UnsupportedEncodingException (java.io.UnsupportedEncodingException)3 InetSocketAddress (java.net.InetSocketAddress)3