Simplify CompressedVSizeColumnarIntsSupplierTest (#10003)

The parameters generator uses CompressionStrategy.noNoneValues() instead
of CompressionStrategyTest.compressionStrategies() which wrapped each
strategy in a single element array. This improves readability of the
test.
This commit is contained in:
Stefan Birkner 2020-06-10 18:32:00 +02:00 committed by GitHub
parent d4d0004338
commit 7282e2f2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -56,13 +56,8 @@ public class CompressedVSizeColumnarIntsSupplierTest extends CompressionStrategy
@Parameterized.Parameters(name = "{index}: compression={0}, byteOrder={1}")
public static Iterable<Object[]> compressionStrategies()
{
final Iterable<CompressionStrategy> compressionStrategies = Iterables.transform(
CompressionStrategyTest.compressionStrategies(),
(Object[] input) -> (CompressionStrategy) input[0]
);
Set<List<Object>> combinations = Sets.cartesianProduct(
Sets.newHashSet(compressionStrategies),
Sets.newHashSet(CompressionStrategy.noNoneValues()),
Sets.newHashSet(ByteOrder.BIG_ENDIAN, ByteOrder.LITTLE_ENDIAN)
);