From 35df70baa67a16dc4377a33cb1c812f4f2cfe731 Mon Sep 17 00:00:00 2001 From: Miguel Vargas Date: Tue, 20 Aug 2024 12:29:46 -0500 Subject: [PATCH] test: rename variables --- .../java/webpayplus/WebpayPlusDeferredTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/webpayplus/WebpayPlusDeferredTest.java b/src/test/java/webpayplus/WebpayPlusDeferredTest.java index 9fbaba3..fb733e7 100644 --- a/src/test/java/webpayplus/WebpayPlusDeferredTest.java +++ b/src/test/java/webpayplus/WebpayPlusDeferredTest.java @@ -193,26 +193,26 @@ public void capture() throws IOException, TransactionCaptureException { String authorizationCode3 = "1213"; String authorizationDate3 = "2021-08-01T03:17:42.785Z"; double capturedAmount = 1000.0; - byte responseCode = 0; + byte responseCode3 = 0; Map mapResponse = new HashMap(); mapResponse.put("authorization_code", authorizationCode3); mapResponse.put("authorization_date", authorizationDate3); mapResponse.put("captured_amount", capturedAmount); - mapResponse.put("response_code", responseCode); + mapResponse.put("response_code", responseCode3); Gson gson = new GsonBuilder().create(); String jsonResponse = gson.toJson(mapResponse); setResponsePut(url, jsonResponse); - String buyOrder = String.valueOf(new Random().nextInt(Integer.MAX_VALUE)); - String authorization = "1213"; - double amount = 1000; + String buyOrder3 = String.valueOf(new Random().nextInt(Integer.MAX_VALUE)); + String authorization3 = "1213"; + double amount3 = 1000; - final WebpayPlusTransactionCaptureResponse response = (new WebpayPlus.Transaction(option)).capture(testToken, buyOrder, authorization, amount); + final WebpayPlusTransactionCaptureResponse response = (new WebpayPlus.Transaction(option)).capture(testToken, buyOrder3, authorization3, amount3); assertEquals(authorizationCode3, response.getAuthorizationCode()); assertEquals(authorizationDate3, response.getAuthorizationDate()); assertEquals(capturedAmount, response.getCapturedAmount()); - assertEquals(responseCode, response.getResponseCode()); + assertEquals(responseCode3, response.getResponseCode()); } }