Date primaryPartitionValue = businessObjectDataHelper.getDateFromString(businessObjectDataEntity.getPartitionValue());
Date primaryPartitionValue = businessObjectDataHelper.getDateFromString(businessObjectDataEntity.getPartitionValue());
Date primaryPartitionValue = businessObjectDataHelper.getDateFromString(businessObjectDataEntity.getPartitionValue());
Date primaryPartitionValue = businessObjectDataHelper.getDateFromString(businessObjectDataEntity.getPartitionValue());
when(businessObjectDataHelper.getDateFromString(PARTITION_VALUE)).thenReturn(primaryPartitionValueDate); when(herdDao.getCurrentTimestamp()).thenReturn(currentTimestamp); when(businessObjectDataHelper.businessObjectDataKeyToString(businessObjectDataKey)).thenReturn(BUSINESS_OBJECT_DATA_KEY_AS_STRING); verify(businessObjectDataHelper).getDateFromString(PARTITION_VALUE); verify(businessObjectDataHelper).businessObjectDataKeyToString(businessObjectDataKey); verify(herdDao).getCurrentTimestamp();
when(businessObjectDataHelper.getDateFromString(PARTITION_VALUE)).thenReturn(null); when(businessObjectDataHelper.businessObjectDataKeyToString(businessObjectDataKey)).thenReturn(BUSINESS_OBJECT_DATA_KEY_AS_STRING); when(herdDao.getCurrentTimestamp()).thenReturn(currentTimestamp); verify(businessObjectDataHelper).getDateFromString(PARTITION_VALUE); verify(businessObjectDataHelper).businessObjectDataKeyToString(businessObjectDataKey); verify(herdDao).getCurrentTimestamp();
.thenReturn(BDATA_FINAL_DESTROY_DELAY_IN_DAYS); when(businessObjectDataDaoHelper.getBusinessObjectDataEntity(businessObjectDataKey)).thenReturn(businessObjectDataEntity); when(businessObjectDataHelper.getDateFromString(PARTITION_VALUE)).thenReturn(primaryPartitionValueDate); when(herdDao.getCurrentTimestamp()).thenReturn(currentTimestamp); when(storageUnitDao.getStorageUnitsByStoragePlatformAndBusinessObjectData(StoragePlatformEntity.S3, businessObjectDataEntity)) verify(herdStringHelper).getConfigurationValueAsInteger(ConfigurationValue.BDATA_FINAL_DESTROY_DELAY_IN_DAYS); verify(businessObjectDataDaoHelper).getBusinessObjectDataEntity(businessObjectDataKey); verify(businessObjectDataHelper).getDateFromString(PARTITION_VALUE); verify(herdDao).getCurrentTimestamp(); verify(storageUnitDao).getStorageUnitsByStoragePlatformAndBusinessObjectData(StoragePlatformEntity.S3, businessObjectDataEntity);