Class TestUtilities


  • public class TestUtilities
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TestUtilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean compareFloat​(float referenceFloat, float checkFloat, float tolerance)
      Compares 2 float with a tolerance.
      • Methods inherited from class java.lang.Object

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

      • TestUtilities

        public TestUtilities()
    • Method Detail

      • compareFloat

        public static boolean compareFloat​(float referenceFloat,
                                           float checkFloat,
                                           float tolerance)
        Compares 2 float with a tolerance.
        Parameters:
        referenceFloat - the reference float.
        checkFloat - the float to check.
        tolerance - the acceptable tolerance.
        Returns:
        true if the difference between the two components is smaller or equal to the tolerance.