|
20 | 20 | */ |
21 | 21 | package com.adyen; |
22 | 22 |
|
23 | | -import static org.junit.Assert.*; |
| 23 | +import static org.junit.jupiter.api.Assertions.*; |
24 | 24 | import static org.mockito.ArgumentMatchers.*; |
25 | 25 | import static org.mockito.Mockito.verify; |
26 | 26 |
|
|
32 | 32 | import com.fasterxml.jackson.databind.JsonNode; |
33 | 33 | import java.time.OffsetDateTime; |
34 | 34 | import java.util.*; |
35 | | -import org.junit.Assert; |
36 | | -import org.junit.Test; |
| 35 | +import org.junit.jupiter.api.Assertions; |
| 36 | +import org.junit.jupiter.api.Test; |
37 | 37 | import org.mockito.ArgumentCaptor; |
38 | 38 |
|
39 | 39 | public class CheckoutTest extends BaseTest { |
@@ -385,8 +385,8 @@ public void testGetStoredPaymentMethods() throws Exception { |
385 | 385 | RecurringApi checkout = new RecurringApi(client); |
386 | 386 | ListStoredPaymentMethodsResponse response = |
387 | 387 | checkout.getTokensForStoredPaymentDetails("test-1234", "TestMerchantAccount", null); |
388 | | - Assert.assertEquals("merchantAccount", response.getMerchantAccount()); |
389 | | - Assert.assertEquals("string", response.getStoredPaymentMethods().get(0).getBrand()); |
| 388 | + Assertions.assertEquals("merchantAccount", response.getMerchantAccount()); |
| 389 | + Assertions.assertEquals("string", response.getStoredPaymentMethods().get(0).getBrand()); |
390 | 390 | } |
391 | 391 |
|
392 | 392 | /** Should delete StoredPaymentMethods */ |
@@ -478,10 +478,10 @@ public void testCheckoutPaymentMethodSerialisation() throws Exception { |
478 | 478 | + " \"applePayToken\": \"VNRWtuNlNEWkRCSm1xWndjMDFFbktkQU...\"\n" |
479 | 479 | + " }"); |
480 | 480 |
|
481 | | - Assert.assertTrue(checkoutPaymentMethodGoogle.toJson().contains("paywithgoogle")); |
482 | | - Assert.assertTrue(checkoutPaymentMethodGoogle.toJson().contains("googlePayToken")); |
483 | | - Assert.assertTrue(checkoutPaymentMethodScheme.toJson().contains("scheme")); |
484 | | - Assert.assertTrue( |
| 481 | + Assertions.assertTrue(checkoutPaymentMethodGoogle.toJson().contains("paywithgoogle")); |
| 482 | + Assertions.assertTrue(checkoutPaymentMethodGoogle.toJson().contains("googlePayToken")); |
| 483 | + Assertions.assertTrue(checkoutPaymentMethodScheme.toJson().contains("scheme")); |
| 484 | + Assertions.assertTrue( |
485 | 485 | checkoutPaymentMethodApple.toJson().contains("NRWtuNlNEWkRCSm1xWndjMDFFbktkQU")); |
486 | 486 | } |
487 | 487 |
|
|
0 commit comments