test_class.declarator: businessObjectDefinitionDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDefinitionDao businessObjectDefinitionDao;
test_class.type: BusinessObjectDefinitionDao
test_class.var_name: businessObjectDefinitionDao
test_class.declarator: businessObjectDefinitionDescriptionSuggestionDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDefinitionDescriptionSuggestionDao businessObjectDefinitionDescriptionSuggestionDao;
test_class.type: BusinessObjectDefinitionDescriptionSuggestionDao
test_class.var_name: businessObjectDefinitionDescriptionSuggestionDao
test_class.declarator: businessObjectDefinitionDescriptionSuggestionStatusDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDefinitionDescriptionSuggestionStatusDao businessObjectDefinitionDescriptionSuggestionStatusDao;
test_class.type: BusinessObjectDefinitionDescriptionSuggestionStatusDao
test_class.var_name: businessObjectDefinitionDescriptionSuggestionStatusDao
test_class.declarator: businessObjectDefinitionDescriptionSuggestionDaoHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private BusinessObjectDefinitionDescriptionSuggestionDaoHelper businessObjectDefinitionDescriptionSuggestionDaoHelper;
test_class.type: BusinessObjectDefinitionDescriptionSuggestionDaoHelper
test_class.var_name: businessObjectDefinitionDescriptionSuggestionDaoHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/BusinessObjectDefinitionDescriptionSuggestionDaoHelperTest.java
test_class.identifier: BusinessObjectDefinitionDescriptionSuggestionDaoHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testGetBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatusWithEmptyStatus()
      {
          // Create the relative entities.
          NamespaceEntity namespaceEntity = namespaceDaoTestHelper.createNamespaceEntity(NAMESPACE);
          BusinessObjectDefinitionEntity businessObjectDefinitionEntity = businessObjectDefinitionDaoTestHelper
              .createBusinessObjectDefinitionEntity(namespaceEntity.getCode(), BDEF_NAME, DATA_PROVIDER_NAME, BDEF_DESCRIPTION);
  
          BusinessObjectDefinitionKey businessObjectDefinitionKey = new BusinessObjectDefinitionKey(NAMESPACE, BDEF_NAME);
  
          BusinessObjectDefinitionDescriptionSuggestionStatusEntity businessObjectDefinitionDescriptionSuggestionStatusEntity =
              businessObjectDefinitionDescriptionSuggestionStatusDaoTestHelper
                  .createBusinessObjectDefinitionDescriptionSuggestionStatusEntity(BDEF_DESCRIPTION_SUGGESTION_STATUS);
  
          // Create new business object definition description suggestion entities.
          BusinessObjectDefinitionDescriptionSuggestionEntity businessObjectDefinitionDescriptionSuggestionEntity =
              new BusinessObjectDefinitionDescriptionSuggestionEntity();
          businessObjectDefinitionDescriptionSuggestionEntity.setBusinessObjectDefinition(businessObjectDefinitionEntity);
          businessObjectDefinitionDescriptionSuggestionEntity.setDescriptionSuggestion(DESCRIPTION_SUGGESTION);
          businessObjectDefinitionDescriptionSuggestionEntity.setUserId(USER_ID);
          businessObjectDefinitionDescriptionSuggestionEntity.setStatus(businessObjectDefinitionDescriptionSuggestionStatusEntity);
  
          BusinessObjectDefinitionDescriptionSuggestionEntity businessObjectDefinitionDescriptionSuggestionEntity2 =
              new BusinessObjectDefinitionDescriptionSuggestionEntity();
          businessObjectDefinitionDescriptionSuggestionEntity2.setBusinessObjectDefinition(businessObjectDefinitionEntity);
          businessObjectDefinitionDescriptionSuggestionEntity2.setDescriptionSuggestion(DESCRIPTION_SUGGESTION_2);
          businessObjectDefinitionDescriptionSuggestionEntity2.setUserId(USER_ID_2);
          businessObjectDefinitionDescriptionSuggestionEntity2.setStatus(businessObjectDefinitionDescriptionSuggestionStatusEntity);
  
          List<BusinessObjectDefinitionDescriptionSuggestionEntity> businessObjectDefinitionDescriptionSuggestionEntities =
              Lists.newArrayList(businessObjectDefinitionDescriptionSuggestionEntity, businessObjectDefinitionDescriptionSuggestionEntity2);
  
          // Setup mock interactions.
          when(businessObjectDefinitionDao.getBusinessObjectDefinitionByKey(businessObjectDefinitionKey)).thenReturn(businessObjectDefinitionEntity);
          when(businessObjectDefinitionDescriptionSuggestionDao
              .getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(businessObjectDefinitionEntity, null))
              .thenReturn(businessObjectDefinitionDescriptionSuggestionEntities);
  
          // Call method under test.
          List<BusinessObjectDefinitionDescriptionSuggestionEntity> result = businessObjectDefinitionDescriptionSuggestionDaoHelper
              .getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(businessObjectDefinitionKey, "");
  
          // Validate results.
          assertThat("Result size does not equal businessObjectDefinitionDescriptionSuggestionEntities.", result.size(),
              is(equalTo(businessObjectDefinitionDescriptionSuggestionEntities.size())));
  
          for (int i = 0; i < result.size(); i++)
          {
              assertThat("Result is not equal businessObjectDefinitionDescriptionSuggestionEntity.", result.get(i),
                  is(equalTo(businessObjectDefinitionDescriptionSuggestionEntities.get(i))));
          }
  
          // Verify mocks interactions.
          verify(businessObjectDefinitionDao).getBusinessObjectDefinitionByKey(businessObjectDefinitionKey);
          verify(businessObjectDefinitionDescriptionSuggestionDao)
              .getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(businessObjectDefinitionEntity, null);
          verifyNoMoreInteractions(businessObjectDefinitionDao, businessObjectDefinitionDescriptionSuggestionDao,
              businessObjectDefinitionDescriptionSuggestionStatusDao);
  
          // Reset the mocks
          reset(businessObjectDefinitionDao);
          reset(businessObjectDefinitionDescriptionSuggestionDao);
  
          // Setup mock interactions.
          when(businessObjectDefinitionDao.getBusinessObjectDefinitionByKey(businessObjectDefinitionKey)).thenReturn(businessObjectDefinitionEntity);
          when(businessObjectDefinitionDescriptionSuggestionDao
              .getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(businessObjectDefinitionEntity, null))
              .thenReturn(businessObjectDefinitionDescriptionSuggestionEntities);
  
          // Call method under test.
          result = businessObjectDefinitionDescriptionSuggestionDaoHelper
              .getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(businessObjectDefinitionKey, "  ");
  
          // Validate results.
          assertThat("Result size does not equal businessObjectDefinitionDescriptionSuggestionEntities.", result.size(),
              is(equalTo(businessObjectDefinitionDescriptionSuggestionEntities.size())));
  
          for (int i = 0; i < result.size(); i++)
          {
              assertThat("Result is not equal businessObjectDefinitionDescriptionSuggestionEntity.", result.get(i),
                  is(equalTo(businessObjectDefinitionDescriptionSuggestionEntities.get(i))));
          }
  
          // Verify mocks interactions.
          verify(businessObjectDefinitionDao).getBusinessObjectDefinitionByKey(businessObjectDefinitionKey);
          verify(businessObjectDefinitionDescriptionSuggestionDao)
              .getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(businessObjectDefinitionEntity, null);
          verifyNoMoreInteractions(businessObjectDefinitionDao, businessObjectDefinitionDescriptionSuggestionDao,
              businessObjectDefinitionDescriptionSuggestionStatusDao);
      }
