Package org.apache.beam.sdk.testing
Class CombineFnTester
java.lang.Object
org.apache.beam.sdk.testing.CombineFnTester
Utilities for testing
CombineFns
. Ensures that the Combine.CombineFn
gives
correct results across various permutations and shardings of the input.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <InputT,
AccumT, OutputT>
voidtestCombineFn
(Combine.CombineFn<InputT, AccumT, OutputT> fn, List<InputT> input, Matcher<? super OutputT> matcher) static <InputT,
AccumT, OutputT>
voidtestCombineFn
(Combine.CombineFn<InputT, AccumT, OutputT> fn, List<InputT> input, OutputT expected) Tests that theCombine.CombineFn
, when applied to the provided input, produces the provided output.
-
Constructor Details
-
CombineFnTester
public CombineFnTester()
-
-
Method Details
-
testCombineFn
public static <InputT,AccumT, void testCombineFnOutputT> (Combine.CombineFn<InputT, AccumT, OutputT> fn, List<InputT> input, OutputT expected) Tests that theCombine.CombineFn
, when applied to the provided input, produces the provided output. Tests a variety of permutations of the input. -
testCombineFn
public static <InputT,AccumT, void testCombineFnOutputT> (Combine.CombineFn<InputT, AccumT, OutputT> fn, List<InputT> input, Matcher<? super OutputT> matcher)
-