示例#1
0
  @Test
  public void findCategoryByIdTest() throws Exception {
    System.out.println("CategoryService.findCategoryByIdTest");

    Category c2 = categoryService.findCategoryById(c1.getId());
    assertEquals("Original and retrieved Category by ID: " + c1.getId() + " are not same.", c1, c2);
  }