diff --git a/kernel/single/core/src/test/java/org/apache/shardingsphere/single/metadata/reviser/index/SingleIndexReviserTest.java b/kernel/single/core/src/test/java/org/apache/shardingsphere/single/metadata/reviser/index/SingleIndexReviserTest.java index e2dc254ef86598..b67d421f7ecea3 100644 --- a/kernel/single/core/src/test/java/org/apache/shardingsphere/single/metadata/reviser/index/SingleIndexReviserTest.java +++ b/kernel/single/core/src/test/java/org/apache/shardingsphere/single/metadata/reviser/index/SingleIndexReviserTest.java @@ -30,12 +30,12 @@ class SingleIndexReviserTest { @Test void assertReviserReturnsRevisedIndex() { - SingleIndexReviser reviser = new SingleIndexReviser(); IndexMetaData originalMetaData = new IndexMetaData("test_idx_tableName"); originalMetaData.getColumns().add("column1"); originalMetaData.getColumns().add("column2"); originalMetaData.setUnique(true); - + SingleIndexReviser reviser = new SingleIndexReviser(); + Optional optionalRevised = reviser.revise("tableName", originalMetaData, null); assertTrue(optionalRevised.isPresent());