test_class.declarator: FIELD_DATA_PROVIDER_NAME = "dataProviderName"
test_class.modifier: public static final
test_class.original_string: public static final String FIELD_DATA_PROVIDER_NAME = "dataProviderName";
test_class.type: String
test_class.var_name: FIELD_DATA_PROVIDER_NAME
test_class.declarator: FIELD_DISPLAY_NAME = "displayName"
test_class.modifier: public static final
test_class.original_string: public static final String FIELD_DISPLAY_NAME = "displayName";
test_class.type: String
test_class.var_name: FIELD_DISPLAY_NAME
test_class.declarator: FIELD_SHORT_DESCRIPTION = "shortDescription"
test_class.modifier: public static final
test_class.original_string: public static final String FIELD_SHORT_DESCRIPTION = "shortDescription";
test_class.type: String
test_class.var_name: FIELD_SHORT_DESCRIPTION
test_class.declarator: businessObjectDefinitionRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private BusinessObjectDefinitionRestController businessObjectDefinitionRestController;
test_class.type: BusinessObjectDefinitionRestController
test_class.var_name: businessObjectDefinitionRestController
test_class.declarator: businessObjectDefinitionService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDefinitionService businessObjectDefinitionService;
test_class.type: BusinessObjectDefinitionService
test_class.var_name: businessObjectDefinitionService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/BusinessObjectDefinitionRestControllerTest.java
test_class.identifier: BusinessObjectDefinitionRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetBusinessObjectDefinitionIncludeUpdateHistory()
      {
          // Create a business object definition key.
          BusinessObjectDefinitionKey businessObjectDefinitionKey = new BusinessObjectDefinitionKey(BDEF_NAMESPACE, BDEF_NAME);
  
          // Create business object definition change event
          List<BusinessObjectDefinitionChangeEvent> businessObjectDefinitionChangeEvents = new ArrayList<>();
          businessObjectDefinitionChangeEvents.add(new BusinessObjectDefinitionChangeEvent(BDEF_DISPLAY_NAME, BDEF_DESCRIPTION,
              new DescriptiveBusinessObjectFormatUpdateRequest(FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE), CREATED_ON, CREATED_BY));
  
          // Create a business object definition.
          BusinessObjectDefinition businessObjectDefinition =
              new BusinessObjectDefinition(ID, BDEF_NAMESPACE, BDEF_NAME, DATA_PROVIDER_NAME, BDEF_DESCRIPTION, SHORT_DESCRIPTION, BDEF_DISPLAY_NAME,
                  Arrays.asList(new Attribute(ATTRIBUTE_NAME_1_MIXED_CASE, ATTRIBUTE_VALUE_1)),
                  new DescriptiveBusinessObjectFormat(FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION),
                  Arrays.asList(new SampleDataFile(DIRECTORY_PATH, FILE_NAME)), CREATED_BY, UPDATED_BY, UPDATED_ON, businessObjectDefinitionChangeEvents);
  
          // Mock the external calls.
          when(businessObjectDefinitionService.getBusinessObjectDefinition(businessObjectDefinitionKey, INCLUDE_BUSINESS_OBJECT_DEFINITION_UPDATE_HISTORY))
              .thenReturn(businessObjectDefinition);
  
          // Call the method under test.
          BusinessObjectDefinition result = businessObjectDefinitionRestController
              .getBusinessObjectDefinition(BDEF_NAMESPACE, BDEF_NAME, INCLUDE_BUSINESS_OBJECT_DEFINITION_UPDATE_HISTORY);
  
          // Verify the external calls.
          verify(businessObjectDefinitionService).getBusinessObjectDefinition(businessObjectDefinitionKey, INCLUDE_BUSINESS_OBJECT_DEFINITION_UPDATE_HISTORY);
          verifyNoMoreInteractions(businessObjectDefinitionService);
  
          // Validate the results.
          assertEquals(businessObjectDefinition, result);
      }
