test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/BusinessObjectDataSearchHelperTest.java
test_class.identifier: BusinessObjectDataSearchHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testValidateBusinessObjectDataSearchRequestInvalidValues()
      {
          try
          {
              businessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(
                  new BusinessObjectDataSearchRequest(Arrays.asList(new BusinessObjectDataSearchFilter(), new BusinessObjectDataSearchFilter())));
              fail();
          }
          catch (IllegalArgumentException e)
          {
              assertEquals("A list of business object data search filters can only have one element.", e.getMessage());
          }
  
          try
          {
              businessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(new BusinessObjectDataSearchRequest(Collections
                  .singletonList(new BusinessObjectDataSearchFilter(Arrays.asList(new BusinessObjectDataSearchKey(), new BusinessObjectDataSearchKey())))));
              fail();
          }
          catch (IllegalArgumentException e)
          {
              assertEquals("A list of business object data search keys can only have one element.", e.getMessage());
          }
      }
test_case.class_method_signature: BusinessObjectDataSearchHelperTest.testValidateBusinessObjectDataSearchRequestInvalidValues()
test_case.full_signature: @Test public void testValidateBusinessObjectDataSearchRequestInvalidValues()
test_case.identifier: testValidateBusinessObjectDataSearchRequestInvalidValues
test_case.invocations: validateBusinessObjectDataSearchRequest asList fail assertEquals getMessage validateBusinessObjectDataSearchRequest singletonList asList fail assertEquals getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateBusinessObjectDataSearchRequestInvalidValues()
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.declarator: configurationHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ConfigurationHelper configurationHelper;
focal_class.type: ConfigurationHelper
focal_class.var_name: configurationHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/BusinessObjectDataSearchHelper.java
focal_class.identifier: BusinessObjectDataSearchHelper
focal_class.class_method_signature: BusinessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(BusinessObjectDataSearchRequest businessObjectDataSearchRequest)
focal_class.full_signature: public void validateBusinessObjectDataSearchRequest(BusinessObjectDataSearchRequest businessObjectDataSearchRequest)
focal_class.identifier: validateBusinessObjectDataSearchRequest
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataSearchRequest businessObjectDataSearchRequest)
focal_class.return: void
focal_class.signature: void validateBusinessObjectDataSearchRequest(BusinessObjectDataSearchRequest businessObjectDataSearchRequest)
focal_class.class_method_signature: BusinessObjectDataSearchHelper.validatePagingParameter(String parameterName, Integer parameterValue, Integer defaultParameterValue, Integer maxParameterValue)
focal_class.full_signature: public Integer validatePagingParameter(String parameterName, Integer parameterValue, Integer defaultParameterValue, Integer maxParameterValue)
focal_class.identifier: validatePagingParameter
focal_class.modifiers: public
focal_class.parameters: (String parameterName, Integer parameterValue, Integer defaultParameterValue, Integer maxParameterValue)
focal_class.return: Integer
focal_class.signature: Integer validatePagingParameter(String parameterName, Integer parameterValue, Integer defaultParameterValue, Integer maxParameterValue)
focal_class.class_method_signature: BusinessObjectDataSearchHelper.validateBusinessObjectDataSearchKey(BusinessObjectDataSearchKey businessObjectDataSearchKey)
focal_class.full_signature:  void validateBusinessObjectDataSearchKey(BusinessObjectDataSearchKey businessObjectDataSearchKey)
focal_class.identifier: validateBusinessObjectDataSearchKey
focal_class.parameters: (BusinessObjectDataSearchKey businessObjectDataSearchKey)
focal_class.return: void
focal_class.signature: void validateBusinessObjectDataSearchKey(BusinessObjectDataSearchKey businessObjectDataSearchKey)
focal_method.body: public void validateBusinessObjectDataSearchRequest(BusinessObjectDataSearchRequest businessObjectDataSearchRequest)
      {
          Assert.notNull(businessObjectDataSearchRequest, "A business object data search request must be specified.");
  
          List<BusinessObjectDataSearchFilter> businessObjectDataSearchFilters = businessObjectDataSearchRequest.getBusinessObjectDataSearchFilters();
  
          Assert.isTrue(CollectionUtils.isNotEmpty(businessObjectDataSearchFilters), "A business object data search filter must be specified.");
  
          Assert.isTrue(businessObjectDataSearchFilters.size() == 1, "A list of business object data search filters can only have one element.");
  
          BusinessObjectDataSearchFilter businessObjectDataSearchFilter = businessObjectDataSearchFilters.get(0);
          List<BusinessObjectDataSearchKey> businessObjectDataSearchKeys = businessObjectDataSearchFilter.getBusinessObjectDataSearchKeys();
  
          Assert.isTrue(CollectionUtils.isNotEmpty(businessObjectDataSearchKeys), "A business object data search key must be specified.");
  
          Assert.isTrue(businessObjectDataSearchKeys.size() == 1, "A list of business object data search keys can only have one element.");
  
          validateBusinessObjectDataSearchKey(businessObjectDataSearchKeys.get(0));
      }
focal_method.class_method_signature: BusinessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(BusinessObjectDataSearchRequest businessObjectDataSearchRequest)
focal_method.full_signature: public void validateBusinessObjectDataSearchRequest(BusinessObjectDataSearchRequest businessObjectDataSearchRequest)
focal_method.identifier: validateBusinessObjectDataSearchRequest
focal_method.invocations: notNull getBusinessObjectDataSearchFilters isTrue isNotEmpty isTrue size get getBusinessObjectDataSearchKeys isTrue isNotEmpty isTrue size validateBusinessObjectDataSearchKey get
focal_method.modifiers: public
focal_method.parameters: (BusinessObjectDataSearchRequest businessObjectDataSearchRequest)
focal_method.return: void
focal_method.signature: void validateBusinessObjectDataSearchRequest(BusinessObjectDataSearchRequest businessObjectDataSearchRequest)