FileUtils.deleteQuietly(thawLocation);
FileUtils.deleteQuietly(archiverData);
}
public void BucketSize_archiveBucket_remoteBucketHasSameSizeAsBeforeArchiving() {
LocalBucket bucket = TUtilsBucket.createRealBucket();
long bucketSize = bucket.getSize();
TUtilsFunctional.archiveBucket(bucket, bucketArchiver);
ListsBucketsFiltered listsBucketsFiltered = ListsBucketsFilteredFactory
.create(config);
List<Bucket> listBucketsInIndex = listsBucketsFiltered
.listFilteredBucketsAtIndex(bucket.getIndex(), bucket.getEarliest(),
bucket.getLatest());
assertEquals(1, listBucketsInIndex.size());
Bucket bucketInArchive = listBucketsInIndex.get(0);
assertEquals(bucketSize,
(long) archiveBucketSize.readBucketSize(bucketInArchive));