FINERACT-1724: Fix grammar in error message
This commit is contained in:
+2
-2
@@ -35,7 +35,7 @@ public class BusinessDateNotFoundException extends AbstractPlatformResourceNotFo
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static BusinessDateNotFoundException notFound(final String type, Throwable... e) {
|
public static BusinessDateNotFoundException notFound(final String type, Throwable... e) {
|
||||||
return new BusinessDateNotFoundException("error.msg.businessdate.not.found",
|
return new BusinessDateNotFoundException("error.msg.businessdate.not.found", "Business date with type `" + type + "` is not found.",
|
||||||
"Business date with type `" + type + "` does not found.", type, e);
|
type, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -34,6 +34,6 @@ public class DelinquencyBucketNotFoundException extends AbstractPlatformResource
|
|||||||
|
|
||||||
public static DelinquencyBucketNotFoundException notFound(final Long id, Throwable... e) {
|
public static DelinquencyBucketNotFoundException notFound(final Long id, Throwable... e) {
|
||||||
return new DelinquencyBucketNotFoundException("error.msg.delinquency.bucket.not.found",
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -33,6 +33,6 @@ public class DelinquencyRangeNotFoundException extends AbstractPlatformResourceN
|
|||||||
|
|
||||||
public static DelinquencyRangeNotFoundException notFound(final Long id, Throwable... e) {
|
public static DelinquencyRangeNotFoundException notFound(final Long id, Throwable... e) {
|
||||||
return new DelinquencyRangeNotFoundException("error.msg.delinquency.range.not.found",
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ public class BusinessDateReadPlatformServiceTest {
|
|||||||
public void notFoundByTypeNotStoredInDB() {
|
public void notFoundByTypeNotStoredInDB() {
|
||||||
BusinessDateNotFoundException businessDateNotFoundException = assertThrows(BusinessDateNotFoundException.class,
|
BusinessDateNotFoundException businessDateNotFoundException = assertThrows(BusinessDateNotFoundException.class,
|
||||||
() -> businessDateReadPlatformService.findByType("BUSINESS_DATE"));
|
() -> 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
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user