From e28b440edc64ef4e086ec58e25e58f194a030386 Mon Sep 17 00:00:00 2001 From: Ethan Kaplan Date: Tue, 4 Jun 2024 11:06:57 -0700 Subject: [PATCH] MAT-7197 testcase fix --- .../gov/cms/madie/services/HumanReadableServiceTest.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/test/java/gov/cms/madie/services/HumanReadableServiceTest.java b/src/test/java/gov/cms/madie/services/HumanReadableServiceTest.java index c3b0850..11ef727 100644 --- a/src/test/java/gov/cms/madie/services/HumanReadableServiceTest.java +++ b/src/test/java/gov/cms/madie/services/HumanReadableServiceTest.java @@ -33,6 +33,7 @@ import java.util.Date; import java.util.HashSet; import java.util.List; +import java.util.Locale; import java.util.Set; import static org.hamcrest.CoreMatchers.is; @@ -322,10 +323,14 @@ public void canBuildMeasureInfoFromMeasure() { equalTo(measure.getGroups().get(0).getPopulationBasis().equals("boolean"))); assertThat( measureInfoModel.getMeasurementPeriodStartDate(), - equalTo(DateFormat.getDateInstance().format(measure.getMeasurementPeriodStart()))); + equalTo( + DateFormat.getDateInstance(DateFormat.LONG, Locale.US) + .format(measure.getMeasurementPeriodStart()))); assertThat( measureInfoModel.getMeasurementPeriodEndDate(), - equalTo(DateFormat.getDateInstance().format(measure.getMeasurementPeriodEnd()))); + equalTo( + DateFormat.getDateInstance(DateFormat.LONG, Locale.US) + .format(measure.getMeasurementPeriodEnd()))); assertThat( measureInfoModel.getMeasureScoring(), equalTo(