Skip to content

Commit

Permalink
Fix test function name
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 committed Jun 21, 2024
1 parent a4f01c7 commit f7967c2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ public void setUp() {
}

@Test
public void emptyLatestId_apply() {
public void testApplyWithEmptyLatestId() {
flintIndexOpVacuum.apply(FLINT_INDEX_METADATA_WITHOUT_LATEST_ID);

verify(flintIndexClient).deleteIndex(INDEX_NAME);
}

@Test
public void flintIndexStateNotFound_apply_throw() {
public void testApplyWithFlintIndexStateNotFound() {
when(flintIndexStateModelService.getFlintIndexStateModel(LATEST_ID, DATASOURCE_NAME))
.thenReturn(Optional.empty());

Expand All @@ -71,7 +71,7 @@ public void flintIndexStateNotFound_apply_throw() {
}

@Test
public void notDeletedState_apply_throw() {
public void testApplyWithNotDeletedState() {
when(flintIndexStateModelService.getFlintIndexStateModel(LATEST_ID, DATASOURCE_NAME))
.thenReturn(Optional.of(flintIndexStateModel));
when(flintIndexStateModel.getIndexState()).thenReturn(FlintIndexState.ACTIVE);
Expand All @@ -82,7 +82,7 @@ public void notDeletedState_apply_throw() {
}

@Test
public void updateFlintIndexStateThrow_apply_throw() {
public void testApplyWithUpdateFlintIndexStateThrow() {
when(flintIndexStateModelService.getFlintIndexStateModel(LATEST_ID, DATASOURCE_NAME))
.thenReturn(Optional.of(flintIndexStateModel));
when(flintIndexStateModel.getIndexState()).thenReturn(FlintIndexState.DELETED);
Expand All @@ -96,7 +96,7 @@ public void updateFlintIndexStateThrow_apply_throw() {
}

@Test
public void runOpThrow_apply_rollbackAndThrow() {
public void testApplyWithRunOpThrow() {
when(flintIndexStateModelService.getFlintIndexStateModel(LATEST_ID, DATASOURCE_NAME))
.thenReturn(Optional.of(flintIndexStateModel));
when(flintIndexStateModel.getIndexState()).thenReturn(FlintIndexState.DELETED);
Expand All @@ -114,7 +114,7 @@ public void runOpThrow_apply_rollbackAndThrow() {
}

@Test
public void runOpThrowAndRollbackThrow_apply_throw() {
public void testApplyWithRunOpThrowAndRollbackThrow() {
when(flintIndexStateModelService.getFlintIndexStateModel(LATEST_ID, DATASOURCE_NAME))
.thenReturn(Optional.of(flintIndexStateModel));
when(flintIndexStateModel.getIndexState()).thenReturn(FlintIndexState.DELETED);
Expand All @@ -131,7 +131,7 @@ public void runOpThrowAndRollbackThrow_apply_throw() {
}

@Test
public void deleteFlintIndexStateModelThrow_apply_throw() {
public void testApplyWithDeleteFlintIndexStateModelThrow() {
when(flintIndexStateModelService.getFlintIndexStateModel(LATEST_ID, DATASOURCE_NAME))
.thenReturn(Optional.of(flintIndexStateModel));
when(flintIndexStateModel.getIndexState()).thenReturn(FlintIndexState.DELETED);
Expand All @@ -147,7 +147,7 @@ public void deleteFlintIndexStateModelThrow_apply_throw() {
}

@Test
public void happyPath_apply() {
public void testApplyHappyPath() {
when(flintIndexStateModelService.getFlintIndexStateModel(LATEST_ID, DATASOURCE_NAME))
.thenReturn(Optional.of(flintIndexStateModel));
when(flintIndexStateModel.getIndexState()).thenReturn(FlintIndexState.DELETED);
Expand Down

0 comments on commit f7967c2

Please sign in to comment.