test_class.declarator: mockBusinessObjectDataDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDataDao mockBusinessObjectDataDao;
test_class.type: BusinessObjectDataDao
test_class.var_name: mockBusinessObjectDataDao
test_class.declarator: mockBusinessObjectDataDaoHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDataDaoHelper mockBusinessObjectDataDaoHelper;
test_class.type: BusinessObjectDataDaoHelper
test_class.var_name: mockBusinessObjectDataDaoHelper
test_class.declarator: mockBusinessObjectDataHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDataHelper mockBusinessObjectDataHelper;
test_class.type: BusinessObjectDataHelper
test_class.var_name: mockBusinessObjectDataHelper
test_class.declarator: cleanupDestroyedBusinessObjectDataService
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private CleanupDestroyedBusinessObjectDataServiceImpl cleanupDestroyedBusinessObjectDataService;
test_class.type: CleanupDestroyedBusinessObjectDataServiceImpl
test_class.var_name: cleanupDestroyedBusinessObjectDataService
test_class.declarator: mockNotificationEventService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private NotificationEventService mockNotificationEventService;
test_class.type: NotificationEventService
test_class.var_name: mockNotificationEventService
test_class.declarator: mockStorageUnitDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private StorageUnitDao mockStorageUnitDao;
test_class.type: StorageUnitDao
test_class.var_name: mockStorageUnitDao
test_class.declarator: mockStorageUnitHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private StorageUnitHelper mockStorageUnitHelper;
test_class.type: StorageUnitHelper
test_class.var_name: mockStorageUnitHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/impl/CleanupDestroyedBusinessObjectDataServiceImplTest.java
test_class.identifier: CleanupDestroyedBusinessObjectDataServiceImplTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testGetS3StorageUnitsToCleanup()
      {
          // Create a storage unit entity.
          StorageUnitEntity storageUnitEntity = new StorageUnitEntity();
  
          // Create a list of storage unit entities.
          List<StorageUnitEntity> storageUnitEntities = Collections.singletonList(storageUnitEntity);
  
          // Create a storage unit key.
          BusinessObjectDataStorageUnitKey storageUnitKey =
              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(mockStorageUnitDao.getS3StorageUnitsToCleanup(MAX_RESULT)).thenReturn(storageUnitEntities);
          when(mockStorageUnitHelper.createStorageUnitKeyFromEntity(storageUnitEntity)).thenReturn(storageUnitKey);
  
          // Call the method under test.
          List<BusinessObjectDataStorageUnitKey> result = cleanupDestroyedBusinessObjectDataService.getS3StorageUnitsToCleanup(MAX_RESULT);
  
          // Verify the external calls.
          verify(mockStorageUnitDao).getS3StorageUnitsToCleanup(MAX_RESULT);
          verify(mockStorageUnitHelper).createStorageUnitKeyFromEntity(storageUnitEntity);
          verifyNoMoreInteractionsHelper();
  
          // Validate the result.
          assertEquals(Collections.singletonList(storageUnitKey), result);
      }
test_case.class_method_signature: CleanupDestroyedBusinessObjectDataServiceImplTest.testGetS3StorageUnitsToCleanup()
test_case.full_signature: @Test public void testGetS3StorageUnitsToCleanup()
test_case.identifier: testGetS3StorageUnitsToCleanup
test_case.invocations: singletonList thenReturn when getS3StorageUnitsToCleanup thenReturn when createStorageUnitKeyFromEntity getS3StorageUnitsToCleanup getS3StorageUnitsToCleanup verify createStorageUnitKeyFromEntity verify verifyNoMoreInteractionsHelper assertEquals singletonList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetS3StorageUnitsToCleanup()
focal_class.declarator: businessObjectDataDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDataDao businessObjectDataDao;
focal_class.type: BusinessObjectDataDao
focal_class.var_name: businessObjectDataDao
focal_class.declarator: businessObjectDataDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDataDaoHelper businessObjectDataDaoHelper;
focal_class.type: BusinessObjectDataDaoHelper
focal_class.var_name: businessObjectDataDaoHelper
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: notificationEventService
focal_class.modifier: @Autowired
      @Lazy
      private
