CashIntegrationTests

10

tests

0

failures

0

ignored

0.297s

duration

100%

successful

Tests

Test Duration Result
createDocumentShouldReturnOK() 0.111s passed
deleteDocumentWithWrongTokenShouldReturnKO() 0.005s passed
deleteInexistentDocumentShouldReturnKO() 0.010s passed
deleteProcessedDocumentShouldReturnKO() 0.011s passed
modifyDocumentShouldReturnOK() 0.022s passed
modifyInexistentDocumentShouldReturnKO() 0.013s passed
newTokenWithCorrectCredentialsShouldReturnOK() 0.008s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.006s passed
retrieveCreatedDocumentShouldReturnOK() 0.030s passed
voidCompletedDocumentShouldReturnOK() 0.081s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.CashIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.CashIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.CashIntegrationTests]: CashIntegrationTests 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.CashIntegrationTests
- 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@4780341, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@3c910acd, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@612ac38b, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@9f2fe2e, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@4dd4965a, org.springframework.test.context.support.DirtiesContextTestExecutionListener@79273a4f, org.springframework.test.context.event.EventPublishingTestExecutionListener@4e26987b, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@50bb1c1f, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@39342614, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7981963f, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@31e3c34, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@b4d83ac, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@13d10057]
2026-07-03 16:59:32.083 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:32.086 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk3MiwiZXhwIjoyNjQ3MDExNTcyfQ.z85JJ6APhzvQxzApByhla6FpDLH5oFnBPuXWN_
2026-07-03 16:59:32.100 INFO - CashController.addCash Arg1: class Cash {,     adClientId: 1010016,     adOrgId: 1010053,     adOrgtrxId: null,     beginningbalance: 1092.6,     cActivityId: null,     cashbooktype: null,     cCampaignId: null,     cCashbookId: 1010024,     cCashId: null,     cPosjournalId: null,     cProjectId: null,     created: null,     createdby: null,     dateacct: 2025-04-01 10:00:00,     description: ,     docaction: null,     docstatus: null,     endingbalance: 2185.2,     isactive: null,     isapproved: true,     name: 01/04/2025,     posted: p,     processed: true,     processing: false,     statementdate: 2025-04-01 10:00:00,     statementdifference: 1092.6,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     validateposjournal: false,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:32.198 INFO - CashController.addCash: <200 OK OK,1010482,[]>
1010482
2026-07-03 16:59:32.206 INFO - CashController.retrieveCash Arg1: 1010482,  
2026-07-03 16:59:32.226 INFO - CashController.retrieveCash: <200 OK OK,class Cash {,     adClientId: 1010016,     adOrgId: 1010053,     adOrgtrxId: null,     beginningbalance: 1092.60,     cActivityId: null,     cashbooktype: null,     cCampaignId: null,     cCashbookId: 1010024,     cCashId: 1010482,     cPosjournalId: null,     cProjectId: null,     create
2026-07-03 16:59:32.236 INFO - CashController.updateCash Arg1: -1, Arg2: class Cash {,     adClientId: null,     adOrgId: null,     adOrgtrxId: null,     beginningbalance: null,     cActivityId: null,     cashbooktype: null,     cCampaignId: null,     cCashbookId: null,     cCashId: null,     cPosjournalId: null,     cProjectId: null,     created: null,     createdby: null,     dateacct: null,     description: null,     docaction: null,     docstatus: null,     endingbalance: null,     isactive: null,     isapproved: null,     name: null,     posted: null,     processed: null,     processing: null,     statementdate: null,     statementdifference: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     validateposjournal: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:32.241 INFO - CashController.updateCash: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:32.248 INFO - CashController.updateCash Arg1: 1010482, Arg2: class Cash {,     adClientId: null,     adOrgId: null,     adOrgtrxId: null,     beginningbalance: null,     cActivityId: null,     cashbooktype: null,     cCampaignId: null,     cCashbookId: null,     cCashId: null,     cPosjournalId: null,     cProjectId: null,     created: null,     createdby: null,     dateacct: null,     description: null,     docaction: null,     docstatus: null,     endingbalance: null,     isactive: null,     isapproved: null,     name: null,     posted: null,     processed: null,     processing: null,     statementdate: null,     statementdifference: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     validateposjournal: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:32.263 INFO - CashController.updateCash: <200 OK OK,[]>
2026-07-03 16:59:32.270 INFO - CashController.deleteCash Arg1: 1010482,  
2026-07-03 16:59:32.274 INFO - CashController.deleteCash: <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:32.282 INFO - CashController.processCash Arg1: 1010482, Arg2: VO,  
2026-07-03 16:59:32.355 INFO - CashController.processCash: <200 OK OK,[]>
2026-07-03 16:59:32.361 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:32.363 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk3MiwiZXhwIjoyNjQ3MDExNTcyfQ.z85JJ6APhzvQxzApByhla6FpDLH5oFnBPuXWN_
2026-07-03 16:59:32.369 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:32.370 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:32.376 INFO - CashController.deleteCash Arg1: -1,  
2026-07-03 16:59:32.380 INFO - CashController.deleteCash: <404 NOT_FOUND Not Found,[]>