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..19f178e7532f0d 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,11 @@ 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()); @@ -44,5 +43,4 @@ void assertReviserReturnsRevisedIndex() { assertThat(originalMetaData.getColumns(), is(actual.getColumns())); assertThat("test_idx", is(actual.getName())); } - }