focal_class.original_string: @Autowired
      @Lazy
      private NotificationEventService notificationEventService;
focal_class.type: NotificationEventService
focal_class.var_name: notificationEventService
focal_class.declarator: storageUnitDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private StorageUnitDao storageUnitDao;
focal_class.type: StorageUnitDao
focal_class.var_name: storageUnitDao
focal_class.declarator: storageUnitHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private StorageUnitHelper storageUnitHelper;
focal_class.type: StorageUnitHelper
focal_class.var_name: storageUnitHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/impl/CleanupDestroyedBusinessObjectDataServiceImpl.java
focal_class.identifier: CleanupDestroyedBusinessObjectDataServiceImpl
focal_class.interfaces: implements CleanupDestroyedBusinessObjectDataService
focal_class.class_method_signature: CleanupDestroyedBusinessObjectDataServiceImpl.cleanupS3StorageUnit(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.full_signature: @PublishNotificationMessages @Override @Transactional(propagation = Propagation.REQUIRES_NEW) public void cleanupS3StorageUnit(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.identifier: cleanupS3StorageUnit
focal_class.modifiers: @PublishNotificationMessages @Override @Transactional(propagation = Propagation.REQUIRES_NEW) public
focal_class.parameters: (BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.return: void
focal_class.signature: void cleanupS3StorageUnit(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.class_method_signature: CleanupDestroyedBusinessObjectDataServiceImpl.getS3StorageUnitsToCleanup(int maxResult)
focal_class.full_signature: @Override @Transactional(propagation = Propagation.NOT_SUPPORTED) public List<BusinessObjectDataStorageUnitKey> getS3StorageUnitsToCleanup(int maxResult)
focal_class.identifier: getS3StorageUnitsToCleanup
focal_class.modifiers: @Override @Transactional(propagation = Propagation.NOT_SUPPORTED) public
focal_class.parameters: (int maxResult)
focal_class.return: List<BusinessObjectDataStorageUnitKey>
focal_class.signature: List<BusinessObjectDataStorageUnitKey> getS3StorageUnitsToCleanup(int maxResult)
focal_class.class_method_signature: CleanupDestroyedBusinessObjectDataServiceImpl.cleanupS3StorageUnitImpl(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.full_signature:  void cleanupS3StorageUnitImpl(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.identifier: cleanupS3StorageUnitImpl
focal_class.parameters: (BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.return: void
focal_class.signature: void cleanupS3StorageUnitImpl(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey)
focal_class.class_method_signature: CleanupDestroyedBusinessObjectDataServiceImpl.getS3StorageUnitsToCleanupImpl(int maxResult)
focal_class.full_signature:  List<BusinessObjectDataStorageUnitKey> getS3StorageUnitsToCleanupImpl(int maxResult)
focal_class.identifier: getS3StorageUnitsToCleanupImpl
focal_class.parameters: (int maxResult)
focal_class.return: List<BusinessObjectDataStorageUnitKey>
focal_class.signature: List<BusinessObjectDataStorageUnitKey> getS3StorageUnitsToCleanupImpl(int maxResult)
focal_method.body: @Override
      @Transactional(propagation = Propagation.NOT_SUPPORTED)
      public List<BusinessObjectDataStorageUnitKey> getS3StorageUnitsToCleanup(int maxResult)
      {
          return getS3StorageUnitsToCleanupImpl(maxResult);
      }
focal_method.class_method_signature: CleanupDestroyedBusinessObjectDataServiceImpl.getS3StorageUnitsToCleanup(int maxResult)
focal_method.full_signature: @Override @Transactional(propagation = Propagation.NOT_SUPPORTED) public List<BusinessObjectDataStorageUnitKey> getS3StorageUnitsToCleanup(int maxResult)
focal_method.identifier: getS3StorageUnitsToCleanup
focal_method.invocations: getS3StorageUnitsToCleanupImpl
focal_method.modifiers: @Override @Transactional(propagation = Propagation.NOT_SUPPORTED) public
focal_method.parameters: (int maxResult)
focal_method.return: List<BusinessObjectDataStorageUnitKey>
focal_method.signature: List<BusinessObjectDataStorageUnitKey> getS3StorageUnitsToCleanup(int maxResult)