@Test public void testInvalidGetStoreKeysInByteRange() { List<Pair<StoreKey, Long>> keysAndContentSizes = createKeysAndContentSizes(60, 1, 1000000, 100); CompositeBlobInfo compositeBlobInfo = new CompositeBlobInfo(keysAndContentSizes); long totalSize = compositeBlobInfo.getTotalSize(); assertInvalidGetStoreKeysInByteRange(totalSize, totalSize, compositeBlobInfo); assertInvalidGetStoreKeysInByteRange(totalSize, totalSize + 1, compositeBlobInfo); assertInvalidGetStoreKeysInByteRange(-1, totalSize - 1, compositeBlobInfo); assertInvalidGetStoreKeysInByteRange(totalSize - 1, 0, compositeBlobInfo); assertInvalidGetStoreKeysInByteRange(1, 0, compositeBlobInfo); assertInvalidGetStoreKeysInByteRange(0, totalSize, compositeBlobInfo); }
public long getTotalSize() { return totalSize; }
CompositeBlobInfo { public long getTotalSize() { return totalSize; } }
CompositeBlobInfo { public long getTotalSize() { return totalSize; } CompositeBlobInfo(int chunkSize, long totalSize, List<StoreKey> keys);  CompositeBlobInfo(List<Pair<StoreKey, Long>> keysAndContentSizes); }
CompositeBlobInfo { public long getTotalSize() { return totalSize; } CompositeBlobInfo(int chunkSize, long totalSize, List<StoreKey> keys);  CompositeBlobInfo(List<Pair<StoreKey, Long>> keysAndContentSizes); List<ChunkMetadata> getStoreKeysInByteRange(long start, long end); long getTotalSize(); int getChunkSize(); List<StoreKey> getKeys(); List<ChunkMetadata> getChunkMetadataList(); short getMetadataContentVersion(); }
CompositeBlobInfo { public long getTotalSize() { return totalSize; } CompositeBlobInfo(int chunkSize, long totalSize, List<StoreKey> keys);  CompositeBlobInfo(List<Pair<StoreKey, Long>> keysAndContentSizes); List<ChunkMetadata> getStoreKeysInByteRange(long start, long end); long getTotalSize(); int getChunkSize(); List<StoreKey> getKeys(); List<ChunkMetadata> getChunkMetadataList(); short getMetadataContentVersion();  }