Skip to content

Commit

Permalink
CIRC-2050 update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Apr 2, 2024
1 parent c24f6ae commit 2e55351
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ private static Result<AllowedServicePointsRequest> validateAllowedServicePointsR
}

if (useStubItem != null && !"true".equals(useStubItem) && !"false".equals(useStubItem)) {
log.warn("validateAllowedServicePointsRequest:: useStubItem is not a valid value: {}",
log.warn("validateAllowedServicePointsRequest:: useStubItem is not a valid boolean: {}",
useStubItem);
errors.add(String.format("UseStubItem is not a valid value: %s.", useStubItem));
errors.add(String.format("useStubItem is not a valid boolean: %s.", useStubItem));
}

// Checking parameter combinations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ void shouldUseStubItemParameterInCirculationRuleMatchingWhenPresent() {

Response errorResponse = getCreateOp(requesterId, instanceId, null, "invalid",
HttpStatus.SC_BAD_REQUEST);
assertThat(errorResponse.getBody(), is("UseStubItem is not a valid value: invalid."));
assertThat(errorResponse.getBody(), is("useStubItem is not a valid boolean: invalid."));
}

private void assertServicePointsMatch(JsonArray response,
Expand Down

0 comments on commit 2e55351

Please sign in to comment.