FINERACT-1724: Fix grammar in error message

This commit is contained in:
Adam Saghy
2023-01-31 16:19:46 +01:00
parent 06f5d3cbdd
commit 25622aa6a7
4 changed files with 5 additions and 5 deletions
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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