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: categoryRepository
test_class.modifier: @Inject
test_class.original_string: @Inject
      CategoryRepository categoryRepository;
test_class.type: CategoryRepository
test_class.var_name: categoryRepository
test_class.declarator: category
test_class.modifier: private
test_class.original_string: private Category category;
test_class.type: Category
test_class.var_name: category
test_class.file: product-service/src/test/java/io/maxilog/web/rest/CategoryResourceTest.java
test_class.identifier: CategoryResourceTest
test_case.body: @Test
      public void createCategory() {
  
          int databaseSizeBeforeCreate = Iterators.size(categoryRepository.findAll().iterator());
  
          given()
                  .contentType(JSON)
                  .body(this.category)
                  .when().post("/api/categories")
                  .then()
                  .statusCode(201);
  
          // Validate the Category in the database
          List<Category> categoryList = categoryRepository.findAll();
          Assertions.assertEquals(categoryList.size(), databaseSizeBeforeCreate + 1);
          Category category = categoryList.get(categoryList.size() - 1);
          Assertions.assertEquals(category.getName(), DEFAULT_NAME);
      }
test_case.class_method_signature: CategoryResourceTest.createCategory()
test_case.full_signature: @Test public void createCategory()
test_case.identifier: createCategory
test_case.invocations: size iterator findAll statusCode then post when body contentType given findAll assertEquals size get size assertEquals getName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void createCategory()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(CategoryResource.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(CategoryResource.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: categoryService
focal_class.modifier: private final
focal_class.original_string: private final CategoryService categoryService;
focal_class.type: CategoryService
focal_class.var_name: categoryService
focal_class.file: product-service/src/main/java/io/maxilog/web/rest/CategoryResource.java
focal_class.identifier: CategoryResource
focal_class.class_method_signature: CategoryResource.CategoryResource(CategoryService categoryService)
focal_class.full_signature: @Inject public  CategoryResource(CategoryService categoryService)
focal_class.identifier: CategoryResource
focal_class.modifiers: @Inject public
focal_class.parameters: (CategoryService categoryService)
focal_class.signature:  CategoryResource(CategoryService categoryService)
focal_class.class_method_signature: CategoryResource.findAll(@BeanParam PageableImpl pageable)
focal_class.full_signature: @GET @Path("/categories") public Response findAll(@BeanParam PageableImpl pageable)
focal_class.identifier: findAll
focal_class.modifiers: @GET @Path("/categories") public
focal_class.parameters: (@BeanParam PageableImpl pageable)
focal_class.return: Response
focal_class.signature: Response findAll(@BeanParam PageableImpl pageable)
focal_class.class_method_signature: CategoryResource.findAllByCategoryName(@QueryParam("name") String fullName)
focal_class.full_signature: @GET @Path("/categories/search") public List<CategoryDTO> findAllByCategoryName(@QueryParam("name") String fullName)
focal_class.identifier: findAllByCategoryName
focal_class.modifiers: @GET @Path("/categories/search") public
focal_class.parameters: (@QueryParam("name") String fullName)
focal_class.return: List<CategoryDTO>
focal_class.signature: List<CategoryDTO> findAllByCategoryName(@QueryParam("name") String fullName)
focal_class.class_method_signature: CategoryResource.findById(@PathParam("id") long id)
focal_class.full_signature: @GET @Path("/categories/{id}") public Response findById(@PathParam("id") long id)
focal_class.identifier: findById
focal_class.modifiers: @GET @Path("/categories/{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: CategoryResource.create(CategoryDTO categoryDTO)
focal_class.full_signature: @POST @Path("/categories") public Response create(CategoryDTO categoryDTO)
focal_class.identifier: create
focal_class.modifiers: @POST @Path("/categories") public
focal_class.parameters: (CategoryDTO categoryDTO)
focal_class.return: Response
focal_class.signature: Response create(CategoryDTO categoryDTO)
focal_class.class_method_signature: CategoryResource.update(CategoryDTO categoryDTO)
focal_class.full_signature: @PUT @Path("/categories") public Response update(CategoryDTO categoryDTO)
focal_class.identifier: update
focal_class.modifiers: @PUT @Path("/categories") public
focal_class.parameters: (CategoryDTO categoryDTO)
focal_class.return: Response
focal_class.signature: Response update(CategoryDTO categoryDTO)
focal_class.class_method_signature: CategoryResource.delete(@PathParam("id") long id)
focal_class.full_signature: @DELETE @Path("/categories/{id}") public Response delete(@PathParam("id") long id)
focal_class.identifier: delete
focal_class.modifiers: @DELETE @Path("/categories/{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("/categories")
      public Response findAll(@BeanParam PageableImpl pageable) {
          LOGGER.debug("REST request to get all Categories");
          return Response.ok().entity(categoryService.findAll(pageable)).build();
      }
focal_method.class_method_signature: CategoryResource.findAll(@BeanParam PageableImpl pageable)
focal_method.full_signature: @GET @Path("/categories") public Response findAll(@BeanParam PageableImpl pageable)
focal_method.identifier: findAll
focal_method.invocations: debug build entity ok findAll
focal_method.modifiers: @GET @Path("/categories") public
focal_method.parameters: (@BeanParam PageableImpl pageable)
focal_method.return: Response
focal_method.signature: Response findAll(@BeanParam PageableImpl pageable)