test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/BusinessObjectDataAttributeHelperTest.java
test_class.identifier: BusinessObjectDataAttributeHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testIsBusinessObjectDataAttributeRequired()
      {
          // Create and persist test database entities required for testing.
          BusinessObjectFormatEntity businessObjectFormatEntity = businessObjectFormatDaoTestHelper
              .createBusinessObjectFormatEntity(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, FORMAT_DESCRIPTION,
                  FORMAT_DOCUMENT_SCHEMA, FORMAT_DOCUMENT_SCHEMA_URL, true, PARTITION_KEY);
          businessObjectFormatDaoTestHelper
              .createBusinessObjectDataAttributeDefinitionEntity(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION,
                  ATTRIBUTE_NAME_1_MIXED_CASE);
          businessObjectFormatDaoTestHelper
              .createBusinessObjectDataAttributeDefinitionEntity(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION,
                  ATTRIBUTE_NAME_2_MIXED_CASE);
  
          // Validate the functionality.
          assertTrue(businessObjectDataAttributeHelper.isBusinessObjectDataAttributeRequired(ATTRIBUTE_NAME_1_MIXED_CASE, businessObjectFormatEntity));
          assertTrue(businessObjectDataAttributeHelper.isBusinessObjectDataAttributeRequired(ATTRIBUTE_NAME_2_MIXED_CASE, businessObjectFormatEntity));
          assertFalse(businessObjectDataAttributeHelper.isBusinessObjectDataAttributeRequired(ATTRIBUTE_NAME_3_MIXED_CASE, businessObjectFormatEntity));
          assertTrue(
              businessObjectDataAttributeHelper.isBusinessObjectDataAttributeRequired(ATTRIBUTE_NAME_1_MIXED_CASE.toUpperCase(), businessObjectFormatEntity));
          assertTrue(
              businessObjectDataAttributeHelper.isBusinessObjectDataAttributeRequired(ATTRIBUTE_NAME_1_MIXED_CASE.toLowerCase(), businessObjectFormatEntity));
      }
test_case.class_method_signature: BusinessObjectDataAttributeHelperTest.testIsBusinessObjectDataAttributeRequired()
test_case.full_signature: @Test public void testIsBusinessObjectDataAttributeRequired()
test_case.identifier: testIsBusinessObjectDataAttributeRequired
test_case.invocations: createBusinessObjectFormatEntity createBusinessObjectDataAttributeDefinitionEntity createBusinessObjectDataAttributeDefinitionEntity assertTrue isBusinessObjectDataAttributeRequired assertTrue isBusinessObjectDataAttributeRequired assertFalse isBusinessObjectDataAttributeRequired assertTrue isBusinessObjectDataAttributeRequired toUpperCase assertTrue isBusinessObjectDataAttributeRequired toLowerCase
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsBusinessObjectDataAttributeRequired()
focal_class.declarator: alternateKeyHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private AlternateKeyHelper alternateKeyHelper;
focal_class.type: AlternateKeyHelper
focal_class.var_name: alternateKeyHelper
focal_class.declarator: businessObjectDataHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDataHelper businessObjectDataHelper;
focal_class.type: BusinessObjectDataHelper
focal_class.var_name: businessObjectDataHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/BusinessObjectDataAttributeHelper.java
focal_class.identifier: BusinessObjectDataAttributeHelper
focal_class.class_method_signature: BusinessObjectDataAttributeHelper.getBusinessObjectDataAttributeKey(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataAttributeName)
focal_class.full_signature: public BusinessObjectDataAttributeKey getBusinessObjectDataAttributeKey(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataAttributeName)
focal_class.identifier: getBusinessObjectDataAttributeKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataKey businessObjectDataKey, String businessObjectDataAttributeName)
focal_class.return: BusinessObjectDataAttributeKey
focal_class.signature: BusinessObjectDataAttributeKey getBusinessObjectDataAttributeKey(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataAttributeName)
focal_class.class_method_signature: BusinessObjectDataAttributeHelper.isBusinessObjectDataAttributeRequired(String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)
focal_class.full_signature: public boolean isBusinessObjectDataAttributeRequired(String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)
focal_class.identifier: isBusinessObjectDataAttributeRequired
focal_class.modifiers: public
focal_class.parameters: (String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)
focal_class.return: boolean
focal_class.signature: boolean isBusinessObjectDataAttributeRequired(String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)
focal_class.class_method_signature: BusinessObjectDataAttributeHelper.validateBusinessObjectDataAttributeKey(BusinessObjectDataAttributeKey key)
focal_class.full_signature: public void validateBusinessObjectDataAttributeKey(BusinessObjectDataAttributeKey key)
focal_class.identifier: validateBusinessObjectDataAttributeKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataAttributeKey key)
focal_class.return: void
focal_class.signature: void validateBusinessObjectDataAttributeKey(BusinessObjectDataAttributeKey key)
focal_method.body: public boolean isBusinessObjectDataAttributeRequired(String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)
      {
          boolean required = false;
  
          for (BusinessObjectDataAttributeDefinitionEntity attributeDefinitionEntity : businessObjectFormatEntity.getAttributeDefinitions())
          {
              if (businessObjectAttributeName.equalsIgnoreCase(attributeDefinitionEntity.getName()))
              {
                  required = true;
                  break;
              }
          }
  
          return required;
      }
focal_method.class_method_signature: BusinessObjectDataAttributeHelper.isBusinessObjectDataAttributeRequired(String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)
focal_method.full_signature: public boolean isBusinessObjectDataAttributeRequired(String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)
focal_method.identifier: isBusinessObjectDataAttributeRequired
focal_method.invocations: getAttributeDefinitions equalsIgnoreCase getName
focal_method.modifiers: public
focal_method.parameters: (String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)
focal_method.return: boolean
focal_method.signature: boolean isBusinessObjectDataAttributeRequired(String businessObjectAttributeName, BusinessObjectFormatEntity businessObjectFormatEntity)