test_class.declarator: DEFAULT_NAME = "AAAAAAAAAA"
test_class.modifier: private static final
test_class.original_string: private static final String DEFAULT_NAME = "AAAAAAAAAA";
test_class.type: String
test_class.var_name: DEFAULT_NAME
test_class.declarator: UPDATED_NAME = "BBBBBBBBBB"
test_class.modifier: private static final
test_class.original_string: private static final String UPDATED_NAME = "BBBBBBBBBB";
test_class.type: String
test_class.var_name: UPDATED_NAME
test_class.declarator: DEFAULT_DESCRIPTION = "AAAAAAAAAA"
test_class.modifier: private static final
test_class.original_string: private static final String DEFAULT_DESCRIPTION = "AAAAAAAAAA";
test_class.type: String
test_class.var_name: DEFAULT_DESCRIPTION
test_class.declarator: UPDATED_DESCRIPTION = "BBBBBBBBBB"
test_class.modifier: private static final
test_class.original_string: private static final String UPDATED_DESCRIPTION = "BBBBBBBBBB";
test_class.type: String
test_class.var_name: UPDATED_DESCRIPTION
test_class.declarator: DEFAULT_PRICE = BigDecimal.TEN
test_class.modifier: private static final
test_class.original_string: private static final BigDecimal DEFAULT_PRICE = BigDecimal.TEN;
test_class.type: BigDecimal
test_class.var_name: DEFAULT_PRICE
test_class.declarator: UPDATED_PRICE = BigDecimal.ONE
test_class.modifier: private static final
test_class.original_string: private static final BigDecimal UPDATED_PRICE = BigDecimal.ONE;
test_class.type: BigDecimal
test_class.var_name: UPDATED_PRICE
test_class.declarator: DEFAULT_QUANTITY = 10
test_class.modifier: private static final
test_class.original_string: private static final int DEFAULT_QUANTITY = 10;
test_class.type: int
test_class.var_name: DEFAULT_QUANTITY
test_class.declarator: UPDATED_QUANTITY = 2
test_class.modifier: private static final
test_class.original_string: private static final int UPDATED_QUANTITY = 2;
test_class.type: int
test_class.var_name: UPDATED_QUANTITY
test_class.declarator: DEFAULT_STATUS = ProductStatus.AVAILABLE
test_class.modifier: private static final
test_class.original_string: private static final ProductStatus DEFAULT_STATUS = ProductStatus.AVAILABLE;
test_class.type: ProductStatus
test_class.var_name: DEFAULT_STATUS
test_class.declarator: UPDATED_STATUS = ProductStatus.DISCONTINUED
test_class.modifier: private static final
test_class.original_string: private static final ProductStatus UPDATED_STATUS = ProductStatus.DISCONTINUED;
test_class.type: ProductStatus
test_class.var_name: UPDATED_STATUS
test_class.declarator: DEFAULT_CATEGORY = new Category("AAAAAAAAAA")
test_class.modifier: private static
test_class.original_string: private static Category DEFAULT_CATEGORY = new Category("AAAAAAAAAA");
test_class.type: Category
test_class.var_name: DEFAULT_CATEGORY
test_class.declarator: UPDATED_CATEGORY = new Category("BBBBBBBBBB")
test_class.modifier: private static
test_class.original_string: private static Category UPDATED_CATEGORY = new Category("BBBBBBBBBB");
test_class.type: Category
test_class.var_name: UPDATED_CATEGORY
test_class.declarator: productRepository
test_class.modifier: @Inject
test_class.original_string: @Inject
      ProductRepository productRepository;
test_class.type: ProductRepository
test_class.var_name: productRepository
test_class.declarator: categoryRepository
test_class.modifier: @Inject
test_class.original_string: @Inject
      CategoryRepository categoryRepository;
test_class.type: CategoryRepository
test_class.var_name: categoryRepository
test_class.declarator: product
test_class.modifier: private
test_class.original_string: private Product product;
test_class.type: Product
test_class.var_name: product
test_class.file: product-service/src/test/java/io/maxilog/web/rest/ProductResourceTest.java
test_class.identifier: ProductResourceTest
test_case.body: @Test
      public void createProductWithExistingId() {
  
          int databaseSizeBeforeCreate = productRepository.findAll().size();
          product.setId(10L);
  
          given()
                  .contentType(JSON)
                  .body(product)
                  .when().post("/api/products")
                  .then()
                  .statusCode(400);
  
          // Validate the Product in the database
          List<Product> productList = productRepository.findAll();
          Assertions.assertEquals(productList.size(), databaseSizeBeforeCreate);
      }
