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 testProcessTagSearchScoreMultiplierTagsEmpty()
      {
  
          // Create a business object definition entity
          final BusinessObjectDefinitionEntity businessObjectDefinitionEntity = businessObjectDefinitionDaoTestHelper
              .createBusinessObjectDefinitionEntity(BDEF_NAMESPACE, BDEF_NAME, DATA_PROVIDER_NAME, BDEF_DESCRIPTION,
                  businessObjectDefinitionServiceTestHelper.getNewAttributes2());
  
          // Associate business object definition entity with no tag entities
          List<BusinessObjectDefinitionTagEntity> businessObjectDefinitionTagEntities = new ArrayList<>();
          businessObjectDefinitionEntity.setBusinessObjectDefinitionTags(businessObjectDefinitionTagEntities);
  
          // Call the method under test
          businessObjectDefinitionHelper.processTagSearchScoreMultiplier(businessObjectDefinitionEntity);
  
          // Validate the result
          assertEquals(businessObjectDefinitionEntity.getTagSearchScoreMultiplier(), BigDecimal.ONE.setScale(3, RoundingMode.HALF_UP));
      }
test_case.class_method_signature: BusinessObjectDefinitionHelperTest.testProcessTagSearchScoreMultiplierTagsEmpty()
test_case.full_signature: @Test public void testProcessTagSearchScoreMultiplierTagsEmpty()
test_case.identifier: testProcessTagSearchScoreMultiplierTagsEmpty
test_case.invocations: createBusinessObjectDefinitionEntity getNewAttributes2 setBusinessObjectDefinitionTags processTagSearchScoreMultiplier assertEquals getTagSearchScoreMultiplier setScale
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testProcessTagSearchScoreMultiplierTagsEmpty()
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 processTagSearchScoreMultiplier(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
      {
          LOGGER.debug("processTagSearchScoreMultiplier " + businessObjectDefinitionEntity.getId() + " " +
              businessObjectDefinitionEntity.getBusinessObjectDefinitionTags());
          BigDecimal totalSearchScoreMultiplier =
              businessObjectDefinitionEntity.getBusinessObjectDefinitionTags().stream().filter(item -> item.getTag().getSearchScoreMultiplier() != null)
                  .reduce(BigDecimal.ONE, (bd, item) -> bd.multiply(item.getTag().getSearchScoreMultiplier()), BigDecimal::multiply)
                  .setScale(3, RoundingMode.HALF_UP);
          businessObjectDefinitionEntity.setTagSearchScoreMultiplier(totalSearchScoreMultiplier);
      }
focal_method.class_method_signature: BusinessObjectDefinitionHelper.processTagSearchScoreMultiplier(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_method.full_signature: public void processTagSearchScoreMultiplier(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_method.identifier: processTagSearchScoreMultiplier
focal_method.invocations: debug getId getBusinessObjectDefinitionTags setScale reduce filter stream getBusinessObjectDefinitionTags getSearchScoreMultiplier getTag multiply getSearchScoreMultiplier getTag setTagSearchScoreMultiplier
focal_method.modifiers: public
focal_method.parameters: (final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)
focal_method.return: void
focal_method.signature: void processTagSearchScoreMultiplier(final BusinessObjectDefinitionEntity businessObjectDefinitionEntity)