OrderExtendedIntegrationTests

10

tests

0

failures

0

ignored

0.934s

duration

100%

successful

Tests

Test Duration Result
createDocumentShouldReturnOK() 0.570s passed
deleteDocumentWithWrongTokenShouldReturnKO() 0.004s passed
deleteInexistentDocumentShouldReturnKO() 0.009s passed
deleteProcessedDocumentShouldReturnKO() 0.011s passed
modifyDocumentShouldReturnOK() 0.032s passed
modifyInexistentDocumentShouldReturnKO() 0.011s passed
newTokenWithCorrectCredentialsShouldReturnOK() 0.007s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.005s passed
retrieveCreatedDocumentShouldReturnOK() 0.163s passed
voidCompletedDocumentShouldReturnOK() 0.122s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.OrderExtendedIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.OrderExtendedIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.OrderExtendedIntegrationTests]: OrderExtendedIntegrationTests 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.OrderExtendedIntegrationTests
- 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@183ef89a, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2792c28, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@6fa7ce4, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@351e86b2, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@5a8b42a3, org.springframework.test.context.support.DirtiesContextTestExecutionListener@11582db6, org.springframework.test.context.event.EventPublishingTestExecutionListener@44106e25, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@57a5b03, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@5649f55, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@558127d2, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@12270a01, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@4552f905, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@646d58cd]
2026-07-03 16:59:38.406 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:38.408 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk3OCwiZXhwIjoyNjQ3MDExNTc4fQ.RwBAxq-NvKv38LYZV7FHcwXUTLCacbe2HPUxBx
2026-07-03 16:59:38.451 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:38,         dateordered: 2026-07-03 16:59:38,         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.001 INFO - OrderController.addOrder: <200 OK OK,1014459,[]>
1014459
2026-07-03 16:59:39.008 INFO - OrderController.retrieveOrder Arg1: 1014459,  
2026-07-03 16:59:39.161 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:39.173 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: 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:39.177 INFO - OrderController.updateOrder: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:39.183 INFO - OrderController.updateOrder Arg1: 1014459, 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:39.209 INFO - OrderController.updateOrder: <200 OK OK,[]>
2026-07-03 16:59:39.215 INFO - OrderController.deleteOrder Arg1: 1014459,  
2026-07-03 16:59:39.220 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:39.227 INFO - OrderController.processOrder Arg1: 1014459, Arg2: VO,  
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
====> DiscountCalculator. calculatePrice.hasBPartnerDiscount()=false
2026-07-03 16:59:39.342 INFO - OrderController.processOrder: <200 OK OK,@M_InOut_ID@: - @C_Invoice_ID@:,[]>
2026-07-03 16:59:39.348 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.350 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk3OSwiZXhwIjoyNjQ3MDExNTc5fQ._2id9xAVTTQJtsiNeyCiNCyrgoCsObBtrjWqxL
2026-07-03 16:59:39.355 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:39.356 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:39.361 INFO - OrderController.deleteOrder Arg1: -1,  
2026-07-03 16:59:39.365 INFO - OrderController.deleteOrder: <404 NOT_FOUND Not Found,[]>