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 testGetStorageUnitIds()
      {
          // Create a storage unit availability DTOs.
          StorageUnitAvailabilityDto storageUnitAvailabilityDto1 = new StorageUnitAvailabilityDto();
          storageUnitAvailabilityDto1.setStorageUnitId(INTEGER_VALUE);
          StorageUnitAvailabilityDto storageUnitAvailabilityDto2 = new StorageUnitAvailabilityDto();
          storageUnitAvailabilityDto2.setStorageUnitId(INTEGER_VALUE_2);
  
          // Get a list of storage unit ids.
          List<Integer> result = storageUnitHelper.getStorageUnitIds(Arrays.asList(storageUnitAvailabilityDto1, storageUnitAvailabilityDto2));
  
          // Validate the returned object.
          assertEquals(Arrays.asList(INTEGER_VALUE, INTEGER_VALUE_2), result);
  
          // Get a list of storage unit ids when the list of entities is empty.
          result = storageUnitHelper.getStorageUnitIds(new ArrayList<>());
  
          // Validate the returned object.
          assertNotNull(result);
          assertEquals(0, result.size());
      }
test_case.class_method_signature: StorageUnitHelperTest.testGetStorageUnitIds()
test_case.full_signature: @Test public void testGetStorageUnitIds()
test_case.identifier: testGetStorageUnitIds
test_case.invocations: setStorageUnitId setStorageUnitId getStorageUnitIds asList assertEquals asList getStorageUnitIds assertNotNull assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetStorageUnitIds()
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 List<Integer> getStorageUnitIds(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
      {
          List<Integer> storageUnitIds = new ArrayList<>(storageUnitAvailabilityDtos.size());
  
          for (StorageUnitAvailabilityDto storageUnitAvailabilityDto : storageUnitAvailabilityDtos)
          {
              storageUnitIds.add(storageUnitAvailabilityDto.getStorageUnitId());
          }
  
          return storageUnitIds;
      }
focal_method.class_method_signature: StorageUnitHelper.getStorageUnitIds(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
focal_method.full_signature: public List<Integer> getStorageUnitIds(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
focal_method.identifier: getStorageUnitIds
focal_method.invocations: size add getStorageUnitId
focal_method.modifiers: public
focal_method.parameters: (List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
focal_method.return: List<Integer>
focal_method.signature: List<Integer> getStorageUnitIds(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)