From f7967c28e5faa3b12e6d021805c3a7516a5205fb Mon Sep 17 00:00:00 2001
From: Tomoyuki Morita <moritato@amazon.com>
Date: Fri, 21 Jun 2024 14:52:24 -0700
Subject: [PATCH] Fix test function name

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
---
 .../flint/operation/FlintIndexOpVacuumTest.java  | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/async-query-core/src/test/java/org/opensearch/sql/spark/flint/operation/FlintIndexOpVacuumTest.java b/async-query-core/src/test/java/org/opensearch/sql/spark/flint/operation/FlintIndexOpVacuumTest.java
index ed4d5c1fc4..60fa13dc93 100644
--- a/async-query-core/src/test/java/org/opensearch/sql/spark/flint/operation/FlintIndexOpVacuumTest.java
+++ b/async-query-core/src/test/java/org/opensearch/sql/spark/flint/operation/FlintIndexOpVacuumTest.java
@@ -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());
 
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);