ProductIntegrationTests

10

tests

0

failures

0

ignored

0.629s

duration

100%

successful

Tests

Test Duration Result
createProductShouldReturnOK() 0.386s passed
deleteInexistentProductShouldReturnKO() 0.008s passed
deleteProductShouldReturnOK() 0.140s passed
deleteProductWithCompanyMismatchShouldReturnKO() 0.009s passed
deleteProductWithWrongTokenShouldReturnKO() 0.004s passed
modifyInexistentProductShouldReturnKO() 0.009s passed
modifyProductShouldReturnOK() 0.024s passed
newTokenWithCorrectCredentialsShouldReturnOK() 0.006s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.005s passed
retrieveCreatedProductShouldReturnOK() 0.038s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.ProductIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.ProductIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.ProductIntegrationTests]: ProductIntegrationTests 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.ProductIntegrationTests
- 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@5265a8dd, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@5af4328e, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@5535e9, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@71eaef6a, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@e3692ca, org.springframework.test.context.support.DirtiesContextTestExecutionListener@75adb1c0, org.springframework.test.context.event.EventPublishingTestExecutionListener@5cfe28e1, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@7ac90dab, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@40d370fa, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@5868ea91, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@757c685d, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@476a970c, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@1ce57bbb]
2026-07-03 16:59:46.471 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:46.473 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4NiwiZXhwIjoyNjQ3MDExNTg2fQ.KazCMGRQqTxq3FvJ3JRWbDdD_yj6i5M12r5hcT
2026-07-03 16:59:46.483 INFO - ProductController.addProduct Arg1: class Product {,     adClientId: null,     adComponentobjectuid: null,     adOrgId: null,     amortizationperc: null,     checkoutplace: null,     classification: null,     commonRef: null,     created: null,     createdby: null,     cRevenuerecognitionId: null,     cSubscriptiontypeId: null,     cTaxcategoryId: 1010048,     cUomId: 100,     deliverytimePromised: null,     description: null,     descriptionurl: null,     discontinued: null,     discontinuedby: null,     documentnote: null,     guaranteedays: null,     guaranteedaysmin: null,     help: null,     imageurl: null,     isactive: null,     isbom: null,     isdropship: null,     ishelp: null,     isinventoried: null,     isinvoiceprintdetails: null,     ispicklistprintdetails: null,     ispurchased: null,     isselfservice: null,     issold: null,     isstocked: null,     issummary: null,     istoformule: null,     isverified: null,     iswebstorefeatured: null,     lowlevel: null,     lyeicodigomtx: null,     lyeiunidadesmtx: null,     marketingblocked: null,     marketingblockeddescr: null,     mAttributesetId: null,     mAttributesetinstanceId: null,     mFreightcategoryId: null,     mIntrastatcodeId: null,     mLocatorId: null,     mProductCategoryId: 1010146,     mProductFamilyId: null,     mProductId: null,     name: ART_3201354622111870,     processing: null,     producttype: null,     rMailtextId: null,     salesOrderMin: null,     salesOrderPack: null,     salesrepId: null,     sExpensetypeId: null,     shelfdepth: null,     shelfheight: null,     shelfwidth: null,     sku: null,     sResourceId: null,     unitsperpallet: null,     upc: null,     updated: null,     updatedby: null,     value: ART_3201354622103060,     versionno: null,     volume: null,     weight: null,     yearlife: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:46.857 INFO - ProductController.addProduct: <200 OK OK,1015840,[]>
1015840
2026-07-03 16:59:46.863 INFO - ProductController.retrieveProduct Arg1: 1015840,  
2026-07-03 16:59:46.894 INFO - ProductController.retrieveProduct: <200 OK OK,class Product {,     adClientId: 1010016,     adComponentobjectuid: CORE-M_Product-20260703165946594-758521,     adOrgId: 1010053,     amortizationperc: 0.00,     checkoutplace: B,     classification: null,     commonRef: null,     created: 2026-07-03 16:59:46.574863,     createdby: 10107
2026-07-03 16:59:46.902 INFO - ProductController.updateProduct Arg1: 1015840, Arg2: class Product {,     adClientId: null,     adComponentobjectuid: null,     adOrgId: null,     amortizationperc: null,     checkoutplace: null,     classification: null,     commonRef: null,     created: null,     createdby: null,     cRevenuerecognitionId: null,     cSubscriptiontypeId: null,     cTaxcategoryId: null,     cUomId: null,     deliverytimePromised: null,     description: null,     descriptionurl: null,     discontinued: null,     discontinuedby: null,     documentnote: null,     guaranteedays: null,     guaranteedaysmin: null,     help: null,     imageurl: null,     isactive: null,     isbom: null,     isdropship: null,     ishelp: null,     isinventoried: null,     isinvoiceprintdetails: null,     ispicklistprintdetails: null,     ispurchased: null,     isselfservice: null,     issold: null,     isstocked: null,     issummary: null,     istoformule: null,     isverified: null,     iswebstorefeatured: null,     lowlevel: null,     lyeicodigomtx: null,     lyeiunidadesmtx: null,     marketingblocked: null,     marketingblockeddescr: null,     mAttributesetId: null,     mAttributesetinstanceId: null,     mFreightcategoryId: null,     mIntrastatcodeId: null,     mLocatorId: null,     mProductCategoryId: null,     mProductFamilyId: null,     mProductId: null,     name: null,     processing: null,     producttype: null,     rMailtextId: null,     salesOrderMin: null,     salesOrderPack: null,     salesrepId: null,     sExpensetypeId: null,     shelfdepth: null,     shelfheight: null,     shelfwidth: null,     sku: null,     sResourceId: null,     unitsperpallet: null,     upc: null,     updated: null,     updatedby: null,     value: null,     versionno: null,     volume: null,     weight: null,     yearlife: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:46.919 INFO - ProductController.updateProduct: <200 OK OK,[]>
2026-07-03 16:59:46.925 INFO - ProductController.updateProduct Arg1: -1, Arg2: class Product {,     adClientId: null,     adComponentobjectuid: null,     adOrgId: null,     amortizationperc: null,     checkoutplace: null,     classification: null,     commonRef: null,     created: null,     createdby: null,     cRevenuerecognitionId: null,     cSubscriptiontypeId: null,     cTaxcategoryId: null,     cUomId: null,     deliverytimePromised: null,     description: null,     descriptionurl: null,     discontinued: null,     discontinuedby: null,     documentnote: null,     guaranteedays: null,     guaranteedaysmin: null,     help: null,     imageurl: null,     isactive: null,     isbom: null,     isdropship: null,     ishelp: null,     isinventoried: null,     isinvoiceprintdetails: null,     ispicklistprintdetails: null,     ispurchased: null,     isselfservice: null,     issold: null,     isstocked: null,     issummary: null,     istoformule: null,     isverified: null,     iswebstorefeatured: null,     lowlevel: null,     lyeicodigomtx: null,     lyeiunidadesmtx: null,     marketingblocked: null,     marketingblockeddescr: null,     mAttributesetId: null,     mAttributesetinstanceId: null,     mFreightcategoryId: null,     mIntrastatcodeId: null,     mLocatorId: null,     mProductCategoryId: null,     mProductFamilyId: null,     mProductId: null,     name: null,     processing: null,     producttype: null,     rMailtextId: null,     salesOrderMin: null,     salesOrderPack: null,     salesrepId: null,     sExpensetypeId: null,     shelfdepth: null,     shelfheight: null,     shelfwidth: null,     sku: null,     sResourceId: null,     unitsperpallet: null,     upc: null,     updated: null,     updatedby: null,     value: null,     versionno: null,     volume: null,     weight: null,     yearlife: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:46.929 INFO - ProductController.updateProduct: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:46.934 INFO - ProductController.deleteProduct Arg1: 1015840,  
2026-07-03 16:59:47.069 INFO - ProductController.deleteProduct: <204 NO_CONTENT No Content,[]>
2026-07-03 16:59:47.073 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:47.075 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4NywiZXhwIjoyNjQ3MDExNTg3fQ.S325TAVCc_R5zCabnD-4l8YLOmf8dgwA5eGWrv
2026-07-03 16:59:47.079 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:47.080 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:47.085 INFO - ProductController.deleteProduct Arg1: 1003922,  
2026-07-03 16:59:47.089 INFO - ProductController.deleteProduct: <401 UNAUTHORIZED Unauthorized,Token de acceso limitado a compañía 1010016,[]>
2026-07-03 16:59:47.098 INFO - ProductController.deleteProduct Arg1: -1,  
2026-07-03 16:59:47.102 INFO - ProductController.deleteProduct: <404 NOT_FOUND Not Found,[]>