Class CombineFnTester


  • public class CombineFnTester
    extends java.lang.Object
    Utilities for testing CombineFns. Ensures that the Combine.CombineFn gives correct results across various permutations and shardings of the input.
    • Constructor Summary

      Constructors 
      Constructor Description
      CombineFnTester()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <InputT,​AccumT,​OutputT>
      void
      testCombineFn​(Combine.CombineFn<InputT,​AccumT,​OutputT> fn, java.util.List<InputT> input, org.hamcrest.Matcher<? super OutputT> matcher)  
      static <InputT,​AccumT,​OutputT>
      void
      testCombineFn​(Combine.CombineFn<InputT,​AccumT,​OutputT> fn, java.util.List<InputT> input, OutputT expected)
      Tests that the Combine.CombineFn, when applied to the provided input, produces the provided output.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CombineFnTester

        public CombineFnTester()
    • Method Detail

      • testCombineFn

        public static <InputT,​AccumT,​OutputT> void testCombineFn​(Combine.CombineFn<InputT,​AccumT,​OutputT> fn,
                                                                             java.util.List<InputT> input,
                                                                             OutputT expected)
        Tests that the Combine.CombineFn, when applied to the provided input, produces the provided output. Tests a variety of permutations of the input.
      • testCombineFn

        public static <InputT,​AccumT,​OutputT> void testCombineFn​(Combine.CombineFn<InputT,​AccumT,​OutputT> fn,
                                                                             java.util.List<InputT> input,
                                                                             org.hamcrest.Matcher<? super OutputT> matcher)