test_case.class_method_signature: BusinessObjectDefinitionRestControllerTest.testGetBusinessObjectDefinitionIncludeUpdateHistory()
test_case.full_signature: @Test public void testGetBusinessObjectDefinitionIncludeUpdateHistory()
test_case.identifier: testGetBusinessObjectDefinitionIncludeUpdateHistory
test_case.invocations: add asList asList thenReturn when getBusinessObjectDefinition getBusinessObjectDefinition getBusinessObjectDefinition verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBusinessObjectDefinitionIncludeUpdateHistory()
focal_class.declarator: businessObjectDefinitionService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDefinitionService businessObjectDefinitionService;
focal_class.type: BusinessObjectDefinitionService
focal_class.var_name: businessObjectDefinitionService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/BusinessObjectDefinitionRestController.java
focal_class.identifier: BusinessObjectDefinitionRestController
focal_class.class_method_signature: BusinessObjectDefinitionRestController.createBusinessObjectDefinition(@RequestBody BusinessObjectDefinitionCreateRequest request)
focal_class.full_signature: @RequestMapping(value = "/businessObjectDefinitions", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_POST) public BusinessObjectDefinition createBusinessObjectDefinition(@RequestBody BusinessObjectDefinitionCreateRequest request)
focal_class.identifier: createBusinessObjectDefinition
focal_class.modifiers: @RequestMapping(value = "/businessObjectDefinitions", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_POST) public
focal_class.parameters: (@RequestBody BusinessObjectDefinitionCreateRequest request)
focal_class.return: BusinessObjectDefinition
focal_class.signature: BusinessObjectDefinition createBusinessObjectDefinition(@RequestBody BusinessObjectDefinitionCreateRequest request)
focal_class.class_method_signature: BusinessObjectDefinitionRestController.updateBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName, @RequestBody BusinessObjectDefinitionUpdateRequest request)
focal_class.full_signature: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_PUT) public BusinessObjectDefinition updateBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName, @RequestBody BusinessObjectDefinitionUpdateRequest request)
focal_class.identifier: updateBusinessObjectDefinition
focal_class.modifiers: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_PUT) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName, @RequestBody BusinessObjectDefinitionUpdateRequest request)
focal_class.return: BusinessObjectDefinition
focal_class.signature: BusinessObjectDefinition updateBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName, @RequestBody BusinessObjectDefinitionUpdateRequest request)
focal_class.class_method_signature: BusinessObjectDefinitionRestController.updateBusinessObjectDefinitionDescriptiveInformation(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestBody BusinessObjectDefinitionDescriptiveInformationUpdateRequest request)
focal_class.full_signature: @RequestMapping( value = "/businessObjectDefinitionDescriptiveInformation/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_DESCRIPTIVE_INFO_PUT) public BusinessObjectDefinition updateBusinessObjectDefinitionDescriptiveInformation(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestBody BusinessObjectDefinitionDescriptiveInformationUpdateRequest request)
focal_class.identifier: updateBusinessObjectDefinitionDescriptiveInformation
focal_class.modifiers: @RequestMapping( value = "/businessObjectDefinitionDescriptiveInformation/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_DESCRIPTIVE_INFO_PUT) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestBody BusinessObjectDefinitionDescriptiveInformationUpdateRequest request)
focal_class.return: BusinessObjectDefinition
focal_class.signature: BusinessObjectDefinition updateBusinessObjectDefinitionDescriptiveInformation(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestBody BusinessObjectDefinitionDescriptiveInformationUpdateRequest request)
focal_class.class_method_signature: BusinessObjectDefinitionRestController.getBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)
focal_class.full_signature: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_GET) public BusinessObjectDefinition getBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)
focal_class.identifier: getBusinessObjectDefinition
focal_class.modifiers: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)
focal_class.return: BusinessObjectDefinition
focal_class.signature: BusinessObjectDefinition getBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)
focal_class.class_method_signature: BusinessObjectDefinitionRestController.deleteBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName)
focal_class.full_signature: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_DELETE) public BusinessObjectDefinition deleteBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName)
focal_class.identifier: deleteBusinessObjectDefinition
focal_class.modifiers: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_DELETE) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName)
focal_class.return: BusinessObjectDefinition
focal_class.signature: BusinessObjectDefinition deleteBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName)
focal_class.class_method_signature: BusinessObjectDefinitionRestController.getBusinessObjectDefinitions()
focal_class.full_signature: @RequestMapping(value = "/businessObjectDefinitions", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_ALL_GET) public BusinessObjectDefinitionKeys getBusinessObjectDefinitions()
focal_class.identifier: getBusinessObjectDefinitions
focal_class.modifiers: @RequestMapping(value = "/businessObjectDefinitions", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_ALL_GET) public
focal_class.parameters: ()
focal_class.return: BusinessObjectDefinitionKeys
focal_class.signature: BusinessObjectDefinitionKeys getBusinessObjectDefinitions()
focal_class.class_method_signature: BusinessObjectDefinitionRestController.getBusinessObjectDefinitions(@PathVariable("namespace") String namespace)
focal_class.full_signature: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_ALL_GET) public BusinessObjectDefinitionKeys getBusinessObjectDefinitions(@PathVariable("namespace") String namespace)
focal_class.identifier: getBusinessObjectDefinitions
focal_class.modifiers: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_ALL_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace)
focal_class.return: BusinessObjectDefinitionKeys
focal_class.signature: BusinessObjectDefinitionKeys getBusinessObjectDefinitions(@PathVariable("namespace") String namespace)
focal_class.class_method_signature: BusinessObjectDefinitionRestController.searchBusinessObjectDefinitions(
          @RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields, @RequestBody BusinessObjectDefinitionSearchRequest request)
