This is an automated email from the ASF dual-hosted git repository.
adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new 25622aa6a FINERACT-1724: Fix grammar in error message
25622aa6a is described below
commit 25622aa6a768c5151cd7b66219ceca023ff1e2da
Author: Adam Saghy <[email protected]>
AuthorDate: Tue Jan 31 12:27:16 2023 +0100
FINERACT-1724: Fix grammar in error message
---
.../businessdate/exception/BusinessDateNotFoundException.java | 4 ++--
.../delinquency/exception/DelinquencyBucketNotFoundException.java | 2 +-
.../delinquency/exception/DelinquencyRangeNotFoundException.java | 2 +-
.../businessdate/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