From 00802a9b3521561dbaaba0b7394e6569f38721c9 Mon Sep 17 00:00:00 2001 From: "Alvaro.Nogueira" Date: Fri, 3 Nov 2023 14:58:05 +0100 Subject: [PATCH] #28518 Add unit tests for SingleIndexReviser --- .../single/metadata/reviser/index/SingleIndexReviserTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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())); } - }