From 25622aa6a768c5151cd7b66219ceca023ff1e2da Mon Sep 17 00:00:00 2001 From: Adam Saghy Date: Tue, 31 Jan 2023 12:27:16 +0100 Subject: [PATCH] FINERACT-1724: Fix grammar in error message --- .../businessdate/exception/BusinessDateNotFoundException.java | 4 ++-- .../exception/DelinquencyBucketNotFoundException.java | 2 +- .../exception/DelinquencyRangeNotFoundException.java | 2 +- .../service/BusinessDateReadPlatformServiceTest.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/businessdate/exception/BusinessDateNotFoundException.java b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/businessdate/exception/BusinessDateNotFoundException.java index fcf986648..8b5b1d4d7 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/businessdate/exception/BusinessDateNotFoundException.java +++ b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/businessdate/exception/BusinessDateNotFoundException.java @@ -35,7 +35,7 @@ public class BusinessDateNotFoundException extends AbstractPlatformResourceNotFo } public static BusinessDateNotFoundException notFound(final String type, Throwable... e) { - return new BusinessDateNotFoundException("error.msg.businessdate.not.found", - "Business date with type `" + type + "` does not found.", type, e); + return new BusinessDateNotFoundException("error.msg.businessdate.not.found", "Business date with type `" + type + "` is not found.", + type, e); } } diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/exception/DelinquencyBucketNotFoundException.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/exception/DelinquencyBucketNotFoundException.java index 5e27bc4f3..e7c324fbd 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/exception/DelinquencyBucketNotFoundException.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/exception/DelinquencyBucketNotFoundException.java @@ -34,6 +34,6 @@ public class DelinquencyBucketNotFoundException extends AbstractPlatformResource public static DelinquencyBucketNotFoundException notFound(final Long id, Throwable... e) { return new DelinquencyBucketNotFoundException("error.msg.delinquency.bucket.not.found", - "Delinquency bucket with id `" + id + "` does not found.", id, e); + "Delinquency bucket with id `" + id + "` is not found.", id, e); } } diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/exception/DelinquencyRangeNotFoundException.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/exception/DelinquencyRangeNotFoundException.java index df6e8a952..e0d3b5a62 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/exception/DelinquencyRangeNotFoundException.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/exception/DelinquencyRangeNotFoundException.java @@ -33,6 +33,6 @@ public class DelinquencyRangeNotFoundException extends AbstractPlatformResourceN public static DelinquencyRangeNotFoundException notFound(final Long id, Throwable... e) { return new DelinquencyRangeNotFoundException("error.msg.delinquency.range.not.found", - "Delinquency range with id `" + id + "` does not found.", id, e); + "Delinquency range with id `" + id + "` is not found.", id, e); } } diff --git a/fineract-provider/src/test/java/org/apache/fineract/infrastructure/businessdate/service/BusinessDateReadPlatformServiceTest.java b/fineract-provider/src/test/java/org/apache/fineract/infrastructure/businessdate/service/BusinessDateReadPlatformServiceTest.java index b20bbb85e..d2318c722 100644 --- a/fineract-provider/src/test/java/org/apache/fineract/infrastructure/businessdate/service/BusinessDateReadPlatformServiceTest.java +++ b/fineract-provider/src/test/java/org/apache/fineract/infrastructure/businessdate/service/BusinessDateReadPlatformServiceTest.java @@ -64,7 +64,7 @@ public class BusinessDateReadPlatformServiceTest { public void notFoundByTypeNotStoredInDB() { BusinessDateNotFoundException businessDateNotFoundException = assertThrows(BusinessDateNotFoundException.class, () -> businessDateReadPlatformService.findByType("BUSINESS_DATE")); - assertEquals("Business date with type `BUSINESS_DATE` does not found.", businessDateNotFoundException.getDefaultUserMessage()); + assertEquals("Business date with type `BUSINESS_DATE` is not found.", businessDateNotFoundException.getDefaultUserMessage()); } @Test