test_class.declarator: fileTypeRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private FileTypeRestController fileTypeRestController;
test_class.type: FileTypeRestController
test_class.var_name: fileTypeRestController
test_class.declarator: fileTypeService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private FileTypeService fileTypeService;
test_class.type: FileTypeService
test_class.var_name: fileTypeService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/FileTypeRestControllerTest.java
test_class.identifier: FileTypeRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetFileTypes() throws Exception
      {
          // Get a list of test file type keys.
          List<FileTypeKey> testFileTypeKeys = Arrays.asList(new FileTypeKey(FORMAT_FILE_TYPE_CODE), new FileTypeKey(FORMAT_FILE_TYPE_CODE_2));
          FileTypeKeys fileTypeKeys = new FileTypeKeys(testFileTypeKeys);
          // Create and persist file type entities.
          when(fileTypeService.getFileTypes()).thenReturn(fileTypeKeys);
  
          // Retrieve a list of file type keys.
          FileTypeKeys resultFileTypeKeys = fileTypeRestController.getFileTypes();
  
          // Verify the external calls.
          verify(fileTypeService).getFileTypes();
          verifyNoMoreInteractions(fileTypeService);
          // Validate the returned object.
          assertEquals(fileTypeKeys, resultFileTypeKeys);
      }
test_case.class_method_signature: FileTypeRestControllerTest.testGetFileTypes()
test_case.full_signature: @Test public void testGetFileTypes()
test_case.identifier: testGetFileTypes
test_case.invocations: asList thenReturn when getFileTypes getFileTypes getFileTypes verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetFileTypes()
focal_class.declarator: fileTypeService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private FileTypeService fileTypeService;
focal_class.type: FileTypeService
focal_class.var_name: fileTypeService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/FileTypeRestController.java
focal_class.identifier: FileTypeRestController
focal_class.class_method_signature: FileTypeRestController.createFileType(@RequestBody FileTypeCreateRequest request)
focal_class.full_signature: @RequestMapping(value = "/fileTypes", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_FILE_TYPES_POST) public FileType createFileType(@RequestBody FileTypeCreateRequest request)
focal_class.identifier: createFileType
focal_class.modifiers: @RequestMapping(value = "/fileTypes", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_FILE_TYPES_POST) public
focal_class.parameters: (@RequestBody FileTypeCreateRequest request)
focal_class.return: FileType
focal_class.signature: FileType createFileType(@RequestBody FileTypeCreateRequest request)
focal_class.class_method_signature: FileTypeRestController.getFileType(@PathVariable("fileTypeCode") String fileTypeCode)
focal_class.full_signature: @RequestMapping(value = "/fileTypes/{fileTypeCode}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_FILE_TYPES_GET) public FileType getFileType(@PathVariable("fileTypeCode") String fileTypeCode)
focal_class.identifier: getFileType
focal_class.modifiers: @RequestMapping(value = "/fileTypes/{fileTypeCode}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_FILE_TYPES_GET) public
focal_class.parameters: (@PathVariable("fileTypeCode") String fileTypeCode)
focal_class.return: FileType
focal_class.signature: FileType getFileType(@PathVariable("fileTypeCode") String fileTypeCode)
focal_class.class_method_signature: FileTypeRestController.deleteFileType(@PathVariable("fileTypeCode") String fileTypeCode)
focal_class.full_signature: @RequestMapping(value = "/fileTypes/{fileTypeCode}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_FILE_TYPES_DELETE) public FileType deleteFileType(@PathVariable("fileTypeCode") String fileTypeCode)
focal_class.identifier: deleteFileType
focal_class.modifiers: @RequestMapping(value = "/fileTypes/{fileTypeCode}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_FILE_TYPES_DELETE) public
focal_class.parameters: (@PathVariable("fileTypeCode") String fileTypeCode)
focal_class.return: FileType
focal_class.signature: FileType deleteFileType(@PathVariable("fileTypeCode") String fileTypeCode)
focal_class.class_method_signature: FileTypeRestController.getFileTypes()
focal_class.full_signature: @RequestMapping(value = "/fileTypes", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_FILE_TYPES_ALL_GET) public FileTypeKeys getFileTypes()
focal_class.identifier: getFileTypes
focal_class.modifiers: @RequestMapping(value = "/fileTypes", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_FILE_TYPES_ALL_GET) public
focal_class.parameters: ()
focal_class.return: FileTypeKeys
focal_class.signature: FileTypeKeys getFileTypes()
focal_method.body: @RequestMapping(value = "/fileTypes", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_FILE_TYPES_ALL_GET)
      public FileTypeKeys getFileTypes()
      {
          return fileTypeService.getFileTypes();
      }
focal_method.class_method_signature: FileTypeRestController.getFileTypes()
focal_method.full_signature: @RequestMapping(value = "/fileTypes", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_FILE_TYPES_ALL_GET) public FileTypeKeys getFileTypes()
focal_method.identifier: getFileTypes
focal_method.invocations: getFileTypes
focal_method.modifiers: @RequestMapping(value = "/fileTypes", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_FILE_TYPES_ALL_GET) public
focal_method.parameters: ()
focal_method.return: FileTypeKeys
focal_method.signature: FileTypeKeys getFileTypes()