Skip to content

Commit

Permalink
Fix spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-HendryZheng committed Dec 12, 2022
1 parent 3080678 commit 34eb7b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions xendit-java-lib/src/test/java/com/xenditclient/QRCodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,12 @@ public void createQRCode_Success_WithHeaderProvided() throws XenditException {
RequestHeaders.put("for-user-id", "user-id");
RequestHeaders.put("api-version", "2022-07-31");


when(this.requestClient.request(
RequestResource.Method.POST,
URL,
RequestHeaders,
PARAMS,
opt.getApiKey(),
RequestResource.Method.POST,
URL,
RequestHeaders,
PARAMS,
opt.getApiKey(),
QRCode.class))
.thenReturn(VALID_PAYMENT);
when(qrCodeClient.createQRCode(HEADERS, PARAMS)).thenReturn(VALID_PAYMENT);
Expand Down Expand Up @@ -145,7 +144,8 @@ public void GetQRCode_ThrowsException_OnExternalIDNotFound() throws XenditExcept
when(this.requestClient.request(
RequestResource.Method.GET, url, null, opt.getApiKey(), QRCode.class))
.thenThrow(new XenditException("not found"));
when(qrCodeClient.getQRCode(NOT_VALID_REFERENCE_ID)).thenThrow(new XenditException("not found"));
when(qrCodeClient.getQRCode(NOT_VALID_REFERENCE_ID))
.thenThrow(new XenditException("not found"));

qrCodeClient.getQRCode(NOT_VALID_REFERENCE_ID);
}
Expand Down

0 comments on commit 34eb7b7

Please sign in to comment.