test_class.declarator: categoriesService = mock(CategoriesService.class)
test_class.modifier: private final
test_class.original_string: private final CategoriesService categoriesService = mock(CategoriesService.class);
test_class.type: CategoriesService
test_class.var_name: categoriesService
test_class.declarator: service = new CategoryWebService(categoriesService)
test_class.modifier: private final
test_class.original_string: private final CategoryWebService service = new CategoryWebService(categoriesService);
test_class.type: CategoryWebService
test_class.var_name: service
test_class.declarator: categories = createCategories()
test_class.modifier: private final
test_class.original_string: private final Categories categories = createCategories();
test_class.type: Categories
test_class.var_name: categories
test_class.file: services/src/test/java/com/greensopinion/finance/services/web/CategoryWebServiceTest.java
test_class.identifier: CategoryWebServiceTest
test_case.body: @Test
  	public void list() {
  		List<CategoryModel> list = service.list();
  		assertNotNull(list);
  		assertEquals(3, list.size());
  		assertEquals("a", list.get(0).getName());
  		assertEquals("B", list.get(1).getName());
  		assertEquals("c", list.get(2).getName());
  	}
test_case.class_method_signature: CategoryWebServiceTest.list()
test_case.full_signature: @Test public void list()
test_case.identifier: list
test_case.invocations: list assertNotNull assertEquals size assertEquals getName get assertEquals getName get assertEquals getName get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void list()
focal_class.declarator: BASE_PATH = "/categories"
focal_class.modifier: static final
focal_class.original_string: static final String BASE_PATH = "/categories";
focal_class.type: String
focal_class.var_name: BASE_PATH
focal_class.declarator: categoriesService
focal_class.modifier: private final
focal_class.original_string: private final CategoriesService categoriesService;
focal_class.type: CategoriesService
focal_class.var_name: categoriesService
focal_class.file: services/src/main/java/com/greensopinion/finance/services/web/CategoryWebService.java
focal_class.identifier: CategoryWebService
focal_class.class_method_signature: CategoryWebService.CategoryWebService(CategoriesService categoriesService)
focal_class.full_signature: @Inject  CategoryWebService(CategoriesService categoriesService)
focal_class.identifier: CategoryWebService
focal_class.modifiers: @Inject
focal_class.parameters: (CategoriesService categoriesService)
focal_class.signature:  CategoryWebService(CategoriesService categoriesService)
focal_class.class_method_signature: CategoryWebService.list()
focal_class.full_signature: @GET public List<CategoryModel> list()
focal_class.identifier: list
focal_class.modifiers: @GET public
focal_class.parameters: ()
focal_class.return: List<CategoryModel>
focal_class.signature: List<CategoryModel> list()
focal_class.class_method_signature: CategoryWebService.create(CategoryModel model)
focal_class.full_signature: @POST public void create(CategoryModel model)
focal_class.identifier: create
focal_class.modifiers: @POST public
focal_class.parameters: (CategoryModel model)
focal_class.return: void
focal_class.signature: void create(CategoryModel model)
focal_class.class_method_signature: CategoryWebService.delete(@PathParam("name") String name)
focal_class.full_signature: @DELETE @Path("{name}") public void delete(@PathParam("name") String name)
focal_class.identifier: delete
focal_class.modifiers: @DELETE @Path("{name}") public
focal_class.parameters: (@PathParam("name") String name)
focal_class.return: void
focal_class.signature: void delete(@PathParam("name") String name)
focal_class.class_method_signature: CategoryWebService.addRule(@PathParam("name") String name, CategoryRuleModel ruleModel)
focal_class.full_signature: @POST @Path("{name}/rules") public void addRule(@PathParam("name") String name, CategoryRuleModel ruleModel)
focal_class.identifier: addRule
focal_class.modifiers: @POST @Path("{name}/rules") public
focal_class.parameters: (@PathParam("name") String name, CategoryRuleModel ruleModel)
focal_class.return: void
focal_class.signature: void addRule(@PathParam("name") String name, CategoryRuleModel ruleModel)
focal_class.class_method_signature: CategoryWebService.toMatchRule(CategoryRuleModel ruleModel)
focal_class.full_signature: private MatchRule toMatchRule(CategoryRuleModel ruleModel)
focal_class.identifier: toMatchRule
focal_class.modifiers: private
focal_class.parameters: (CategoryRuleModel ruleModel)
focal_class.return: MatchRule
focal_class.signature: MatchRule toMatchRule(CategoryRuleModel ruleModel)
focal_method.body: @GET
  	public List<CategoryModel> list() {
  		return FluentIterable.from(categoriesService.retrieve().getCategories())
  				.transform(new Function<Category, CategoryModel>() {
  
  					@Override
  					public CategoryModel apply(Category category) {
  						return new CategoryModel(category.getName());
  					}
  				}).toSortedList(Ordering.natural());
  	}
focal_method.class_method_signature: CategoryWebService.list()
focal_method.full_signature: @GET public List<CategoryModel> list()
focal_method.identifier: list
focal_method.invocations: toSortedList transform from getCategories retrieve getName natural
focal_method.modifiers: @GET public
focal_method.parameters: ()
focal_method.return: List<CategoryModel>
focal_method.signature: List<CategoryModel> list()