ProductCategoriesIntegrationTests

10

tests

0

failures

0

ignored

0.213s

duration

100%

successful

Tests

Test Duration Result
createMaestroShouldReturnOK() 0.066s passed
deleteInexistentMaestroShouldReturnKO() 0.008s passed
deleteMaestroShouldReturnOK() 0.064s passed
deleteMaestroWithCompanyMismatchShouldReturnKO() 0.010s passed
deleteMaestroWithWrongTokenShouldReturnKO() 0.003s passed
modifyInexistentMaestroShouldReturnKO() 0.008s passed
modifyMaestroShouldReturnOK() 0.020s passed
newTokenWithCorrectCredentialsShouldReturnOK() 0.007s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.005s passed
retrieveCreatedMaestroShouldReturnOK() 0.022s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.ProductCategoriesIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.ProductCategoriesIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.ProductCategoriesIntegrationTests]: ProductCategoriesIntegrationTests 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.ProductCategoriesIntegrationTests
- 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@4c8a9266, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@63ad5fe7, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@3e73f5e7, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@495bc9e7, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@51da7b08, org.springframework.test.context.support.DirtiesContextTestExecutionListener@580154b3, org.springframework.test.context.event.EventPublishingTestExecutionListener@79fc4e99, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@6e7fa4b0, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@6c7f804c, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3e89f5bc, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@259aec72, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@36d39655, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@26be0d23]
2026-07-03 16:59:45.850 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:45.853 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4NSwiZXhwIjoyNjQ3MDExNTg1fQ.7tuCsB8U2hnZ06bw1Fju1o8RNU1M0fHwuEr5R1
2026-07-03 16:59:45.860 INFO - ProductCategoriesController.addProductCategory Arg1: class ProductCategories {,     aAssetGroupId: null,     adClientId: 1010016,     adComponentobjectuid: null,     adOrgId: 1010053,     adPrintcolorId: null,     amortizationperc: 0,     created: null,     createdby: null,     description: null,     isactive: null,     isdefault: false,     isselfservice: true,     mmpolicy: F,     mProductCategoryId: null,     mProductGamasId: null,     name: Prueba,     plannedmargin: 0,     updated: null,     updatedby: null,     value: Prueba,     yearlife: 0,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:45.918 INFO - ProductCategoriesController.addProductCategory: <200 OK OK,1010562,[]>
1010562
2026-07-03 16:59:45.924 INFO - ProductCategoriesController.retrieveProductCategory Arg1: 1010562,  
2026-07-03 16:59:45.939 INFO - ProductCategoriesController.retrieveProductCategory: <200 OK OK,class ProductCategories {,     aAssetGroupId: null,     adClientId: 1010016,     adComponentobjectuid: CORE-M_Product_Category-20260703165945885-169506,     adOrgId: 1010053,     adPrintcolorId: null,     amortizationperc: 0.00,     created: 2026-07-03 16:59:45.870383,     createdby: 1010
2026-07-03 16:59:45.946 INFO - ProductCategoriesController.updateProductCategory Arg1: 1010562, Arg2: class ProductCategories {,     aAssetGroupId: null,     adClientId: null,     adComponentobjectuid: null,     adOrgId: null,     adPrintcolorId: null,     amortizationperc: null,     created: null,     createdby: null,     description: null,     isactive: null,     isdefault: null,     isselfservice: null,     mmpolicy: null,     mProductCategoryId: null,     mProductGamasId: null,     name: null,     plannedmargin: null,     updated: null,     updatedby: null,     value: null,     yearlife: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:45.960 INFO - ProductCategoriesController.updateProductCategory: <200 OK OK,[]>
2026-07-03 16:59:45.965 INFO - ProductCategoriesController.updateProductCategory Arg1: -1, Arg2: class ProductCategories {,     aAssetGroupId: null,     adClientId: null,     adComponentobjectuid: null,     adOrgId: null,     adPrintcolorId: null,     amortizationperc: null,     created: null,     createdby: null,     description: null,     isactive: null,     isdefault: null,     isselfservice: null,     mmpolicy: null,     mProductCategoryId: null,     mProductGamasId: null,     name: null,     plannedmargin: null,     updated: null,     updatedby: null,     value: null,     yearlife: null,     additionalvalues: null,     referencedvalues: null, },  
2026-07-03 16:59:45.968 INFO - ProductCategoriesController.updateProductCategory: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:45.973 INFO - ProductCategoriesController.deleteProductCategory Arg1: 1010562,  
2026-07-03 16:59:46.032 INFO - ProductCategoriesController.deleteProductCategory: <204 NO_CONTENT No Content,[]>
2026-07-03 16:59:46.037 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.039 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4NiwiZXhwIjoyNjQ3MDExNTg2fQ.KazCMGRQqTxq3FvJ3JRWbDdD_yj6i5M12r5hcT
2026-07-03 16:59:46.043 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:46.044 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:46.054 INFO - ProductCategoriesController.deleteProductCategory Arg1: -1,  
2026-07-03 16:59:46.057 INFO - ProductCategoriesController.deleteProductCategory: <404 NOT_FOUND Not Found,[]>
2026-07-03 16:59:46.063 INFO - ProductCategoriesController.deleteProductCategory Arg1: 1000096,  
2026-07-03 16:59:46.068 INFO - ProductCategoriesController.deleteProductCategory: <401 UNAUTHORIZED Unauthorized,Token de acceso limitado a compañía 1010016,[]>