protected Directory setupDirectory() throws IOException {
int totalNumberOfBytes = 1000000;
final int fileBufferSizeInt = numberBetween(113, 215);
final int cacheBlockSizeInt = numberBetween(111, 251);
Size fileBufferSize = new Size() {
@Override
public int getSize(CacheDirectory directory, String fileName) {
return fileBufferSizeInt;
}
};
Size cacheBlockSize = new Size() {
@Override
public int getSize(CacheDirectory directory, String fileName) {
return cacheBlockSizeInt;
}
};