OrderLineIntegrationTests

3

tests

0

failures

0

ignored

0.241s

duration

100%

successful

Tests

Test Duration Result
createOrderLineWithoutProductShouldReturnKO() 0.222s passed
newTokenWithCorrectCredentialsShouldReturnOK() 0.010s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.009s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.OrderLineIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.OrderLineIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.OrderLineIntegrationTests]: OrderLineIntegrationTests 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.OrderLineIntegrationTests
- 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@227b9277, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4c4215d7, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@b56d8a7, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@13f36d75, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6de5ad56, org.springframework.test.context.support.DirtiesContextTestExecutionListener@3155f190, org.springframework.test.context.event.EventPublishingTestExecutionListener@cfb94fd, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@4ebd8d2, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@44a44a04, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@5a63fa71, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@a6fc1bc, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@5018b56b, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@360a3106]

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.7.6)

- Starting OrderLineIntegrationTests using Java 1.8.0_121 on sd-2288486-l.dattaweb.com with PID 1371 (started by root in /var/jenkins_home/workspace/Libertya-Core-Multibranch_dev/lyrestapi)
- No active profile set, falling back to 1 default profile: "default"
- Tomcat initialized with port(s): 0 (http)
- Root WebApplicationContext: initialization completed in 409 ms
- Cannot find template location: classpath:/templates/ (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf.check-template-location=false)
- Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@5ae16aa, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@344a065a, org.springframework.security.web.context.SecurityContextPersistenceFilter@7836c79, org.springframework.security.web.header.HeaderWriterFilter@1f6d7e7c, org.springframework.security.web.authentication.logout.LogoutFilter@30cb223b, org.libertya.api.security.JWTAuthorizationFilter@637d111d, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@152035eb, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@76105ac0, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@3051e476, org.springframework.security.web.session.SessionManagementFilter@20518250, org.springframework.security.web.access.ExceptionTranslationFilter@26b3fe8, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@6719f206]
- Exposing 3 endpoint(s) beneath base path '/monitor'
- Tomcat started on port(s): 44122 (http) with context path ''
- Started OrderLineIntegrationTests in 1.53 seconds (JVM running for 24.537)
- Initializing Servlet 'dispatcherServlet'
- Completed initialization in 1 ms
2026-07-03 16:59:41.872 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:44122, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:41.875 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4MSwiZXhwIjoyNjQ3MDExNTgxfQ.YHaWJV9-P_bj0PvQvIQlWGRLjKXp7aonveZIGk
2026-07-03 16:59:41.880 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:44122, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:41.883 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4MSwiZXhwIjoyNjQ3MDExNTgxfQ.YHaWJV9-P_bj0PvQvIQlWGRLjKXp7aonveZIGk
2026-07-03 16:59:41.891 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, content-length=0, host=localhost:44122, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:41.892 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:41.906 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: 1012145,         billLocationId: 1012158,         billUserId: null,         cActivityId: null,         cBpartnerId: 1012145,         cBpartnerLocationId: 1012158,         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:41,         dateordered: 2026-07-03 16:59:41,         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: null,     taxes: null, },  
2026-07-03 16:59:42.093 INFO - OrderController.addOrder: <200 OK OK,1014461,[]>
2026-07-03 16:59:42.100 INFO - OrderLineController.addOrderLine Arg1: class OrderLine {,     adClientId: 1010016,     adOrgId: 1010053,     cBpartnerId: null,     cBpartnerLocationId: null,     cChargeId: null,     cCurrencyId: 118,     checkoutplace: null,     cOrderId: 1014461,     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: null,     mShipperId: null,     mWarehouseId: null,     openmatrix: null,     orderMin: null,     orderPack: null,     priceactual: 100,     pricediff: null,     priceentered: 100,     pricelimit: null,     pricelist: 100,     pricereception: null,     processed: null,     qtydelivered: null,     qtydiff: null,     qtyentered: 1,     qtyinvoiced: null,     qtyordered: 1,     qtyreception: null,     qtyreserved: null,     qtyreturned: null,     qtytransferred: null,     receptionamt: null,     refOrderlineId: null,     salesrepOrigId: null,     updated: null,     updatedby: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:42.115 INFO - OrderLineController.addOrderLine: <409 CONFLICT Conflict,Rellene los campos obligatorios: : Artículo,[]>