test_class.declarator: externalInterfaceRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private ExternalInterfaceRestController externalInterfaceRestController;
test_class.type: ExternalInterfaceRestController
test_class.var_name: externalInterfaceRestController
test_class.declarator: externalInterfaceService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ExternalInterfaceService externalInterfaceService;
test_class.type: ExternalInterfaceService
test_class.var_name: externalInterfaceService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/ExternalInterfaceRestControllerTest.java
test_class.identifier: ExternalInterfaceRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetExternalInterfaces()
      {
          ExternalInterfaceKeys externalInterfaceKeys =
              new ExternalInterfaceKeys(Arrays.asList(new ExternalInterfaceKey(EXTERNAL_INTERFACE), new ExternalInterfaceKey(EXTERNAL_INTERFACE_2)));
  
          when(externalInterfaceService.getExternalInterfaces()).thenReturn(externalInterfaceKeys);
  
          // Retrieve a list of external interface keys.
          ExternalInterfaceKeys resultExternalInterfaceKeys = externalInterfaceRestController.getExternalInterfaces();
  
          // Verify the external calls.
          verify(externalInterfaceService).getExternalInterfaces();
          verifyNoMoreInteractions(externalInterfaceService);
  
          // Validate the returned object.
          assertEquals(externalInterfaceKeys, resultExternalInterfaceKeys);
      }
test_case.class_method_signature: ExternalInterfaceRestControllerTest.testGetExternalInterfaces()
test_case.full_signature: @Test public void testGetExternalInterfaces()
test_case.identifier: testGetExternalInterfaces
test_case.invocations: asList thenReturn when getExternalInterfaces getExternalInterfaces getExternalInterfaces verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetExternalInterfaces()
focal_class.declarator: EXTERNAL_INTERFACE_URI_PREFIX = "/externalInterfaces"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXTERNAL_INTERFACE_URI_PREFIX = "/externalInterfaces";
focal_class.type: String
focal_class.var_name: EXTERNAL_INTERFACE_URI_PREFIX
focal_class.declarator: externalInterfaceService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ExternalInterfaceService externalInterfaceService;
focal_class.type: ExternalInterfaceService
focal_class.var_name: externalInterfaceService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/ExternalInterfaceRestController.java
focal_class.identifier: ExternalInterfaceRestController
focal_class.class_method_signature: ExternalInterfaceRestController.createExternalInterface(@RequestBody ExternalInterfaceCreateRequest request)
focal_class.full_signature: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_POST) public ExternalInterface createExternalInterface(@RequestBody ExternalInterfaceCreateRequest request)
focal_class.identifier: createExternalInterface
focal_class.modifiers: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_POST) public
focal_class.parameters: (@RequestBody ExternalInterfaceCreateRequest request)
focal_class.return: ExternalInterface
focal_class.signature: ExternalInterface createExternalInterface(@RequestBody ExternalInterfaceCreateRequest request)
focal_class.class_method_signature: ExternalInterfaceRestController.deleteExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName)
focal_class.full_signature: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX + "/{externalInterfaceName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_DELETE) public ExternalInterface deleteExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName)
focal_class.identifier: deleteExternalInterface
focal_class.modifiers: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX + "/{externalInterfaceName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_DELETE) public
focal_class.parameters: (@PathVariable("externalInterfaceName") String externalInterfaceName)
focal_class.return: ExternalInterface
focal_class.signature: ExternalInterface deleteExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName)
focal_class.class_method_signature: ExternalInterfaceRestController.getExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName)
focal_class.full_signature: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX + "/{externalInterfaceName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_GET) public ExternalInterface getExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName)
focal_class.identifier: getExternalInterface
focal_class.modifiers: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX + "/{externalInterfaceName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_GET) public
focal_class.parameters: (@PathVariable("externalInterfaceName") String externalInterfaceName)
focal_class.return: ExternalInterface
focal_class.signature: ExternalInterface getExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName)
focal_class.class_method_signature: ExternalInterfaceRestController.getExternalInterfaces()
focal_class.full_signature: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_ALL_GET) public ExternalInterfaceKeys getExternalInterfaces()
focal_class.identifier: getExternalInterfaces
focal_class.modifiers: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_ALL_GET) public
focal_class.parameters: ()
focal_class.return: ExternalInterfaceKeys
focal_class.signature: ExternalInterfaceKeys getExternalInterfaces()
focal_class.class_method_signature: ExternalInterfaceRestController.updateExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName,
          @RequestBody ExternalInterfaceUpdateRequest request)
focal_class.full_signature: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX + "/{externalInterfaceName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_PUT) public ExternalInterface updateExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName,
          @RequestBody ExternalInterfaceUpdateRequest request)
focal_class.identifier: updateExternalInterface
focal_class.modifiers: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX + "/{externalInterfaceName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_PUT) public
focal_class.parameters: (@PathVariable("externalInterfaceName") String externalInterfaceName,
          @RequestBody ExternalInterfaceUpdateRequest request)
focal_class.return: ExternalInterface
focal_class.signature: ExternalInterface updateExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName,
          @RequestBody ExternalInterfaceUpdateRequest request)
focal_method.body: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX, method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_ALL_GET)
      public ExternalInterfaceKeys getExternalInterfaces()
      {
          return externalInterfaceService.getExternalInterfaces();
      }
focal_method.class_method_signature: ExternalInterfaceRestController.getExternalInterfaces()
focal_method.full_signature: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_ALL_GET) public ExternalInterfaceKeys getExternalInterfaces()
focal_method.identifier: getExternalInterfaces
focal_method.invocations: getExternalInterfaces
focal_method.modifiers: @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_ALL_GET) public
focal_method.parameters: ()
focal_method.return: ExternalInterfaceKeys
focal_method.signature: ExternalInterfaceKeys getExternalInterfaces()