Class VerificationUtil


  • public class VerificationUtil
    extends Object
    • Method Detail

      • acceptable

        public static boolean acceptable​(Object expected,
                                         Object actual,
                                         double precision,
                                         double zeroThreshold)
      • acceptable

        public static boolean acceptable​(Number expected,
                                         Number actual,
                                         double precision,
                                         double zeroThreshold)
        Parameters:
        precision - The acceptable range given in proportion of the expected value, including its boundaries.
        zeroThreshold - The threshold for distinguishing between zero and non-zero values.
      • isZero

        public static boolean isZero​(Number value,
                                     double zeroThreshold)