Skip to content

Commit

Permalink
#28518 Add unit tests for SingleIndexReviser
Browse files Browse the repository at this point in the history
  • Loading branch information
anogueiraFlywire committed Nov 27, 2023
1 parent 14f37f6 commit 00802a9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<IndexMetaData> optionalRevised = reviser.revise("tableName", originalMetaData, null);

assertTrue(optionalRevised.isPresent());
Expand All @@ -44,5 +43,4 @@ void assertReviserReturnsRevisedIndex() {
assertThat(originalMetaData.getColumns(), is(actual.getColumns()));
assertThat("test_idx", is(actual.getName()));
}

}

0 comments on commit 00802a9

Please sign in to comment.