test_class.declarator: emrClusterDefinitionRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private EmrClusterDefinitionRestController emrClusterDefinitionRestController;
test_class.type: EmrClusterDefinitionRestController
test_class.var_name: emrClusterDefinitionRestController
test_class.declarator: emrClusterDefinitionService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private EmrClusterDefinitionService emrClusterDefinitionService;
test_class.type: EmrClusterDefinitionService
test_class.var_name: emrClusterDefinitionService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/EmrClusterDefinitionRestControllerTest.java
test_class.identifier: EmrClusterDefinitionRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testDeleteEmrClusterDefinition() throws Exception
      {
          // Create an EMR cluster definition key.
          EmrClusterDefinitionKey emrClusterDefinitionKey = new EmrClusterDefinitionKey(NAMESPACE, EMR_CLUSTER_DEFINITION_NAME);
  
          // Create an EMR cluster definition.
          EmrClusterDefinition emrClusterDefinition = new EmrClusterDefinition();
  
          // Create an object that holds EMR cluster definition information.
          EmrClusterDefinitionInformation emrClusterDefinitionInformation =
              new EmrClusterDefinitionInformation(ID, emrClusterDefinitionKey, emrClusterDefinition);
  
          // Mock the external calls.
          when(emrClusterDefinitionService.deleteEmrClusterDefinition(emrClusterDefinitionKey)).thenReturn(emrClusterDefinitionInformation);
  
          // Call the method under test.
          EmrClusterDefinitionInformation result = emrClusterDefinitionRestController.deleteEmrClusterDefinition(NAMESPACE, EMR_CLUSTER_DEFINITION_NAME);
  
          // Verify the external calls.
          verify(emrClusterDefinitionService).deleteEmrClusterDefinition(emrClusterDefinitionKey);
          verifyNoMoreInteractionsHelper();
  
          // Validate the results.
          assertEquals(emrClusterDefinitionInformation, result);
      }
test_case.class_method_signature: EmrClusterDefinitionRestControllerTest.testDeleteEmrClusterDefinition()
test_case.full_signature: @Test public void testDeleteEmrClusterDefinition()
test_case.identifier: testDeleteEmrClusterDefinition
test_case.invocations: thenReturn when deleteEmrClusterDefinition deleteEmrClusterDefinition deleteEmrClusterDefinition verify verifyNoMoreInteractionsHelper assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDeleteEmrClusterDefinition()
focal_class.declarator: EMR_CLUSTER_DEFINITIONS_URI_PREFIX = "/emrClusterDefinitions"
focal_class.modifier: public static final
focal_class.original_string: public static final String EMR_CLUSTER_DEFINITIONS_URI_PREFIX = "/emrClusterDefinitions";
focal_class.type: String
focal_class.var_name: EMR_CLUSTER_DEFINITIONS_URI_PREFIX
focal_class.declarator: emrClusterDefinitionService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private EmrClusterDefinitionService emrClusterDefinitionService;
focal_class.type: EmrClusterDefinitionService
focal_class.var_name: emrClusterDefinitionService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/EmrClusterDefinitionRestController.java
focal_class.identifier: EmrClusterDefinitionRestController
focal_class.class_method_signature: EmrClusterDefinitionRestController.createEmrClusterDefinition(@RequestBody EmrClusterDefinitionCreateRequest request)
focal_class.full_signature: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_POST) public EmrClusterDefinitionInformation createEmrClusterDefinition(@RequestBody EmrClusterDefinitionCreateRequest request)
focal_class.identifier: createEmrClusterDefinition
focal_class.modifiers: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_POST) public
focal_class.parameters: (@RequestBody EmrClusterDefinitionCreateRequest request)
focal_class.return: EmrClusterDefinitionInformation
focal_class.signature: EmrClusterDefinitionInformation createEmrClusterDefinition(@RequestBody EmrClusterDefinitionCreateRequest request)
focal_class.class_method_signature: EmrClusterDefinitionRestController.getEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_class.full_signature: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_GET) public EmrClusterDefinitionInformation getEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_class.identifier: getEmrClusterDefinition
focal_class.modifiers: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_class.return: EmrClusterDefinitionInformation
focal_class.signature: EmrClusterDefinitionInformation getEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_class.class_method_signature: EmrClusterDefinitionRestController.updateEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName, @RequestBody EmrClusterDefinitionUpdateRequest request)
focal_class.full_signature: @RequestMapping( value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_PUT) public EmrClusterDefinitionInformation updateEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName, @RequestBody EmrClusterDefinitionUpdateRequest request)
focal_class.identifier: updateEmrClusterDefinition
focal_class.modifiers: @RequestMapping( value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_PUT) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName, @RequestBody EmrClusterDefinitionUpdateRequest request)
focal_class.return: EmrClusterDefinitionInformation
focal_class.signature: EmrClusterDefinitionInformation updateEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName, @RequestBody EmrClusterDefinitionUpdateRequest request)
focal_class.class_method_signature: EmrClusterDefinitionRestController.deleteEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_class.full_signature: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_DELETE) public EmrClusterDefinitionInformation deleteEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_class.identifier: deleteEmrClusterDefinition
focal_class.modifiers: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_DELETE) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_class.return: EmrClusterDefinitionInformation
focal_class.signature: EmrClusterDefinitionInformation deleteEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_class.class_method_signature: EmrClusterDefinitionRestController.getEmrClusterDefinitions(@PathVariable("namespace") String namespace)
focal_class.full_signature: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_ALL_GET) public EmrClusterDefinitionKeys getEmrClusterDefinitions(@PathVariable("namespace") String namespace)
focal_class.identifier: getEmrClusterDefinitions
focal_class.modifiers: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_ALL_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace)
focal_class.return: EmrClusterDefinitionKeys
focal_class.signature: EmrClusterDefinitionKeys getEmrClusterDefinitions(@PathVariable("namespace") String namespace)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}",
          method = RequestMethod.DELETE)
      @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_DELETE)
      public EmrClusterDefinitionInformation deleteEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName) throws Exception
      {
          return emrClusterDefinitionService.deleteEmrClusterDefinition(new EmrClusterDefinitionKey(namespace, emrClusterDefinitionName));
      }
focal_method.class_method_signature: EmrClusterDefinitionRestController.deleteEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_method.full_signature: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_DELETE) public EmrClusterDefinitionInformation deleteEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_method.identifier: deleteEmrClusterDefinition
focal_method.invocations: deleteEmrClusterDefinition
focal_method.modifiers: @RequestMapping(value = EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_DELETE) public
focal_method.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)
focal_method.return: EmrClusterDefinitionInformation
focal_method.signature: EmrClusterDefinitionInformation deleteEmrClusterDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("emrClusterDefinitionName") String emrClusterDefinitionName)