test_class.declarator: tagTypeRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private TagTypeRestController tagTypeRestController;
test_class.type: TagTypeRestController
test_class.var_name: tagTypeRestController
test_class.declarator: tagTypeService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private TagTypeService tagTypeService;
test_class.type: TagTypeService
test_class.var_name: tagTypeService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/TagTypeRestControllerTest.java
test_class.identifier: TagTypeRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testUpdateTagType() throws Exception
      {
          TagTypeKey tagTypeKey = new TagTypeKey(TAG_TYPE);
  
          TagType tagType = new TagType(new TagTypeKey(TAG_TYPE), TAG_TYPE_DISPLAY_NAME_2, TAG_TYPE_ORDER_2, TAG_TYPE_DESCRIPTION_2);
          TagTypeUpdateRequest request = new TagTypeUpdateRequest(TAG_TYPE_DISPLAY_NAME_2, TAG_TYPE_ORDER_2, TAG_TYPE_DESCRIPTION_2);
  
          when(tagTypeService.updateTagType(tagTypeKey, request)).thenReturn(tagType);
  
          // Retrieve the tag type.
          TagType resultTagType = tagTypeRestController.updateTagType(TAG_TYPE, request);
  
          // Validate the returned object.
          assertEquals(tagType, resultTagType);
      }
test_case.class_method_signature: TagTypeRestControllerTest.testUpdateTagType()
test_case.full_signature: @Test public void testUpdateTagType()
test_case.identifier: testUpdateTagType
test_case.invocations: thenReturn when updateTagType updateTagType assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdateTagType()
focal_class.declarator: TAG_TYPES_URI_PREFIX = "/tagTypes"
focal_class.modifier: public final static
focal_class.original_string: public final static String TAG_TYPES_URI_PREFIX = "/tagTypes";
focal_class.type: String
focal_class.var_name: TAG_TYPES_URI_PREFIX
focal_class.declarator: tagTypeService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private TagTypeService tagTypeService;
focal_class.type: TagTypeService
focal_class.var_name: tagTypeService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/TagTypeRestController.java
focal_class.identifier: TagTypeRestController
focal_class.class_method_signature: TagTypeRestController.createTagType(@RequestBody TagTypeCreateRequest request)
focal_class.full_signature: @RequestMapping(value = TAG_TYPES_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_TAG_TYPES_POST) public TagType createTagType(@RequestBody TagTypeCreateRequest request)
focal_class.identifier: createTagType
focal_class.modifiers: @RequestMapping(value = TAG_TYPES_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_TAG_TYPES_POST) public
focal_class.parameters: (@RequestBody TagTypeCreateRequest request)
focal_class.return: TagType
focal_class.signature: TagType createTagType(@RequestBody TagTypeCreateRequest request)
focal_class.class_method_signature: TagTypeRestController.deleteTagType(@PathVariable("tagTypeCode") String tagTypeCode)
focal_class.full_signature: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_TAG_TYPES_DELETE) public TagType deleteTagType(@PathVariable("tagTypeCode") String tagTypeCode)
focal_class.identifier: deleteTagType
focal_class.modifiers: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_TAG_TYPES_DELETE) public
focal_class.parameters: (@PathVariable("tagTypeCode") String tagTypeCode)
focal_class.return: TagType
focal_class.signature: TagType deleteTagType(@PathVariable("tagTypeCode") String tagTypeCode)
focal_class.class_method_signature: TagTypeRestController.getTagType(@PathVariable("tagTypeCode") String tagTypeCode)
focal_class.full_signature: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_TAG_TYPES_GET) public TagType getTagType(@PathVariable("tagTypeCode") String tagTypeCode)
focal_class.identifier: getTagType
focal_class.modifiers: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_TAG_TYPES_GET) public
focal_class.parameters: (@PathVariable("tagTypeCode") String tagTypeCode)
focal_class.return: TagType
focal_class.signature: TagType getTagType(@PathVariable("tagTypeCode") String tagTypeCode)
focal_class.class_method_signature: TagTypeRestController.getTagTypes()
focal_class.full_signature: @RequestMapping(value = TAG_TYPES_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_TAG_TYPES_ALL_GET) public TagTypeKeys getTagTypes()
focal_class.identifier: getTagTypes
focal_class.modifiers: @RequestMapping(value = TAG_TYPES_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_TAG_TYPES_ALL_GET) public
focal_class.parameters: ()
focal_class.return: TagTypeKeys
focal_class.signature: TagTypeKeys getTagTypes()
focal_class.class_method_signature: TagTypeRestController.searchTagTypes(@RequestBody TagTypeSearchRequest request,
          @RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields)
focal_class.full_signature: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/search", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_TAG_TYPES_SEARCH_POST) public TagTypeSearchResponse searchTagTypes(@RequestBody TagTypeSearchRequest request,
          @RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields)
focal_class.identifier: searchTagTypes
focal_class.modifiers: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/search", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_TAG_TYPES_SEARCH_POST) public
focal_class.parameters: (@RequestBody TagTypeSearchRequest request,
          @RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields)
focal_class.return: TagTypeSearchResponse
focal_class.signature: TagTypeSearchResponse searchTagTypes(@RequestBody TagTypeSearchRequest request,
          @RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields)
focal_class.class_method_signature: TagTypeRestController.updateTagType(@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)
focal_class.full_signature: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_TAG_TYPES_PUT) public TagType updateTagType(@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)
focal_class.identifier: updateTagType
focal_class.modifiers: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_TAG_TYPES_PUT) public
focal_class.parameters: (@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)
focal_class.return: TagType
focal_class.signature: TagType updateTagType(@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)
focal_method.body: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.PUT,
          consumes = {"application/xml", "application/json"})
      @Secured(SecurityFunctions.FN_TAG_TYPES_PUT)
      public TagType updateTagType(@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)
      {
          return tagTypeService.updateTagType(new TagTypeKey(tagTypeCode), request);
      }
focal_method.class_method_signature: TagTypeRestController.updateTagType(@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)
focal_method.full_signature: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_TAG_TYPES_PUT) public TagType updateTagType(@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)
focal_method.identifier: updateTagType
focal_method.invocations: updateTagType
focal_method.modifiers: @RequestMapping(value = TAG_TYPES_URI_PREFIX + "/{tagTypeCode}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_TAG_TYPES_PUT) public
focal_method.parameters: (@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)
focal_method.return: TagType
focal_method.signature: TagType updateTagType(@PathVariable("tagTypeCode") String tagTypeCode, @RequestBody TagTypeUpdateRequest request)