Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
subkanthi committed Oct 9, 2024
1 parent 0e101f3 commit 944b885
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ public void testChangeColumn() throws Exception {

Thread.sleep(10000);
// Validate all ship_class columns.
Assert.assertTrue(shipClassColumns.get("class_name_new").equalsIgnoreCase("Nullable(Int32"));
Assert.assertTrue(shipClassColumns.get("tonange_new").equalsIgnoreCase("Nullable(Decimal(10, 10)"));
Assert.assertTrue(shipClassColumns.get("class_name_new").equalsIgnoreCase("Nullable(Int32)"));

Check failure on line 87 in sink-connector-lightweight/src/test/java/com/altinity/clickhouse/debezium/embedded/ddl/parser/AlterTableChangeColumnIT.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

AlterTableChangeColumnIT.testChangeColumn

Cannot invoke "String.equalsIgnoreCase(String)" because the return value of "java.util.Map.get(Object)" is null
Raw output
java.lang.NullPointerException: Cannot invoke "String.equalsIgnoreCase(String)" because the return value of "java.util.Map.get(Object)" is null
	at com.altinity.clickhouse.debezium.embedded.ddl.parser.AlterTableChangeColumnIT.testChangeColumn(AlterTableChangeColumnIT.java:87)
Assert.assertTrue(shipClassColumns.get("tonange_new").equalsIgnoreCase("Nullable(Decimal(10, 10))"));
Assert.assertTrue(shipClassColumns.get("max_length").equalsIgnoreCase("Nullable(Decimal(10, 2))"));

// Files.deleteIfExists(tmpFilePath);
Assert.assertTrue(addTestColumns.get("new_col3_name").equalsIgnoreCase("Int32"));
Assert.assertTrue(addTestColumns.get("col1_new").equalsIgnoreCase("Int32"));
Assert.assertTrue(addTestColumns.get("new_col2_name").equalsIgnoreCase("Int32"));
Assert.assertTrue(addTestColumns.get("new_col3_name").equalsIgnoreCase("Nullable(Int32)"));
Assert.assertTrue(addTestColumns.get("col1_new").equalsIgnoreCase("Nullable(Int32)"));
Assert.assertTrue(addTestColumns.get("new_col2_name").equalsIgnoreCase("Nullable(Int32)"));


if(engine.get() != null) {
Expand Down

0 comments on commit 944b885

Please sign in to comment.