use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.
the class DdlResultTest method toStringOutputNotNull.
// Test written by Diffblue Cover.
@Test
public void toStringOutputNotNull() {
// Arrange
final DdlResult objectUnderTest = new DdlResult();
// Act
final String actual = objectUnderTest.toString();
// Assert result
Assert.assertEquals("DdlResult [schemaName=null , tableName=null , oriSchemaName=null , oriTableName=null , type=null ];", actual);
}
use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.
the class DdlResultTest method getOriSchemaNameOutputNull.
// Test written by Diffblue Cover.
@Test
public void getOriSchemaNameOutputNull() {
// Arrange
final DdlResult objectUnderTest = new DdlResult();
// Act
final String actual = objectUnderTest.getOriSchemaName();
// Assert result
Assert.assertNull(actual);
}
use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.
the class DdlResultTest method constructorInputNotNullNotNullNotNullNotNullOutputVoid.
// Test written by Diffblue Cover.
@Test
public void constructorInputNotNullNotNullNotNullNotNullOutputVoid() {
// Arrange
final String schemaName = "foo";
final String tableName = "\'";
final String oriSchemaName = "1a 2b 3c";
final String oriTableName = "BAZ";
// Act, creating object to test constructor
final DdlResult objectUnderTest = new DdlResult(schemaName, tableName, oriSchemaName, oriTableName);
// Assert side effects
Assert.assertEquals("foo", objectUnderTest.getSchemaName());
Assert.assertEquals("1a 2b 3c", objectUnderTest.getOriSchemaName());
Assert.assertEquals("\'", objectUnderTest.getTableName());
Assert.assertEquals("BAZ", objectUnderTest.getOriTableName());
}
use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.
the class DdlResultTest method constructorInputNotNullOutputVoid.
// Test written by Diffblue Cover.
@Test
public void constructorInputNotNullOutputVoid() {
// Arrange
final String schemaName = "3";
// Act, creating object to test constructor
final DdlResult objectUnderTest = new DdlResult(schemaName);
// Assert side effects
Assert.assertEquals("3", objectUnderTest.getSchemaName());
}
use of com.alibaba.otter.canal.parse.inbound.mysql.ddl.DdlResult in project canal by alibaba.
the class DdlResultTest method getSchemaNameOutputNull.
// Test written by Diffblue Cover.
@Test
public void getSchemaNameOutputNull() {
// Arrange
final DdlResult objectUnderTest = new DdlResult();
// Act
final String actual = objectUnderTest.getSchemaName();
// Assert result
Assert.assertNull(actual);
}
Aggregations