test_class.declarator: customDdlRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private CustomDdlRestController customDdlRestController;
test_class.type: CustomDdlRestController
test_class.var_name: customDdlRestController
test_class.declarator: customDdlService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private CustomDdlService customDdlService;
test_class.type: CustomDdlService
test_class.var_name: customDdlService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/CustomDdlRestControllerTest.java
test_class.identifier: CustomDdlRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetCustomDdls()
      {
          BusinessObjectFormatKey businessObjectFormatKey =
              new BusinessObjectFormatKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION);
  
          CustomDdlKeys customDdlKeys =
              new CustomDdlKeys(Arrays.asList(new CustomDdlKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, "ddl")));
  
          when(customDdlService.getCustomDdls(businessObjectFormatKey)).thenReturn(customDdlKeys);
          // Retrieve a list of custom DDL keys.
          CustomDdlKeys resultCustomDdlKeys =
              customDdlRestController.getCustomDdls(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION);
  
          // Verify the external calls.
          verify(customDdlService).getCustomDdls(businessObjectFormatKey);
          verifyNoMoreInteractions(customDdlService);
          // Validate the returned object.
          assertEquals(customDdlKeys, resultCustomDdlKeys);
      }
test_case.class_method_signature: CustomDdlRestControllerTest.testGetCustomDdls()
test_case.full_signature: @Test public void testGetCustomDdls()
test_case.identifier: testGetCustomDdls
test_case.invocations: asList thenReturn when getCustomDdls getCustomDdls getCustomDdls verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetCustomDdls()
focal_class.declarator: CUSTOM_DDLS_URI_PREFIX = "/customDdls"
focal_class.modifier: public static final
focal_class.original_string: public static final String CUSTOM_DDLS_URI_PREFIX = "/customDdls";
focal_class.type: String
focal_class.var_name: CUSTOM_DDLS_URI_PREFIX
focal_class.declarator: customDdlService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private CustomDdlService customDdlService;
focal_class.type: CustomDdlService
focal_class.var_name: customDdlService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/CustomDdlRestController.java
focal_class.identifier: CustomDdlRestController
focal_class.class_method_signature: CustomDdlRestController.createCustomDdl(@RequestBody CustomDdlCreateRequest request)
focal_class.full_signature: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_POST) public CustomDdl createCustomDdl(@RequestBody CustomDdlCreateRequest request)
focal_class.identifier: createCustomDdl
focal_class.modifiers: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_POST) public
focal_class.parameters: (@RequestBody CustomDdlCreateRequest request)
focal_class.return: CustomDdl
focal_class.signature: CustomDdl createCustomDdl(@RequestBody CustomDdlCreateRequest request)
focal_class.class_method_signature: CustomDdlRestController.getCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName)
focal_class.full_signature: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_GET) public CustomDdl getCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName)
focal_class.identifier: getCustomDdl
focal_class.modifiers: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName)
focal_class.return: CustomDdl
focal_class.signature: CustomDdl getCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName)
focal_class.class_method_signature: CustomDdlRestController.updateCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName,
          @RequestBody CustomDdlUpdateRequest request)
focal_class.full_signature: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_PUT) public CustomDdl updateCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName,
          @RequestBody CustomDdlUpdateRequest request)
focal_class.identifier: updateCustomDdl
focal_class.modifiers: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_PUT) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName,
          @RequestBody CustomDdlUpdateRequest request)
focal_class.return: CustomDdl
focal_class.signature: CustomDdl updateCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName,
          @RequestBody CustomDdlUpdateRequest request)
focal_class.class_method_signature: CustomDdlRestController.deleteCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName)
focal_class.full_signature: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_DELETE) public CustomDdl deleteCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName)
focal_class.identifier: deleteCustomDdl
focal_class.modifiers: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_DELETE) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName)
focal_class.return: CustomDdl
focal_class.signature: CustomDdl deleteCustomDdl(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("customDdlName") String customDdlName)
focal_class.class_method_signature: CustomDdlRestController.getCustomDdls(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)
focal_class.full_signature: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_ALL_GET) public CustomDdlKeys getCustomDdls(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)
focal_class.identifier: getCustomDdls
focal_class.modifiers: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_ALL_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)
focal_class.return: CustomDdlKeys
focal_class.signature: CustomDdlKeys getCustomDdls(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" +
          "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" +
          "/businessObjectFormatVersions/{businessObjectFormatVersion}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_CUSTOM_DDLS_ALL_GET)
      public CustomDdlKeys getCustomDdls(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)
      {
          return customDdlService.getCustomDdls(
              new BusinessObjectFormatKey(namespace, businessObjectDefinitionName, businessObjectFormatUsage, businessObjectFormatFileType,
                  businessObjectFormatVersion));
      }
focal_method.class_method_signature: CustomDdlRestController.getCustomDdls(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)
focal_method.full_signature: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_ALL_GET) public CustomDdlKeys getCustomDdls(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)
focal_method.identifier: getCustomDdls
focal_method.invocations: getCustomDdls
focal_method.modifiers: @RequestMapping(value = CUSTOM_DDLS_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_CUSTOM_DDLS_ALL_GET) public
focal_method.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)
focal_method.return: CustomDdlKeys
focal_method.signature: CustomDdlKeys getCustomDdls(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion)