test_class.declarator: dataProviderRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private DataProviderRestController dataProviderRestController;
test_class.type: DataProviderRestController
test_class.var_name: dataProviderRestController
test_class.declarator: dataProviderService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DataProviderService dataProviderService;
test_class.type: DataProviderService
test_class.var_name: dataProviderService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/DataProviderRestControllerTest.java
test_class.identifier: DataProviderRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testCreateDataProvider() throws Exception
      {
          DataProviderCreateRequest dataProviderCreateRequest = new DataProviderCreateRequest(DATA_PROVIDER_NAME);
          // Create a data provider.
          DataProvider dataProvider = new DataProvider(DATA_PROVIDER_NAME);
          when(dataProviderService.createDataProvider(dataProviderCreateRequest)).thenReturn(dataProvider);
  
          DataProvider resultDataProvider = dataProviderRestController.createDataProvider(new DataProviderCreateRequest(DATA_PROVIDER_NAME));
  
          // Validate the returned object.
          assertEquals(new DataProvider(DATA_PROVIDER_NAME), resultDataProvider);
  
          // Verify the external calls.
          verify(dataProviderService).createDataProvider(dataProviderCreateRequest);
          verifyNoMoreInteractions(dataProviderService);
          // Validate the returned object.
          assertEquals(dataProvider, resultDataProvider);
      }
test_case.class_method_signature: DataProviderRestControllerTest.testCreateDataProvider()
test_case.full_signature: @Test public void testCreateDataProvider()
test_case.identifier: testCreateDataProvider
test_case.invocations: thenReturn when createDataProvider createDataProvider assertEquals createDataProvider verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateDataProvider()
focal_class.declarator: dataProviderService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private DataProviderService dataProviderService;
focal_class.type: DataProviderService
focal_class.var_name: dataProviderService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/DataProviderRestController.java
focal_class.identifier: DataProviderRestController
focal_class.class_method_signature: DataProviderRestController.createDataProvider(@RequestBody DataProviderCreateRequest request)
focal_class.full_signature: @RequestMapping(value = "/dataProviders", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_POST) public DataProvider createDataProvider(@RequestBody DataProviderCreateRequest request)
focal_class.identifier: createDataProvider
focal_class.modifiers: @RequestMapping(value = "/dataProviders", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_POST) public
focal_class.parameters: (@RequestBody DataProviderCreateRequest request)
focal_class.return: DataProvider
focal_class.signature: DataProvider createDataProvider(@RequestBody DataProviderCreateRequest request)
focal_class.class_method_signature: DataProviderRestController.getDataProvider(@PathVariable("dataProviderName") String dataProviderName)
focal_class.full_signature: @RequestMapping(value = "/dataProviders/{dataProviderName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_GET) public DataProvider getDataProvider(@PathVariable("dataProviderName") String dataProviderName)
focal_class.identifier: getDataProvider
focal_class.modifiers: @RequestMapping(value = "/dataProviders/{dataProviderName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_GET) public
focal_class.parameters: (@PathVariable("dataProviderName") String dataProviderName)
focal_class.return: DataProvider
focal_class.signature: DataProvider getDataProvider(@PathVariable("dataProviderName") String dataProviderName)
focal_class.class_method_signature: DataProviderRestController.deleteDataProvider(@PathVariable("dataProviderName") String dataProviderName)
focal_class.full_signature: @RequestMapping(value = "/dataProviders/{dataProviderName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_DELETE) public DataProvider deleteDataProvider(@PathVariable("dataProviderName") String dataProviderName)
focal_class.identifier: deleteDataProvider
focal_class.modifiers: @RequestMapping(value = "/dataProviders/{dataProviderName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_DELETE) public
focal_class.parameters: (@PathVariable("dataProviderName") String dataProviderName)
focal_class.return: DataProvider
focal_class.signature: DataProvider deleteDataProvider(@PathVariable("dataProviderName") String dataProviderName)
focal_class.class_method_signature: DataProviderRestController.getDataProviders()
focal_class.full_signature: @RequestMapping(value = "/dataProviders", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_ALL_GET) public DataProviderKeys getDataProviders()
focal_class.identifier: getDataProviders
focal_class.modifiers: @RequestMapping(value = "/dataProviders", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_ALL_GET) public
focal_class.parameters: ()
focal_class.return: DataProviderKeys
focal_class.signature: DataProviderKeys getDataProviders()
focal_method.body: @RequestMapping(value = "/dataProviders", method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
      @Secured(SecurityFunctions.FN_DATA_PROVIDERS_POST)
      public DataProvider createDataProvider(@RequestBody DataProviderCreateRequest request)
      {
          return dataProviderService.createDataProvider(request);
      }
focal_method.class_method_signature: DataProviderRestController.createDataProvider(@RequestBody DataProviderCreateRequest request)
focal_method.full_signature: @RequestMapping(value = "/dataProviders", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_POST) public DataProvider createDataProvider(@RequestBody DataProviderCreateRequest request)
focal_method.identifier: createDataProvider
focal_method.invocations: createDataProvider
focal_method.modifiers: @RequestMapping(value = "/dataProviders", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_DATA_PROVIDERS_POST) public
focal_method.parameters: (@RequestBody DataProviderCreateRequest request)
focal_method.return: DataProvider
focal_method.signature: DataProvider createDataProvider(@RequestBody DataProviderCreateRequest request)