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: businessObjectDataHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDataHelper businessObjectDataHelper;
test_class.type: BusinessObjectDataHelper
test_class.var_name: businessObjectDataHelper
test_class.declarator: storageFileHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private StorageFileHelper storageFileHelper;
test_class.type: StorageFileHelper
test_class.var_name: storageFileHelper
test_class.declarator: storageUnitHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private StorageUnitHelper storageUnitHelper;
test_class.type: StorageUnitHelper
test_class.var_name: storageUnitHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/StorageUnitHelperTest.java
test_class.identifier: StorageUnitHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testValidateBusinessObjectDataStorageUnitKey()
      {
          // Create a business object data storage unit key.
          BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey =
              new BusinessObjectDataStorageUnitKey(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE,
                  SUBPARTITION_VALUES, DATA_VERSION, STORAGE_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);
          when(alternateKeyHelper.validateStringParameter("business object format usage", FORMAT_USAGE_CODE)).thenReturn(FORMAT_USAGE_CODE);
          when(alternateKeyHelper.validateStringParameter("business object format file type", FORMAT_FILE_TYPE_CODE)).thenReturn(FORMAT_FILE_TYPE_CODE);
          when(alternateKeyHelper.validateStringParameter("partition value", PARTITION_VALUE)).thenReturn(PARTITION_VALUE);
          when(alternateKeyHelper.validateStringParameter("storage name", STORAGE_NAME)).thenReturn(STORAGE_NAME);
  
          // Call the method under test.
          storageUnitHelper.validateBusinessObjectDataStorageUnitKey(businessObjectDataStorageUnitKey);
  
          // Verify the external calls.
          verify(alternateKeyHelper).validateStringParameter("namespace", BDEF_NAMESPACE);
          verify(alternateKeyHelper).validateStringParameter("business object definition name", BDEF_NAME);
          verify(alternateKeyHelper).validateStringParameter("business object format usage", FORMAT_USAGE_CODE);
          verify(alternateKeyHelper).validateStringParameter("business object format file type", FORMAT_FILE_TYPE_CODE);
          verify(alternateKeyHelper).validateStringParameter("partition value", PARTITION_VALUE);
          verify(businessObjectDataHelper).validateSubPartitionValues(SUBPARTITION_VALUES);
          verify(alternateKeyHelper).validateStringParameter("storage name", STORAGE_NAME);
          verifyNoMoreInteractionsHelper();
      }
test_case.class_method_signature: StorageUnitHelperTest.testValidateBusinessObjectDataStorageUnitKey()
test_case.full_signature: @Test public void testValidateBusinessObjectDataStorageUnitKey()
test_case.identifier: testValidateBusinessObjectDataStorageUnitKey
test_case.invocations: thenReturn when validateStringParameter thenReturn when validateStringParameter thenReturn when validateStringParameter thenReturn when validateStringParameter thenReturn when validateStringParameter thenReturn when validateStringParameter validateBusinessObjectDataStorageUnitKey validateStringParameter verify validateStringParameter verify validateStringParameter verify validateStringParameter verify validateStringParameter verify validateSubPartitionValues verify validateStringParameter verify verifyNoMoreInteractionsHelper
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateBusinessObjectDataStorageUnitKey()
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: storageFileHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private StorageFileHelper storageFileHelper;
focal_class.type: StorageFileHelper
focal_class.var_name: storageFileHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/StorageUnitHelper.java
focal_class.identifier: StorageUnitHelper
focal_class.class_method_signature: StorageUnitHelper.createBusinessObjectDataStorageUnitKey(BusinessObjectDataKey businessObjectDataKey, String storageName)
focal_class.full_signature: public BusinessObjectDataStorageUnitKey createBusinessObjectDataStorageUnitKey(BusinessObjectDataKey businessObjectDataKey, String storageName)
focal_class.identifier: createBusinessObjectDataStorageUnitKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataKey businessObjectDataKey, String storageName)
focal_class.return: BusinessObjectDataStorageUnitKey
focal_class.signature: BusinessObjectDataStorageUnitKey createBusinessObjectDataStorageUnitKey(BusinessObjectDataKey businessObjectDataKey, String storageName)
focal_class.class_method_signature: StorageUnitHelper.createStorageUnitKey(BusinessObjectDataKey businessObjectDataKey, String storageName)
focal_class.full_signature: public BusinessObjectDataStorageUnitKey createStorageUnitKey(BusinessObjectDataKey businessObjectDataKey, String storageName)
focal_class.identifier: createStorageUnitKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataKey businessObjectDataKey, String storageName)
focal_class.return: BusinessObjectDataStorageUnitKey
focal_class.signature: BusinessObjectDataStorageUnitKey createStorageUnitKey(BusinessObjectDataKey businessObjectDataKey, String storageName)
focal_class.class_method_signature: StorageUnitHelper.createStorageUnitKeyFromEntity(StorageUnitEntity storageUnitEntity)
focal_class.full_signature: public BusinessObjectDataStorageUnitKey createStorageUnitKeyFromEntity(StorageUnitEntity storageUnitEntity)
focal_class.identifier: createStorageUnitKeyFromEntity
focal_class.modifiers: public
focal_class.parameters: (StorageUnitEntity storageUnitEntity)
focal_class.return: BusinessObjectDataStorageUnitKey
focal_class.signature: BusinessObjectDataStorageUnitKey createStorageUnitKeyFromEntity(StorageUnitEntity storageUnitEntity)
focal_class.class_method_signature: StorageUnitHelper.createStorageUnitsFromEntities(Collection<StorageUnitEntity> storageUnitEntities, Boolean includeStorageUnitStatusHistory,
          Boolean excludeBusinessObjectDataStorageFiles)
