Class TestUtilities


  • public final class TestUtilities
    extends java.lang.Object
    Utility functions to make tests easier to write.
    Version:
    $Id$
    Author:
    John Reekie, Michael Shilman
    • Constructor Summary

      Constructors 
      Constructor Description
      TestUtilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean shapeEquals​(java.awt.Shape s1, java.awt.Shape s2, double epsilon)
      Test if two shapes are equal.
      • 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

      • shapeEquals

        public static boolean shapeEquals​(java.awt.Shape s1,
                                          java.awt.Shape s2,
                                          double epsilon)
        Test if two shapes are equal. The epsilon is a number such that if two points are different by less than epsilon in both coordinates they are considered "equal". This method is not very efficient but is particularly useful for testing purposes.