test_case.class_method_signature: ProductResourceTest.createProductWithExistingId()
test_case.full_signature: @Test public void createProductWithExistingId()
test_case.identifier: createProductWithExistingId
test_case.invocations: size findAll setId statusCode then post when body contentType given findAll assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void createProductWithExistingId()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(ProductResource.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(ProductResource.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: productService
focal_class.modifier: private final
focal_class.original_string: private final ProductService productService;
focal_class.type: ProductService
focal_class.var_name: productService
focal_class.file: product-service/src/main/java/io/maxilog/web/rest/ProductResource.java
focal_class.identifier: ProductResource
focal_class.class_method_signature: ProductResource.ProductResource(ProductService productService)
focal_class.full_signature: @Inject public  ProductResource(ProductService productService)
focal_class.identifier: ProductResource
focal_class.modifiers: @Inject public
focal_class.parameters: (ProductService productService)
focal_class.signature:  ProductResource(ProductService productService)
focal_class.class_method_signature: ProductResource.findAll(@BeanParam PageableImpl pageable)
focal_class.full_signature: @GET @Path("/products") public Response findAll(@BeanParam PageableImpl pageable)
focal_class.identifier: findAll
focal_class.modifiers: @GET @Path("/products") public
focal_class.parameters: (@BeanParam PageableImpl pageable)
focal_class.return: Response
focal_class.signature: Response findAll(@BeanParam PageableImpl pageable)
focal_class.class_method_signature: ProductResource.findAllByProductName(@QueryParam("name") String name, @BeanParam PageableImpl pageable)
focal_class.full_signature: @GET @Path("/products/search") public Page<ProductDTO> findAllByProductName(@QueryParam("name") String name, @BeanParam PageableImpl pageable)
focal_class.identifier: findAllByProductName
focal_class.modifiers: @GET @Path("/products/search") public
focal_class.parameters: (@QueryParam("name") String name, @BeanParam PageableImpl pageable)
focal_class.return: Page<ProductDTO>
focal_class.signature: Page<ProductDTO> findAllByProductName(@QueryParam("name") String name, @BeanParam PageableImpl pageable)
focal_class.class_method_signature: ProductResource.findById(@PathParam("id") long id)
focal_class.full_signature: @GET @Path("/products/{id}") public Response findById(@PathParam("id") long id)
focal_class.identifier: findById
focal_class.modifiers: @GET @Path("/products/{id}") public
focal_class.parameters: (@PathParam("id") long id)
focal_class.return: Response
focal_class.signature: Response findById(@PathParam("id") long id)
focal_class.class_method_signature: ProductResource.create(ProductDTO productDTO)
focal_class.full_signature: @POST @Path("/products") public Response create(ProductDTO productDTO)
focal_class.identifier: create
focal_class.modifiers: @POST @Path("/products") public
focal_class.parameters: (ProductDTO productDTO)
focal_class.return: Response
focal_class.signature: Response create(ProductDTO productDTO)
focal_class.class_method_signature: ProductResource.update(ProductDTO productDTO)
focal_class.full_signature: @PUT @Path("/products") public Response update(ProductDTO productDTO)
focal_class.identifier: update
focal_class.modifiers: @PUT @Path("/products") public
focal_class.parameters: (ProductDTO productDTO)
focal_class.return: Response
focal_class.signature: Response update(ProductDTO productDTO)
focal_class.class_method_signature: ProductResource.delete(@PathParam("id") long id)
focal_class.full_signature: @DELETE @Path("/products/{id}") public Response delete(@PathParam("id") long id)
focal_class.identifier: delete
focal_class.modifiers: @DELETE @Path("/products/{id}") public
focal_class.parameters: (@PathParam("id") long id)
focal_class.return: Response
focal_class.signature: Response delete(@PathParam("id") long id)
focal_method.body: @GET
      @Path("/products")
      public Response findAll(@BeanParam PageableImpl pageable) {
          LOGGER.debug("REST request to get all Products");
          return Response.ok().entity(productService.findAll(pageable)).build();
      }
focal_method.class_method_signature: ProductResource.findAll(@BeanParam PageableImpl pageable)
focal_method.full_signature: @GET @Path("/products") public Response findAll(@BeanParam PageableImpl pageable)
focal_method.identifier: findAll
focal_method.invocations: debug build entity ok findAll
focal_method.modifiers: @GET @Path("/products") public
focal_method.parameters: (@BeanParam PageableImpl pageable)
focal_method.return: Response
focal_method.signature: Response findAll(@BeanParam PageableImpl pageable)