focal_class.full_signature: @RequestMapping(value = "/businessObjectDefinitions/search", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_SEARCH_POST) public BusinessObjectDefinitionSearchResponse searchBusinessObjectDefinitions(
          @RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields, @RequestBody BusinessObjectDefinitionSearchRequest request)
focal_class.identifier: searchBusinessObjectDefinitions
focal_class.modifiers: @RequestMapping(value = "/businessObjectDefinitions/search", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_SEARCH_POST) public
focal_class.parameters: (
          @RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields, @RequestBody BusinessObjectDefinitionSearchRequest request)
focal_class.return: BusinessObjectDefinitionSearchResponse
focal_class.signature: BusinessObjectDefinitionSearchResponse searchBusinessObjectDefinitions(
          @RequestParam(value = "fields", required = false, defaultValue = "") Set<String> fields, @RequestBody BusinessObjectDefinitionSearchRequest request)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}",
          method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_GET)
      public BusinessObjectDefinition getBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)
      {
          BusinessObjectDefinitionKey businessObjectDefinitionKey = new BusinessObjectDefinitionKey(namespace, businessObjectDefinitionName);
          return businessObjectDefinitionService.getBusinessObjectDefinition(businessObjectDefinitionKey, includeBusinessObjectDefinitionUpdateHistory);
      }
focal_method.class_method_signature: BusinessObjectDefinitionRestController.getBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)
focal_method.full_signature: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_GET) public BusinessObjectDefinition getBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)
focal_method.identifier: getBusinessObjectDefinition
focal_method.invocations: getBusinessObjectDefinition
focal_method.modifiers: @RequestMapping(value = "/businessObjectDefinitions/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DEFINITIONS_GET) public
focal_method.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)
focal_method.return: BusinessObjectDefinition
focal_method.signature: BusinessObjectDefinition getBusinessObjectDefinition(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @RequestParam(value = "includeBusinessObjectDefinitionUpdateHistory", required = false) Boolean includeBusinessObjectDefinitionUpdateHistory)