focal_class.full_signature:  List<StorageUnit> createStorageUnitsFromEntities(Collection<StorageUnitEntity> storageUnitEntities, Boolean includeStorageUnitStatusHistory,
          Boolean excludeBusinessObjectDataStorageFiles)
focal_class.identifier: createStorageUnitsFromEntities
focal_class.parameters: (Collection<StorageUnitEntity> storageUnitEntities, Boolean includeStorageUnitStatusHistory,
          Boolean excludeBusinessObjectDataStorageFiles)
focal_class.return: List<StorageUnit>
focal_class.signature: List<StorageUnit> createStorageUnitsFromEntities(Collection<StorageUnitEntity> storageUnitEntities, Boolean includeStorageUnitStatusHistory,
          Boolean excludeBusinessObjectDataStorageFiles)
focal_class.class_method_signature: StorageUnitHelper.excludeBusinessObjectDataStatus(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos,
          String excludedBusinessObjectDataStatus)
focal_class.full_signature: public List<StorageUnitAvailabilityDto> excludeBusinessObjectDataStatus(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos,
          String excludedBusinessObjectDataStatus)
focal_class.identifier: excludeBusinessObjectDataStatus
focal_class.modifiers: public
focal_class.parameters: (List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos,
          String excludedBusinessObjectDataStatus)
focal_class.return: List<StorageUnitAvailabilityDto>
focal_class.signature: List<StorageUnitAvailabilityDto> excludeBusinessObjectDataStatus(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos,
          String excludedBusinessObjectDataStatus)
focal_class.class_method_signature: StorageUnitHelper.excludePartitions(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos,
          List<List<String>> excludedPartitions)
focal_class.full_signature: public List<StorageUnitAvailabilityDto> excludePartitions(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos,
          List<List<String>> excludedPartitions)
focal_class.identifier: excludePartitions
focal_class.modifiers: public
focal_class.parameters: (List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos,
          List<List<String>> excludedPartitions)
focal_class.return: List<StorageUnitAvailabilityDto>
focal_class.signature: List<StorageUnitAvailabilityDto> excludePartitions(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos,
          List<List<String>> excludedPartitions)
focal_class.class_method_signature: StorageUnitHelper.getBusinessObjectDataKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.full_signature: public BusinessObjectDataKey getBusinessObjectDataKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.identifier: getBusinessObjectDataKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.return: BusinessObjectDataKey
focal_class.signature: BusinessObjectDataKey getBusinessObjectDataKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.class_method_signature: StorageUnitHelper.getStorageUnitIds(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
focal_class.full_signature: public List<Integer> getStorageUnitIds(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
focal_class.identifier: getStorageUnitIds
focal_class.modifiers: public
focal_class.parameters: (List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> getStorageUnitIds(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
focal_class.class_method_signature: StorageUnitHelper.validateBusinessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey key)
focal_class.full_signature: public void validateBusinessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey key)
focal_class.identifier: validateBusinessObjectDataStorageUnitKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataStorageUnitKey key)
focal_class.return: void
focal_class.signature: void validateBusinessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey key)
focal_method.body: public void validateBusinessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey key)
      {
          Assert.notNull(key, "A business object data storage unit key must be specified.");
          key.setNamespace(alternateKeyHelper.validateStringParameter("namespace", key.getNamespace()));
          key.setBusinessObjectDefinitionName(
              alternateKeyHelper.validateStringParameter("business object definition name", key.getBusinessObjectDefinitionName()));
          key.setBusinessObjectFormatUsage(alternateKeyHelper.validateStringParameter("business object format usage", key.getBusinessObjectFormatUsage()));
          key.setBusinessObjectFormatFileType(
              alternateKeyHelper.validateStringParameter("business object format file type", key.getBusinessObjectFormatFileType()));
          Assert.notNull(key.getBusinessObjectFormatVersion(), "A business object format version must be specified.");
          key.setPartitionValue(alternateKeyHelper.validateStringParameter("partition value", key.getPartitionValue()));
          businessObjectDataHelper.validateSubPartitionValues(key.getSubPartitionValues());
          Assert.notNull(key.getBusinessObjectDataVersion(), "A business object data version must be specified.");
          key.setStorageName(alternateKeyHelper.validateStringParameter("storage name", key.getStorageName()));
      }
focal_method.class_method_signature: StorageUnitHelper.validateBusinessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey key)
focal_method.full_signature: public void validateBusinessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey key)
focal_method.identifier: validateBusinessObjectDataStorageUnitKey
focal_method.invocations: notNull setNamespace validateStringParameter getNamespace setBusinessObjectDefinitionName validateStringParameter getBusinessObjectDefinitionName setBusinessObjectFormatUsage validateStringParameter getBusinessObjectFormatUsage setBusinessObjectFormatFileType validateStringParameter getBusinessObjectFormatFileType notNull getBusinessObjectFormatVersion setPartitionValue validateStringParameter getPartitionValue validateSubPartitionValues getSubPartitionValues notNull getBusinessObjectDataVersion setStorageName validateStringParameter getStorageName
focal_method.modifiers: public
focal_method.parameters: (BusinessObjectDataStorageUnitKey key)
focal_method.return: void
focal_method.signature: void validateBusinessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey key)