InOutIntegrationTests

11

tests

0

failures

0

ignored

1.330s

duration

100%

successful

Tests

Test Duration Result
createInOutShouldReturnOK() 0.756s passed
deleteInOutWithCompanyMismatchShouldReturnKO() 0.009s passed
deleteInOutWithWrongTokenShouldReturnKO() 0.004s passed
deleteInexistentInOutShouldReturnKO() 0.009s passed
deleteProcessedInOutShouldReturnKO() 0.013s passed
modifyInOutShouldReturnOK() 0.028s passed
modifyInexistentInOutShouldReturnKO() 0.014s passed
newTokenWithCorrectCredentialsShouldReturnOK() 0.007s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.005s passed
retrieveCreatedInOutShouldReturnOK() 0.131s passed
voidCompletedInOutShouldReturnOK() 0.354s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.InOutIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.InOutIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.InOutIntegrationTests]: InOutIntegrationTests 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.InOutIntegrationTests
- 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@d271a54, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6ff8e744, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@409395b9, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@53e82089, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@66a8751a, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4ec27c4c, org.springframework.test.context.event.EventPublishingTestExecutionListener@12200670, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@5e80d5, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@257b3561, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@78861d9e, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@6a878778, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@1eabfad5, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@6207145c]
2026-07-03 16:59:34.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:34.086 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk3NCwiZXhwIjoyNjQ3MDExNTc0fQ.iSwHk5m1wJOzINTPIlQpHpYqTzkKMnFnNb9FHD
2026-07-03 16:59:34.127 INFO - InOutController.addInOut Arg1: class InOutDocument {,     header: class InOut {,         adClientId: null,         adOrgId: 1010053,         adOrgtrxId: null,         adUserId: null,         cActivityId: null,         cai: null,         cBpartnerId: 1002100,         cBpartnerLocationId: 1012158,         cCampaignId: null,         cChargeId: null,         cDoctypeId: 1010522,         chargeamt: null,         cInvoiceId: null,         clearancenumber: null,         cOrderId: null,         cProjectId: null,         createconfirm: null,         created: null,         createdby: null,         createfrom: null,         createpackage: null,         dateacct: 2026-07-03 16:59:34,         datecai: null,         dateordered: null,         dateprinted: null,         datereceived: null,         deliveryrule: null,         deliveryviarule: null,         description: null,         docaction: null,         docstatus: null,         documentno: null,         freightamt: null,         freightcostrule: null,         generateto: null,         inoutdate: null,         inoutreceptiondate: null,         isactive: null,         isapproved: null,         isindispute: null,         isintransit: null,         isprinted: null,         issotrx: false,         mInoutId: null,         movementdate: 2026-07-03 16:59:34,         movementtype: V+,         mShipperId: null,         mWarehouseId: 1010048,         nopackages: null,         pickdate: null,         poreference: null,         posted: null,         preprintedDocno: null,         printtype: null,         priorityrule: null,         processed: null,         processing: null,         receptiondate: null,         refInoutId: null,         salesrepId: null,         sendemail: null,         shipdate: null,         trackingno: null,         updated: null,         updatedby: null,         user1Id: null,         user2Id: null,         additionalvalues: null,         referencedvalues: null,     },     lines: [class InOutLine {,         adClientId: null,         adOrgId: 1010053,         cChargeId: null,         cCountryId: null,         cInvoicelineId: null,         confirmedqty: null,         cOrderlineId: null,         costprice: null,         cProjectId: null,         created: null,         createdby: null,         cUomId: null,         declarationno: null,         description: null,         isactive: null,         isdescription: null,         isinvoiced: null,         isselected: null,         line: 10,         mAttributesetinstanceId: null,         mImportClearanceId: null,         mInoutId: null,         mInoutlineId: null,         mLocatorId: 1010278,         movementqty: 5,         mProductId: 1004168,         pickedqty: null,         processed: null,         qtyentered: 5,         refInoutlineId: null,         scrappedqty: null,         targetqty: null,         updated: null,         updatedby: null,         additionalvalues: null,         referencedvalues: null,     }, class InOutLine {,         adClientId: null,         adOrgId: 1010053,         cChargeId: null,         cCountryId: null,         cInvoicelineId: null,         confirmedqty: null,         cOrderlineId: null,         costprice: null,         cProjectId: null,         created: null,         createdby: null,         cUomId: null,         declarationno: null,         description: null,         isactive: null,         isdescription: null,         isinvoiced: null,         isselected: null,         line: 20,         mAttributesetinstanceId: null,         mImportClearanceId: null,         mInoutId: null,         mInoutlineId: null,         mLocatorId: 1010278,         movementqty: 3,         mProductId: 1004168,         pickedqty: null,         processed: null,         qtyentered: 3,         refInoutlineId: null,         scrappedqty: null,         targetqty: null,         updated: null,         updatedby: null,         additionalvalues: null,         referencedvalues: null,     }], },  
Debe postear inmediatamente=false Estado documento=CO
2026-07-03 16:59:34.841 INFO - InOutController.addInOut: <200 OK OK,1014087,[]>
1014087
2026-07-03 16:59:34.848 INFO - InOutController.retrieveInOut Arg1: 1014087,  
2026-07-03 16:59:34.964 INFO - InOutController.retrieveInOut: <200 OK OK,class InOutDocument {,     header: class InOut {,         adClientId: 1010016,         adOrgId: 1010053,         adOrgtrxId: null,         adUserId: -1,         cActivityId: null,         cai: null,         cBpartnerId: 1002100,         cBpartnerLocationId: 1012158,         cCampaignId: n
2026-07-03 16:59:34.982 INFO - InOutController.updateInOut Arg1: -1, Arg2: class InOut {,     adClientId: null,     adOrgId: null,     adOrgtrxId: null,     adUserId: null,     cActivityId: null,     cai: null,     cBpartnerId: null,     cBpartnerLocationId: null,     cCampaignId: null,     cChargeId: null,     cDoctypeId: null,     chargeamt: null,     cInvoiceId: null,     clearancenumber: null,     cOrderId: null,     cProjectId: null,     createconfirm: null,     created: null,     createdby: null,     createfrom: null,     createpackage: null,     dateacct: null,     datecai: null,     dateordered: null,     dateprinted: null,     datereceived: null,     deliveryrule: null,     deliveryviarule: null,     description: null,     docaction: null,     docstatus: null,     documentno: -1,     freightamt: null,     freightcostrule: null,     generateto: null,     inoutdate: null,     inoutreceptiondate: null,     isactive: null,     isapproved: null,     isindispute: null,     isintransit: null,     isprinted: null,     issotrx: null,     mInoutId: null,     movementdate: null,     movementtype: null,     mShipperId: null,     mWarehouseId: null,     nopackages: null,     pickdate: null,     poreference: null,     posted: null,     preprintedDocno: null,     printtype: null,     priorityrule: null,     processed: null,     processing: null,     receptiondate: null,     refInoutId: null,     salesrepId: null,     sendemail: null,     shipdate: null,     trackingno: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:34.988 INFO - InOutController.updateInOut: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:34.995 INFO - InOutController.updateInOut Arg1: 1014087, Arg2: class InOut {,     adClientId: null,     adOrgId: null,     adOrgtrxId: null,     adUserId: null,     cActivityId: null,     cai: null,     cBpartnerId: null,     cBpartnerLocationId: null,     cCampaignId: null,     cChargeId: null,     cDoctypeId: null,     chargeamt: null,     cInvoiceId: null,     clearancenumber: null,     cOrderId: null,     cProjectId: null,     createconfirm: null,     created: null,     createdby: null,     createfrom: null,     createpackage: null,     dateacct: null,     datecai: null,     dateordered: null,     dateprinted: null,     datereceived: null,     deliveryrule: null,     deliveryviarule: null,     description: null,     docaction: null,     docstatus: null,     documentno: null,     freightamt: null,     freightcostrule: null,     generateto: null,     inoutdate: null,     inoutreceptiondate: null,     isactive: null,     isapproved: null,     isindispute: null,     isintransit: null,     isprinted: null,     issotrx: null,     mInoutId: null,     movementdate: null,     movementtype: null,     mShipperId: null,     mWarehouseId: null,     nopackages: null,     pickdate: null,     poreference: null,     posted: null,     preprintedDocno: null,     printtype: null,     priorityrule: null,     processed: null,     processing: null,     receptiondate: null,     refInoutId: null,     salesrepId: null,     sendemail: null,     shipdate: null,     trackingno: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:35.015 INFO - InOutController.updateInOut: <200 OK OK,[]>
2026-07-03 16:59:35.023 INFO - InOutController.deleteInOut Arg1: 1014087,  
2026-07-03 16:59:35.029 INFO - InOutController.deleteInOut: <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:35.036 INFO - InOutController.processInOut Arg1: 1014087, Arg2: VO,  
Debe postear inmediatamente=false Estado documento=CO
2026-07-03 16:59:35.382 INFO - InOutController.processInOut: <200 OK OK,1000071,[]>
2026-07-03 16:59:35.388 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:35.391 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk3NSwiZXhwIjoyNjQ3MDExNTc1fQ.WC9xF3t0jweHRNQACy8RTgq1E0TT2SggQvRno1
2026-07-03 16:59:35.396 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:35.397 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:35.407 INFO - InOutController.deleteInOut Arg1: -1,  
2026-07-03 16:59:35.411 INFO - InOutController.deleteInOut: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:35.416 INFO - InOutController.deleteInOut Arg1: 1003577,  
2026-07-03 16:59:35.421 INFO - InOutController.deleteInOut: <401 UNAUTHORIZED Unauthorized,Token de acceso limitado a compañía 1010016,[]>