diff --git a/kernel/data-pipeline/dialect/postgresql/src/test/java/org/apache/shardingsphere/data/pipeline/postgresql/ingest/wal/WALEventConverterTest.java b/kernel/data-pipeline/dialect/postgresql/src/test/java/org/apache/shardingsphere/data/pipeline/postgresql/ingest/wal/WALEventConverterTest.java index 1cd12fdb8b872..451637bd87767 100644 --- a/kernel/data-pipeline/dialect/postgresql/src/test/java/org/apache/shardingsphere/data/pipeline/postgresql/ingest/wal/WALEventConverterTest.java +++ b/kernel/data-pipeline/dialect/postgresql/src/test/java/org/apache/shardingsphere/data/pipeline/postgresql/ingest/wal/WALEventConverterTest.java @@ -54,11 +54,11 @@ import java.sql.Statement; import java.sql.Types; import java.util.Arrays; +import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Map; -import java.util.Set; import java.util.function.Function; import java.util.stream.Collectors; @@ -131,7 +131,7 @@ void assertWriteRowEventWithCustomColumns() throws ReflectiveOperationException assertWriteRowEvent0(mockTargetTableColumnsMap(), 1); } - private void assertWriteRowEvent0(final Map> targetTableColumnsMap, final int expectedColumnCount) throws ReflectiveOperationException { + private void assertWriteRowEvent0(final Map> targetTableColumnsMap, final int expectedColumnCount) throws ReflectiveOperationException { dumperConfig.setTargetTableColumnsMap(targetTableColumnsMap); WriteRowEvent rowsEvent = new WriteRowEvent(); rowsEvent.setSchemaName(""); @@ -143,7 +143,7 @@ private void assertWriteRowEvent0(final Map> tar assertThat(actual.getColumnCount(), is(expectedColumnCount)); } - private Map> mockTargetTableColumnsMap() { + private Map> mockTargetTableColumnsMap() { return Collections.singletonMap(new LogicTableName("t_order"), Collections.singleton(new ColumnName("order_id"))); }