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 3, 2023
1 parent 14f37f6 commit 32a97f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<IndexMetaData> optionalRevised = reviser.revise("tableName", originalMetaData, null);

assertTrue(optionalRevised.isPresent());
Expand Down

0 comments on commit 32a97f3

Please sign in to comment.