test_case.class_method_signature: BusinessObjectDefinitionDescriptionSuggestionDaoHelperTest.testGetBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatusWithEmptyStatus()
test_case.full_signature: @Test public void testGetBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatusWithEmptyStatus()
test_case.identifier: testGetBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatusWithEmptyStatus
test_case.invocations: createNamespaceEntity createBusinessObjectDefinitionEntity getCode createBusinessObjectDefinitionDescriptionSuggestionStatusEntity setBusinessObjectDefinition setDescriptionSuggestion setUserId setStatus setBusinessObjectDefinition setDescriptionSuggestion setUserId setStatus newArrayList thenReturn when getBusinessObjectDefinitionByKey thenReturn when getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus assertThat size is equalTo size size assertThat get is equalTo get getBusinessObjectDefinitionByKey verify getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus verify verifyNoMoreInteractions reset reset thenReturn when getBusinessObjectDefinitionByKey thenReturn when getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus assertThat size is equalTo size size assertThat get is equalTo get getBusinessObjectDefinitionByKey verify getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus verify verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatusWithEmptyStatus()
focal_class.declarator: businessObjectDefinitionDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDefinitionDao businessObjectDefinitionDao;
focal_class.type: BusinessObjectDefinitionDao
focal_class.var_name: businessObjectDefinitionDao
focal_class.declarator: businessObjectDefinitionDescriptionSuggestionDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDefinitionDescriptionSuggestionDao businessObjectDefinitionDescriptionSuggestionDao;
focal_class.type: BusinessObjectDefinitionDescriptionSuggestionDao
focal_class.var_name: businessObjectDefinitionDescriptionSuggestionDao
focal_class.declarator: businessObjectDefinitionDescriptionSuggestionStatusDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDefinitionDescriptionSuggestionStatusDao businessObjectDefinitionDescriptionSuggestionStatusDao;
focal_class.type: BusinessObjectDefinitionDescriptionSuggestionStatusDao
focal_class.var_name: businessObjectDefinitionDescriptionSuggestionStatusDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/BusinessObjectDefinitionDescriptionSuggestionDaoHelper.java
focal_class.identifier: BusinessObjectDefinitionDescriptionSuggestionDaoHelper
focal_class.class_method_signature: BusinessObjectDefinitionDescriptionSuggestionDaoHelper.getBusinessObjectDefinitionDescriptionSuggestionEntity(
          final BusinessObjectDefinitionEntity businessObjectDefinitionEntity, final String userId)
