Package com.linkedin.venice.utils
Class DataProviderUtils
java.lang.Object
com.linkedin.venice.utils.DataProviderUtils
This class gathers all common data provider patterns in test cases. In order to leverage this util class,
make sure your test case has "test" dependency on "venice-test-common" module.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object[][]
static Object[][]
allPermutationGenerator
(Object[]... parameterSets) Generate permutations to be fed to a DataProvider.static Object[][]
allPermutationGenerator
(Function<Object[], Boolean> permutationValidator, Object[]... parameterSets) Generate permutations to be fed to a DataProvider.static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
static Object[][]
To use these data providers, add (dataProvider = "", dataProviderClass = DataProviderUtils.class) into the @Test annotation. static Object[][]
-
Field Details
-
BOOLEAN
-
BOOLEAN_FALSE
-
COMPRESSION_STRATEGIES
-
PARTITION_COUNTS
-
CHECKSUM_TYPES
-
-
Constructor Details
-
DataProviderUtils
public DataProviderUtils()
-
-
Method Details
-
trueAndFalseProvider
To use these data providers, add (dataProvider = "", dataProviderClass = DataProviderUtils.class) into the @Test annotation. -
compressionProvider
-
twoBoolean
-
threeBoolean
-
fourBoolean
-
fiveBoolean
-
checkpointingSupportedCheckSumTypes
@DataProvider(name="CheckpointingSupported-CheckSum-Types") public static Object[][] checkpointingSupportedCheckSumTypes() -
daVinciConfigProvider
-
changelogConsumer
-
isolatedIngestion
-
chunkingAndPartitionCountsCombination
@DataProvider(name="Chunking-And-Partition-Counts") public static Object[][] chunkingAndPartitionCountsCombination() -
booleanCompression
-
booleanBooleanCompression
@DataProvider(name="Boolean-Boolean-Compression") public static Object[][] booleanBooleanCompression() -
booleanChecksumType
-
allAvroTypesExceptNullAndUnion
@DataProvider(name="All-Avro-Schemas-Except-Null-And-Union") public static Object[][] allAvroTypesExceptNullAndUnion() -
allPermutationGenerator
Generate permutations to be fed to a DataProvider. For two boolean's we'd pass in allPermutationGenerator(BOOLEAN, BOOLEAN)- Parameters:
parameterSets
- Sets of valid values for each parameter- Returns:
- the permutations that can be returned from a
DataProvider
-
allPermutationGenerator
public static Object[][] allPermutationGenerator(Function<Object[], Boolean> permutationValidator, Object[]... parameterSets) Generate permutations to be fed to a DataProvider. For two boolean's we'd pass in allPermutationGenerator(BOOLEAN, BOOLEAN)- Parameters:
parameterSets
- Sets of valid values for each parameterpermutationValidator
- A function that takes the permutation as an input and decides if it is valid- Returns:
- the permutations that can be returned from a
DataProvider
-