Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ClientNotFoundException(final Long id) {
}

public ClientNotFoundException(final ExternalId externalId) {
super("error.msg.client.id.invalid", "Client with identifier " + externalId + " does not exist", externalId);
super("error.msg.client.id.invalid", "Client with identifier " + externalId.getValue() + " does not exist", externalId.getValue());
}

public ClientNotFoundException() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class BatchApiStepDef extends AbstractStepDef {
private static final Long CHARGE_ID_NFS_FEE = ChargeProductType.LOAN_NSF_FEE.value;
private static final String ERROR_DEVELOPER_MESSAGE = "The requested resource is not available.";
private static final Integer ERROR_HTTP_404 = 404;
private static final String ERROR_DEVELOPER_MESSAGE_CLIENT = "Client with identifier null does not exist";
private static final String ERROR_DEVELOPER_MESSAGE_CLIENT = "Client with identifier {externalId} does not exist";
private static final String ERROR_DEVELOPER_MESSAGE_LOAN_EXTERNAL = "Loan with external identifier {externalId} does not exist";
private static final String PWD_USER_WITH_ROLE = "1234567890Aa!";

Expand Down Expand Up @@ -921,7 +921,7 @@ public void clientNotCreated(int nr) throws IOException {

String developerMessageExpected = ERROR_DEVELOPER_MESSAGE;
Integer httpStatusCodeExpected = ERROR_HTTP_404;
String errorsDeveloperMessageExpected = ERROR_DEVELOPER_MESSAGE_CLIENT;
String errorsDeveloperMessageExpected = ERROR_DEVELOPER_MESSAGE_CLIENT.replace("{externalId}", clientExternalId);

assertThat(developerMessageActual).as(ErrorMessageHelper.wrongErrorMessage(developerMessageActual, developerMessageExpected))
.isEqualTo(developerMessageExpected);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private Long getResolvedClientId(final Long clientId, final ExternalId clientExt
clientExternalId.throwExceptionIfEmpty();
resolvedClientId = clientReadPlatformService.retrieveClientIdByExternalId(clientExternalId);
if (resolvedClientId == null) {
throw new ClientNotFoundException(resolvedClientId);
throw new ClientNotFoundException(clientExternalId);
}
}
return resolvedClientId;
Expand Down
Loading