test_class.declarator: alternateKeyHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AlternateKeyHelper alternateKeyHelper;
test_class.type: AlternateKeyHelper
test_class.var_name: alternateKeyHelper
test_class.declarator: businessObjectDefinitionHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private BusinessObjectDefinitionHelper businessObjectDefinitionHelper;
test_class.type: BusinessObjectDefinitionHelper
test_class.var_name: businessObjectDefinitionHelper
test_class.declarator: jsonHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private JsonHelper jsonHelper;
test_class.type: JsonHelper
test_class.var_name: jsonHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/BusinessObjectDefinitionHelperTest.java
test_class.identifier: BusinessObjectDefinitionHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testValidateBusinessObjectDefinitionKey()
      {
          // Create a business object definition key.
          BusinessObjectDefinitionKey businessObjectDefinitionKey = new BusinessObjectDefinitionKey(BDEF_NAMESPACE, BDEF_NAME);
  
          // Mock the external calls.
          when(alternateKeyHelper.validateStringParameter("namespace", BDEF_NAMESPACE)).thenReturn(BDEF_NAMESPACE);
          when(alternateKeyHelper.validateStringParameter("business object definition name", BDEF_NAME)).thenReturn(BDEF_NAME);
  
          // Validate and trim a business object definition key.
          businessObjectDefinitionHelper.validateBusinessObjectDefinitionKey(businessObjectDefinitionKey);
  
          // Verify the external calls.
          verify(alternateKeyHelper).validateStringParameter("namespace", BDEF_NAMESPACE);
          verify(alternateKeyHelper).validateStringParameter("business object definition name", BDEF_NAME);
          verifyNoMoreInteractions(alternateKeyHelper, jsonHelper);
  
          // Validate the business object definition key.
          assertEquals(new BusinessObjectDefinitionKey(BDEF_NAMESPACE, BDEF_NAME), businessObjectDefinitionKey);
      }
test_case.class_method_signature: BusinessObjectDefinitionHelperTest.testValidateBusinessObjectDefinitionKey()
test_case.full_signature: @Test public void testValidateBusinessObjectDefinitionKey()
test_case.identifier: testValidateBusinessObjectDefinitionKey
test_case.invocations: thenReturn when validateStringParameter thenReturn when validateStringParameter validateBusinessObjectDefinitionKey validateStringParameter verify validateStringParameter verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateBusinessObjectDefinitionKey()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(BusinessObjectDefinitionHelper.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(BusinessObjectDefinitionHelper.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
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: jsonHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private JsonHelper jsonHelper;
focal_class.type: JsonHelper
focal_class.var_name: jsonHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/BusinessObjectDefinitionHelper.java
focal_class.identifier: BusinessObjectDefinitionHelper
focal_class.class_method_signature: BusinessObjectDefinitionHelper.businessObjectDefinitionKeyToString(BusinessObjectDefinitionKey businessObjectDefinitionKey)
focal_class.full_signature: public String businessObjectDefinitionKeyToString(BusinessObjectDefinitionKey businessObjectDefinitionKey)
focal_class.identifier: businessObjectDefinitionKeyToString
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDefinitionKey businessObjectDefinitionKey)
focal_class.return: String
focal_class.signature: String businessObjectDefinitionKeyToString(BusinessObjectDefinitionKey businessObjectDefinitionKey)
focal_class.class_method_signature: BusinessObjectDefinitionHelper.executeFunctionForBusinessObjectDefinitionEntities(final String indexName,
          final List<BusinessObjectDefinitionEntity> businessObjectDefinitionEntities, final TriConsumer<String, String, String> function)
focal_class.full_signature: public void executeFunctionForBusinessObjectDefinitionEntities(final String indexName,
          final List<BusinessObjectDefinitionEntity> businessObjectDefinitionEntities, final TriConsumer<String, String, String> function)
focal_class.identifier: executeFunctionForBusinessObjectDefinitionEntities
focal_class.modifiers: public
focal_class.parameters: (final String indexName,
          final List<BusinessObjectDefinitionEntity> businessObjectDefinitionEntities, final TriConsumer<String, String, String> function)
focal_class.return: void
focal_class.signature: void executeFunctionForBusinessObjectDefinitionEntities(final String indexName,
          final List<BusinessObjectDefinitionEntity> businessObjectDefinitionEntities, final TriConsumer<String, String, String> function)
focal_class.class_method_signature: BusinessObjectDefinitionHelper.getBusinessObjectDefinitionKey(BusinessObjectDefinitionColumnKey businessObjectDefinitionColumnKey)
focal_class.full_signature: public BusinessObjectDefinitionKey getBusinessObjectDefinitionKey(BusinessObjectDefinitionColumnKey businessObjectDefinitionColumnKey)
focal_class.identifier: getBusinessObjectDefinitionKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDefinitionColumnKey businessObjectDefinitionColumnKey)
focal_class.return: BusinessObjectDefinitionKey
focal_class.signature: BusinessObjectDefinitionKey getBusinessObjectDefinitionKey(BusinessObjectDefinitionColumnKey businessObjectDefinitionColumnKey)
focal_class.class_method_signature: BusinessObjectDefinitionHelper.validateBusinessObjectDefinitionKey(BusinessObjectDefinitionKey key)
focal_class.full_signature: public void validateBusinessObjectDefinitionKey(BusinessObjectDefinitionKey key)
focal_class.identifier: validateBusinessObjectDefinitionKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDefinitionKey key)
focal_class.return: void
focal_class.signature: void validateBusinessObjectDefinitionKey(BusinessObjectDefinitionKey key)
focal_class.class_method_signature: BusinessObjectDefinitionHelper.safeObjectMapperWriteValueAsString(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_class.full_signature: public String safeObjectMapperWriteValueAsString(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_class.identifier: safeObjectMapperWriteValueAsString
focal_class.modifiers: public
focal_class.parameters: (final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_class.return: String
focal_class.signature: String safeObjectMapperWriteValueAsString(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_class.class_method_signature: BusinessObjectDefinitionHelper.processTagSearchScoreMultiplier(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_class.full_signature: public void processTagSearchScoreMultiplier(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_class.identifier: processTagSearchScoreMultiplier
focal_class.modifiers: public
focal_class.parameters: (final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_class.return: void
focal_class.signature: void processTagSearchScoreMultiplier(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_method.body: public void validateBusinessObjectDefinitionKey(BusinessObjectDefinitionKey key) throws IllegalArgumentException
      {
          Assert.notNull(key, "A business object definition key must be specified.");
          key.setNamespace(alternateKeyHelper.validateStringParameter("namespace", key.getNamespace()));
          key.setBusinessObjectDefinitionName(
              alternateKeyHelper.validateStringParameter("business object definition name", key.getBusinessObjectDefinitionName()));
      }
focal_method.class_method_signature: BusinessObjectDefinitionHelper.validateBusinessObjectDefinitionKey(BusinessObjectDefinitionKey key)
focal_method.full_signature: public void validateBusinessObjectDefinitionKey(BusinessObjectDefinitionKey key)
focal_method.identifier: validateBusinessObjectDefinitionKey
focal_method.invocations: notNull setNamespace validateStringParameter getNamespace setBusinessObjectDefinitionName validateStringParameter getBusinessObjectDefinitionName
focal_method.modifiers: public
focal_method.parameters: (BusinessObjectDefinitionKey key)
focal_method.return: void
focal_method.signature: void validateBusinessObjectDefinitionKey(BusinessObjectDefinitionKey key)