From 2d7023300368fcea4076130ba0917df9f0f91613 Mon Sep 17 00:00:00 2001 From: mcmcphillips Date: Mon, 4 Dec 2023 08:53:16 -0800 Subject: [PATCH] update file name --- ...a => DeleteRiskAdjustmentsDescriptionsChangeUnit.java} | 6 +++--- .../DeleteRiskAdjustmentDefinitionsChangeUnitTest.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) rename src/main/java/cms/gov/madie/measure/config/{DeleteRiskAdjustmentDefinitionsChangeUnit.java => DeleteRiskAdjustmentsDescriptionsChangeUnit.java} (80%) diff --git a/src/main/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentDefinitionsChangeUnit.java b/src/main/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentsDescriptionsChangeUnit.java similarity index 80% rename from src/main/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentDefinitionsChangeUnit.java rename to src/main/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentsDescriptionsChangeUnit.java index 57f4e816b..2c445a5ed 100644 --- a/src/main/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentDefinitionsChangeUnit.java +++ b/src/main/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentsDescriptionsChangeUnit.java @@ -11,10 +11,10 @@ import org.springframework.data.mongodb.core.query.Update; @Slf4j -@ChangeUnit(id = "delete-risk-adjustment-descriptions", order = "2", author = "madie_dev") -public class DeleteRiskAdjustmentDefinitionsChangeUnit { +@ChangeUnit(id = "delete-risk-adjustments-descriptions", order = "2", author = "madie_dev") +public class DeleteRiskAdjustmentsDescriptionsChangeUnit { @Execution - public void deleteAdjustmentDefinitions(MongoOperations mongoOperations) { + public void deleteAdjustmentDescriptions(MongoOperations mongoOperations) { Query query = new Query(); Update update = new Update().unset("riskAdjustments.$[].description"); diff --git a/src/test/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentDefinitionsChangeUnitTest.java b/src/test/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentDefinitionsChangeUnitTest.java index 4e74dc926..86d17812b 100644 --- a/src/test/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentDefinitionsChangeUnitTest.java +++ b/src/test/java/cms/gov/madie/measure/config/DeleteRiskAdjustmentDefinitionsChangeUnitTest.java @@ -22,7 +22,7 @@ public class DeleteRiskAdjustmentDefinitionsChangeUnitTest { @Mock private MongoOperations mongoOperations; @Test - public void testDeleteRiskAdjustmentDefinitions() { + public void testDeleteRiskAdjustmentsDescriptions() { Query query = new Query(); Update update = new Update().unset("riskAdjustments.$[].description"); BulkOperations bulkOperations = mock(BulkOperations.class); @@ -30,8 +30,8 @@ public void testDeleteRiskAdjustmentDefinitions() { when(mongoOperations.bulkOps(BulkOperations.BulkMode.UNORDERED, Measure.class)) .thenReturn(bulkOperations); - new DeleteRiskAdjustmentDefinitionsChangeUnit() - .deleteAdjustmentDefinitions(mongoOperations); + new DeleteRiskAdjustmentsDescriptionsChangeUnit() + .deleteAdjustmentDescriptions(mongoOperations); verify(bulkOperations, new Times(1)).updateMulti(query, update); verify(bulkOperations, new Times(1)).execute(); @@ -39,7 +39,7 @@ public void testDeleteRiskAdjustmentDefinitions() { @Test void testRollback() { - new DeleteRiskAdjustmentDefinitionsChangeUnit().rollbackExecution(); + new DeleteRiskAdjustmentsDescriptionsChangeUnit().rollbackExecution(); verifyNoInteractions(measureRepository); } }