PaymentIntegrationTests

12

tests

0

failures

0

ignored

0.779s

duration

100%

successful

Tests

Test Duration Result
createPaymentShouldReturnOK() 0.239s passed
deleteInexistentPaymentShouldReturnKO() 0.010s passed
deletePaymentWithCompanyMismatchShouldReturnKO() 0.011s passed
deletePaymentWithWrongTokenShouldReturnKO() 0.004s passed
deleteProcessedPaymentShouldReturnKO() 0.011s passed
modifyInexistentPaymentShouldReturnKO() 0.010s passed
modifyPaymentShouldReturnOK() 0.038s passed
newTokenWithCorrectCredentialsShouldReturnOK() 0.007s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.005s passed
retrieveCreatedPaymentShouldReturnOKAndAmountShouldBeCorrect() 0.043s passed
voidProcessedPaymentShouldReturnOK() 0.367s passed
voidVoidedPaymentShouldReturnKO() 0.034s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.PaymentIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.PaymentIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.PaymentIntegrationTests]: PaymentIntegrationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
- Found @SpringBootConfiguration org.libertya.api.LYRestAPI for test class org.libertya.api.PaymentIntegrationTests
- Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
- Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@6f0ae0ee, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6de9bba2, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@2651e783, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@7682bf66, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@4eb73cc8, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6e23ba17, org.springframework.test.context.event.EventPublishingTestExecutionListener@47e725af, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@247dcbba, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@535be281, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@20db19ff, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@5eef8a16, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@1405aa6a, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@18c60d81]
2026-07-03 16:59:43.894 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, password=AdminLibertya, clientid=1010016, orgid=1010053, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:43.897 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4MywiZXhwIjoyNjQ3MDExNTgzfQ.MbuWL8MQgMtIROQRYPrGgDnuhvjth9FaWD6T2G
2026-07-03 16:59:43.912 INFO - PaymentController.addPayment Arg1: class Payment {,     aBank: null,     accountingCChargeId: null,     accountno: null,     aCity: null,     aCountry: null,     aCuit: null,     adClientId: null,     adOrgId: 1010053,     adOrgtrxId: null,     aEmail: null,     aIdentDl: null,     aIdentSsn: null,     aName: null,     aState: null,     aStreet: null,     auditstatus: null,     authcode: null,     authmatch: null,     aZip: null,     banklistRegisterno: null,     bankPaymentDate: 2026-07-03 16:59:43,     bankPaymentDocumentno: null,     bankPaymentMsgDescription: null,     cActivityId: null,     cBankaccountId: 9999999,     cBankId: null,     cBankpaymentstatusId: null,     cBpartnerId: 1012145,     cBpBankaccountId: null,     cCampaignId: null,     cChargeId: null,     cConversiontypeId: null,     cCurrencyId: 118,     cDoctypeId: 1010512,     chargeamt: null,     checked: null,     checkno: null,     checkstatus: null,     cInvoiceCheckRejectedId: null,     cInvoiceId: null,     cOrderId: null,     couponbatchnumber: null,     couponnumber: null,     cPaymentbatchId: null,     cPaymentId: null,     cPosjournalId: null,     cPospaymentmediumId: null,     cProjectId: null,     created: null,     createdby: null,     creditcardexpmm: null,     creditcardexpyy: null,     creditcardnumber: null,     creditcardtype: null,     creditcardvv: null,     dateacct: 2026-07-03 16:59:43,     dateemissioncheck: 2023-06-01 18:00:00,     datetrx: null,     description: null,     discountamt: null,     docaction: null,     docstatus: null,     documentno: null,     duedate: null,     isactive: null,     isallocated: null,     isapproved: null,     isdelayedcapture: null,     ismanual: null,     isonline: null,     isoverunderpayment: null,     isprepayment: null,     isreceipt: null,     isreconciled: null,     isselfservice: null,     issotrx: true,     mBoletadepositoId: null,     mEntidadfinancieraplanId: null,     micr: null,     oprocessing: null,     originalRefPaymentId: null,     origTrxid: null,     overunderamt: null,     payamt: 350,     ponum: null,     posnet: null,     posted: null,     processed: null,     processing: null,     rAuthcode: null,     rAuthcodeDc: null,     rAvsaddr: null,     rAvszip: null,     rCvv2match: null,     refPaymentId: null,     rejectedcomments: null,     rejecteddate: null,     rInfo: null,     routingno: null,     rPnref: null,     rPnrefDc: null,     rRespmsg: null,     rResult: null,     swipe: null,     taxamt: null,     tendertype: K,     trxtype: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     voiceauthcode: null,     writeoffamt: null,     additionalvalues: null,     referencedvalues: null, },  
MPayment. prepayment= false
Debe postear inmediatamente=false Estado documento=CO
2026-07-03 16:59:44.135 INFO - PaymentController.addPayment: <200 OK OK,1012360,[]>
1012360
2026-07-03 16:59:44.142 INFO - PaymentController.retrievePayment Arg1: 1012360,  
2026-07-03 16:59:44.175 INFO - PaymentController.retrievePayment: <200 OK OK,class Payment {,     aBank: null,     accountingCChargeId: null,     accountno: null,     aCity: null,     aCountry: null,     aCuit: null,     adClientId: 1010016,     adOrgId: 1010053,     adOrgtrxId: null,     aEmail: null,     aIdentDl: null,     aIdentSsn: null,     aName: null,     
2026-07-03 16:59:44.186 INFO - PaymentController.updatePayment Arg1: 1012360, Arg2: class Payment {,     aBank: null,     accountingCChargeId: null,     accountno: null,     aCity: null,     aCountry: null,     aCuit: null,     adClientId: null,     adOrgId: null,     adOrgtrxId: null,     aEmail: null,     aIdentDl: null,     aIdentSsn: null,     aName: null,     aState: null,     aStreet: null,     auditstatus: null,     authcode: null,     authmatch: null,     aZip: null,     banklistRegisterno: null,     bankPaymentDate: null,     bankPaymentDocumentno: null,     bankPaymentMsgDescription: null,     cActivityId: null,     cBankaccountId: null,     cBankId: null,     cBankpaymentstatusId: null,     cBpartnerId: null,     cBpBankaccountId: null,     cCampaignId: null,     cChargeId: null,     cConversiontypeId: null,     cCurrencyId: null,     cDoctypeId: null,     chargeamt: null,     checked: null,     checkno: null,     checkstatus: null,     cInvoiceCheckRejectedId: null,     cInvoiceId: null,     cOrderId: null,     couponbatchnumber: null,     couponnumber: null,     cPaymentbatchId: null,     cPaymentId: null,     cPosjournalId: null,     cPospaymentmediumId: null,     cProjectId: null,     created: null,     createdby: null,     creditcardexpmm: null,     creditcardexpyy: null,     creditcardnumber: null,     creditcardtype: null,     creditcardvv: null,     dateacct: null,     dateemissioncheck: null,     datetrx: null,     description: null,     discountamt: null,     docaction: null,     docstatus: null,     documentno: null,     duedate: null,     isactive: null,     isallocated: null,     isapproved: null,     isdelayedcapture: null,     ismanual: null,     isonline: null,     isoverunderpayment: null,     isprepayment: null,     isreceipt: null,     isreconciled: null,     isselfservice: null,     issotrx: null,     mBoletadepositoId: null,     mEntidadfinancieraplanId: null,     micr: null,     oprocessing: null,     originalRefPaymentId: null,     origTrxid: null,     overunderamt: null,     payamt: null,     ponum: null,     posnet: null,     posted: null,     processed: null,     processing: null,     rAuthcode: null,     rAuthcodeDc: null,     rAvsaddr: null,     rAvszip: null,     rCvv2match: null,     refPaymentId: null,     rejectedcomments: null,     rejecteddate: null,     rInfo: null,     routingno: null,     rPnref: null,     rPnrefDc: null,     rRespmsg: null,     rResult: null,     swipe: null,     taxamt: null,     tendertype: null,     trxtype: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     voiceauthcode: null,     writeoffamt: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:44.218 INFO - PaymentController.updatePayment: <200 OK OK,[]>
2026-07-03 16:59:44.224 INFO - PaymentController.updatePayment Arg1: -1, Arg2: class Payment {,     aBank: null,     accountingCChargeId: null,     accountno: null,     aCity: null,     aCountry: null,     aCuit: null,     adClientId: null,     adOrgId: null,     adOrgtrxId: null,     aEmail: null,     aIdentDl: null,     aIdentSsn: null,     aName: null,     aState: null,     aStreet: null,     auditstatus: null,     authcode: null,     authmatch: null,     aZip: null,     banklistRegisterno: null,     bankPaymentDate: null,     bankPaymentDocumentno: null,     bankPaymentMsgDescription: null,     cActivityId: null,     cBankaccountId: null,     cBankId: null,     cBankpaymentstatusId: null,     cBpartnerId: null,     cBpBankaccountId: null,     cCampaignId: null,     cChargeId: null,     cConversiontypeId: null,     cCurrencyId: null,     cDoctypeId: null,     chargeamt: null,     checked: null,     checkno: null,     checkstatus: null,     cInvoiceCheckRejectedId: null,     cInvoiceId: null,     cOrderId: null,     couponbatchnumber: null,     couponnumber: null,     cPaymentbatchId: null,     cPaymentId: null,     cPosjournalId: null,     cPospaymentmediumId: null,     cProjectId: null,     created: null,     createdby: null,     creditcardexpmm: null,     creditcardexpyy: null,     creditcardnumber: null,     creditcardtype: null,     creditcardvv: null,     dateacct: null,     dateemissioncheck: null,     datetrx: null,     description: null,     discountamt: null,     docaction: null,     docstatus: null,     documentno: -1,     duedate: null,     isactive: null,     isallocated: null,     isapproved: null,     isdelayedcapture: null,     ismanual: null,     isonline: null,     isoverunderpayment: null,     isprepayment: null,     isreceipt: null,     isreconciled: null,     isselfservice: null,     issotrx: null,     mBoletadepositoId: null,     mEntidadfinancieraplanId: null,     micr: null,     oprocessing: null,     originalRefPaymentId: null,     origTrxid: null,     overunderamt: null,     payamt: null,     ponum: null,     posnet: null,     posted: null,     processed: null,     processing: null,     rAuthcode: null,     rAuthcodeDc: null,     rAvsaddr: null,     rAvszip: null,     rCvv2match: null,     refPaymentId: null,     rejectedcomments: null,     rejecteddate: null,     rInfo: null,     routingno: null,     rPnref: null,     rPnrefDc: null,     rRespmsg: null,     rResult: null,     swipe: null,     taxamt: null,     tendertype: null,     trxtype: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     voiceauthcode: null,     writeoffamt: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:44.228 INFO - PaymentController.updatePayment: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:44.235 INFO - PaymentController.processPayment Arg1: 1012360, Arg2: VO,  
MPayment. prepayment= false
Debe postear inmediatamente=false Estado documento=CO
Debe postear inmediatamente=false Estado documento=CO
2026-07-03 16:59:44.593 INFO - PaymentController.processPayment: <200 OK OK,1000035^ - @C_AllocationHdr_ID@: 1000071,[]>
2026-07-03 16:59:44.602 INFO - PaymentController.deletePayment Arg1: 1012360,  
2026-07-03 16:59:44.607 INFO - PaymentController.deletePayment: <409 CONFLICT Conflict,No se pudo borrar el registro , No es posible borrar un registro que se ya encuentra procesado,[]>
2026-07-03 16:59:44.613 INFO - PaymentController.processPayment Arg1: 1012360, Arg2: VO,  
2026-07-03 16:59:44.641 INFO - PaymentController.processPayment: <409 CONFLICT Conflict,Imposible procesar.  La accion VO a aplicar ya coincide con el estado actual VO,[]>
2026-07-03 16:59:44.646 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, password=AdminLibertya, clientid=1010016, orgid=1010053, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:44.649 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4NCwiZXhwIjoyNjQ3MDExNTg0fQ.1ouyAFYyR8Q-y0Lfbuv8yLmeV1wmhBtk6lqGVh
2026-07-03 16:59:44.653 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:44.654 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:44.660 INFO - PaymentController.deletePayment Arg1: 1001870,  
2026-07-03 16:59:44.665 INFO - PaymentController.deletePayment: <401 UNAUTHORIZED Unauthorized,Token de acceso limitado a compañía 1010016,[]>
2026-07-03 16:59:44.670 INFO - PaymentController.deletePayment Arg1: -1,  
2026-07-03 16:59:44.674 INFO - PaymentController.deletePayment: <404 NOT_FOUND Not Found,[]>