focal_class.full_signature: public BusinessObjectDefinitionDescriptionSuggestionEntity getBusinessObjectDefinitionDescriptionSuggestionEntity(
          final BusinessObjectDefinitionEntity businessObjectDefinitionEntity, final String userId)
focal_class.identifier: getBusinessObjectDefinitionDescriptionSuggestionEntity
focal_class.modifiers: public
focal_class.parameters: (
          final BusinessObjectDefinitionEntity businessObjectDefinitionEntity, final String userId)
focal_class.return: BusinessObjectDefinitionDescriptionSuggestionEntity
focal_class.signature: BusinessObjectDefinitionDescriptionSuggestionEntity getBusinessObjectDefinitionDescriptionSuggestionEntity(
          final BusinessObjectDefinitionEntity businessObjectDefinitionEntity, final String userId)
focal_class.class_method_signature: BusinessObjectDefinitionDescriptionSuggestionDaoHelper.getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)
focal_class.full_signature: public List<BusinessObjectDefinitionDescriptionSuggestionEntity> getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)
focal_class.identifier: getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus
focal_class.modifiers: public
focal_class.parameters: (
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)
focal_class.return: List<BusinessObjectDefinitionDescriptionSuggestionEntity>
focal_class.signature: List<BusinessObjectDefinitionDescriptionSuggestionEntity> getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)
focal_method.body: public List<BusinessObjectDefinitionDescriptionSuggestionEntity> getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)
      {
          // Retrieve the business object definition and ensure it exists.
          BusinessObjectDefinitionEntity businessObjectDefinitionEntity =
              businessObjectDefinitionDao.getBusinessObjectDefinitionByKey(businessObjectDefinitionKey);
  
          // If the business object definition entity does not exist return an empty list.
          if (businessObjectDefinitionEntity == null)
          {
              return Lists.newArrayList();
          }
  
          // First get the status entity.
          BusinessObjectDefinitionDescriptionSuggestionStatusEntity businessObjectDefinitionDescriptionSuggestionStatusEntity = null;
          if (StringUtils.isNotBlank(status))
          {
              // Attempt to find the status entity associated with the status string.
              businessObjectDefinitionDescriptionSuggestionStatusEntity =
                  businessObjectDefinitionDescriptionSuggestionStatusDao.getBusinessObjectDefinitionDescriptionSuggestionStatusByCode(status);
  
              // If the status was not found in the status table return an empty list.
              if (businessObjectDefinitionDescriptionSuggestionStatusEntity == null)
              {
                  return Lists.newArrayList();
              }
          }
  
          // The list of business object definition description suggestions.
          List<BusinessObjectDefinitionDescriptionSuggestionEntity> businessObjectDefinitionDescriptionSuggestionEntities =
              businessObjectDefinitionDescriptionSuggestionDao
                  .getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(businessObjectDefinitionEntity,
                      businessObjectDefinitionDescriptionSuggestionStatusEntity);
  
          // If business object definition description suggestion entities do not exist return an empty list.
          if (businessObjectDefinitionDescriptionSuggestionEntities == null)
          {
              return Lists.newArrayList();
          }
  
          return businessObjectDefinitionDescriptionSuggestionEntities;
      }
focal_method.class_method_signature: BusinessObjectDefinitionDescriptionSuggestionDaoHelper.getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)
focal_method.full_signature: public List<BusinessObjectDefinitionDescriptionSuggestionEntity> getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)
focal_method.identifier: getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus
focal_method.invocations: getBusinessObjectDefinitionByKey newArrayList isNotBlank getBusinessObjectDefinitionDescriptionSuggestionStatusByCode newArrayList getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus newArrayList
focal_method.modifiers: public
focal_method.parameters: (
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)
focal_method.return: List<BusinessObjectDefinitionDescriptionSuggestionEntity>
focal_method.signature: List<BusinessObjectDefinitionDescriptionSuggestionEntity> getBusinessObjectDefinitionDescriptionSuggestionsByBusinessObjectDefinitionAndStatus(
          final BusinessObjectDefinitionKey businessObjectDefinitionKey, final String status)