OrderIntegrationTests

11

tests

0

failures

0

ignored

0.885s

duration

100%

successful

Tests

Test Duration Result
createOrderShouldReturnOK() 0.538s passed
deleteInexistentOrderShouldReturnKO() 0.008s passed
deleteOrderWithCompanyMismatchShouldReturnKO() 0.010s passed
deleteOrderWithWrongTokenShouldReturnKO() 0.003s passed
deleteProcessedInvoiceShouldReturnKO() 0.009s passed
modifyInexistentOrderShouldReturnKO() 0.009s passed
modifyOrderShouldReturnOK() 0.030s passed
newTokenWithCorrectCredentialsShouldReturnOK() 0.007s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.005s passed
retrieveCreatedOrderShouldReturnOK() 0.125s passed
voidCompletedOrderShouldReturnOK() 0.141s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.OrderIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.OrderIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.OrderIntegrationTests]: OrderIntegrationTests 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.OrderIntegrationTests
- 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@72585e83, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6b64bf61, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@1d5bb5c, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@7846913f, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@48da64f2, org.springframework.test.context.support.DirtiesContextTestExecutionListener@60b553f, org.springframework.test.context.event.EventPublishingTestExecutionListener@2aa811f9, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@66abb2fa, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7d4da729, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@2133b712, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@4b7e4d14, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@70f91ae3, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@601d9f3a]
2026-07-03 16:59:39.417 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:39.420 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk3OSwiZXhwIjoyNjQ3MDExNTc5fQ._2id9xAVTTQJtsiNeyCiNCyrgoCsObBtrjWqxL
2026-07-03 16:59:39.434 INFO - OrderController.addOrder Arg1: class OrderDocument {,     header: class Order {,         acceptance: null,         adClientId: null,         addlinesquicker: null,         adOrgId: 1010053,         adOrgTransferId: null,         adOrgtrxId: null,         adUserId: 100,         allowchangepricelist: null,         authorizationchainstatus: null,         authorize: null,         billBpartnerId: 1012142,         billLocationId: 1012157,         billUserId: null,         cActivityId: null,         cBpartnerId: 1012142,         cBpartnerLocationId: 1012157,         cCampaignId: null,         cCashlineId: null,         cChargeId: null,         cConversiontypeId: 114,         cCurrencyId: 118,         cDoctypeId: 1010532,         cDoctypetargetId: 1010532,         chargeamt: null,         cInvoiceOrigId: null,         codigocategoriaiva: null,         copyfrom: null,         cOrderId: null,         cPaymentId: null,         cPaymenttermId: 1010083,         cProjectId: null,         created: null,         createdby: null,         createvendorproductlines: null,         creditrequesttype: null,         cRepairOrderId: null,         cuit: null,         dateacct: 2026-07-03 16:59:39,         dateordered: 2026-07-03 16:59:39,         dateprinted: null,         dateprod: null,         datepromised: null,         daterealprod: null,         deliveryrule: null,         deliveryviarule: null,         description: null,         docaction: null,         docstatus: null,         documentno: null,         freightamt: null,         freightcostrule: null,         grandtotal: null,         invoiceAdress: null,         invoicerule: null,         isactive: null,         isapproved: null,         iscreditapproved: null,         isdelivered: null,         isdiscountprinted: null,         isdropship: null,         isexchange: null,         isinvoiced: null,         isprinted: null,         isreactivated: null,         isselected: null,         isselfservice: null,         issotrx: true,         istaxincluded: null,         istpvused: null,         istransferred: null,         manualgeneraldiscount: null,         mAuthorizationchainId: null,         mPricelistId: 1010595,         mShipperId: null,         mWarehouseId: 1010048,         mWarehouseTransferId: null,         nombrecli: null,         nroidentificcliente: null,         oldgrandtotal: null,         payBpartnerId: null,         payLocationId: null,         paymentrule: S,         poreference: null,         posted: null,         priorityrule: null,         processed: null,         processing: null,         programInvoice: null,         refOrderId: null,         repairPriority: null,         repairState: null,         salesrepId: 100,         sendemail: null,         totallines: null,         updated: null,         updatedby: null,         user1Id: null,         user2Id: null,         validto: null,         additionalvalues: null,         referencedvalues: null,     },     lines: [class OrderLine {,         adClientId: null,         adOrgId: 1010053,         cBpartnerId: null,         cBpartnerLocationId: null,         cChargeId: null,         cCurrencyId: null,         checkoutplace: null,         cOrderId: null,         cOrderlineId: null,         cProjectId: null,         created: null,         createdby: null,         cTaxId: null,         cUomId: 100,         datedelivered: null,         dateinvoiced: null,         dateordered: null,         datepromised: null,         description: null,         diffamt: null,         discount: null,         documentdiscountamt: null,         freightamt: null,         isactive: null,         isdescription: null,         line: 10,         linebonusamt: null,         linediscountamt: null,         linenetamt: null,         linetotalamt: null,         manualgeneraldiscountamt: null,         mAttributesetinstanceId: null,         mProductId: 1015400,         mShipperId: null,         mWarehouseId: null,         openmatrix: null,         orderMin: null,         orderPack: null,         priceactual: 120,         pricediff: null,         priceentered: null,         pricelimit: null,         pricelist: null,         pricereception: null,         processed: null,         qtydelivered: null,         qtydiff: null,         qtyentered: null,         qtyinvoiced: null,         qtyordered: 3,         qtyreception: null,         qtyreserved: null,         qtyreturned: null,         qtytransferred: null,         receptionamt: null,         refOrderlineId: null,         salesrepOrigId: null,         updated: null,         updatedby: null,         additionalvalues: null,         referencedvalues: null,     }],     taxes: null, },  
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
--> MOrder. Order updated - TotalLines = 360.00 - GrandTotal = 360.00
--> MOrder. Se trata de un pedido de cliente, actualizar los totales segun importes de lineas
--> MOrder. Order updated - TotalLines = 360.00 - GrandTotal = 360.00
Debe postear inmediatamente=false Estado documento=CO
2026-07-03 16:59:39.959 INFO - OrderController.addOrder: <200 OK OK,1014460,[]>
1014460
2026-07-03 16:59:39.967 INFO - OrderController.retrieveOrder Arg1: 1014460,  
2026-07-03 16:59:40.085 INFO - OrderController.retrieveOrder: <200 OK OK,class OrderDocument {,     header: class Order {,         acceptance: null,         adClientId: 1010016,         addlinesquicker: null,         adOrgId: 1010053,         adOrgTransferId: null,         adOrgtrxId: null,         adUserId: 100,         allowchangepricelist: null,         aut
2026-07-03 16:59:40.092 INFO - OrderController.updateOrder Arg1: -1, Arg2: class Order {,     acceptance: null,     adClientId: null,     addlinesquicker: null,     adOrgId: null,     adOrgTransferId: null,     adOrgtrxId: null,     adUserId: null,     allowchangepricelist: null,     authorizationchainstatus: null,     authorize: null,     billBpartnerId: null,     billLocationId: null,     billUserId: null,     cActivityId: null,     cBpartnerId: null,     cBpartnerLocationId: null,     cCampaignId: null,     cCashlineId: null,     cChargeId: null,     cConversiontypeId: null,     cCurrencyId: null,     cDoctypeId: null,     cDoctypetargetId: null,     chargeamt: null,     cInvoiceOrigId: null,     codigocategoriaiva: null,     copyfrom: null,     cOrderId: null,     cPaymentId: null,     cPaymenttermId: null,     cProjectId: null,     created: null,     createdby: null,     createvendorproductlines: null,     creditrequesttype: null,     cRepairOrderId: null,     cuit: null,     dateacct: null,     dateordered: null,     dateprinted: null,     dateprod: null,     datepromised: null,     daterealprod: null,     deliveryrule: null,     deliveryviarule: null,     description: null,     docaction: null,     docstatus: null,     documentno: -1,     freightamt: null,     freightcostrule: null,     grandtotal: null,     invoiceAdress: null,     invoicerule: null,     isactive: null,     isapproved: null,     iscreditapproved: null,     isdelivered: null,     isdiscountprinted: null,     isdropship: null,     isexchange: null,     isinvoiced: null,     isprinted: null,     isreactivated: null,     isselected: null,     isselfservice: null,     issotrx: null,     istaxincluded: null,     istpvused: null,     istransferred: null,     manualgeneraldiscount: null,     mAuthorizationchainId: null,     mPricelistId: null,     mShipperId: null,     mWarehouseId: null,     mWarehouseTransferId: null,     nombrecli: null,     nroidentificcliente: null,     oldgrandtotal: null,     payBpartnerId: null,     payLocationId: null,     paymentrule: null,     poreference: null,     posted: null,     priorityrule: null,     processed: null,     processing: null,     programInvoice: null,     refOrderId: null,     repairPriority: null,     repairState: null,     salesrepId: null,     sendemail: null,     totallines: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     validto: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:40.095 INFO - OrderController.updateOrder: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:40.101 INFO - OrderController.updateOrder Arg1: 1014460, Arg2: class Order {,     acceptance: null,     adClientId: null,     addlinesquicker: null,     adOrgId: null,     adOrgTransferId: null,     adOrgtrxId: null,     adUserId: null,     allowchangepricelist: null,     authorizationchainstatus: null,     authorize: null,     billBpartnerId: null,     billLocationId: null,     billUserId: null,     cActivityId: null,     cBpartnerId: null,     cBpartnerLocationId: null,     cCampaignId: null,     cCashlineId: null,     cChargeId: null,     cConversiontypeId: null,     cCurrencyId: null,     cDoctypeId: null,     cDoctypetargetId: null,     chargeamt: null,     cInvoiceOrigId: null,     codigocategoriaiva: null,     copyfrom: null,     cOrderId: null,     cPaymentId: null,     cPaymenttermId: null,     cProjectId: null,     created: null,     createdby: null,     createvendorproductlines: null,     creditrequesttype: null,     cRepairOrderId: null,     cuit: null,     dateacct: null,     dateordered: null,     dateprinted: null,     dateprod: null,     datepromised: null,     daterealprod: null,     deliveryrule: null,     deliveryviarule: null,     description: null,     docaction: null,     docstatus: null,     documentno: null,     freightamt: null,     freightcostrule: null,     grandtotal: null,     invoiceAdress: null,     invoicerule: null,     isactive: null,     isapproved: null,     iscreditapproved: null,     isdelivered: null,     isdiscountprinted: null,     isdropship: null,     isexchange: null,     isinvoiced: null,     isprinted: null,     isreactivated: null,     isselected: null,     isselfservice: null,     issotrx: null,     istaxincluded: null,     istpvused: null,     istransferred: null,     manualgeneraldiscount: null,     mAuthorizationchainId: null,     mPricelistId: null,     mShipperId: null,     mWarehouseId: null,     mWarehouseTransferId: null,     nombrecli: null,     nroidentificcliente: null,     oldgrandtotal: null,     payBpartnerId: null,     payLocationId: null,     paymentrule: null,     poreference: null,     posted: null,     priorityrule: null,     processed: null,     processing: null,     programInvoice: null,     refOrderId: null,     repairPriority: null,     repairState: null,     salesrepId: null,     sendemail: null,     totallines: null,     updated: null,     updatedby: null,     user1Id: null,     user2Id: null,     validto: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:40.126 INFO - OrderController.updateOrder: <200 OK OK,[]>
2026-07-03 16:59:40.130 INFO - OrderController.deleteOrder Arg1: 1014460,  
2026-07-03 16:59:40.135 INFO - OrderController.deleteOrder: <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:40.140 INFO - OrderController.processOrder Arg1: 1014460, Arg2: VO,  
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
2026-07-03 16:59:40.276 INFO - OrderController.processOrder: <200 OK OK,@M_InOut_ID@: - @C_Invoice_ID@:,[]>
2026-07-03 16:59:40.280 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:40.283 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4MCwiZXhwIjoyNjQ3MDExNTgwfQ.SK-ig1bm08QowyLiOUtUaPjWW4pifh9Ig0xreA
2026-07-03 16:59:40.288 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:40.288 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:40.293 INFO - OrderController.deleteOrder Arg1: 1003820,  
2026-07-03 16:59:40.298 INFO - OrderController.deleteOrder: <401 UNAUTHORIZED Unauthorized,Token de acceso limitado a compañía 1010016,[]>
2026-07-03 16:59:40.304 INFO - OrderController.deleteOrder Arg1: -1,  
2026-07-03 16:59:40.307 INFO - OrderController.deleteOrder: <404 NOT_FOUND Not Found,[]>