diva.util.jester
Class TestUtilities

java.lang.Object
  extended by diva.util.jester.TestUtilities

public final class TestUtilities
extends java.lang.Object

Utility functions to make tests easier to write.

Version:
$Id: TestUtilities.java 43472 2006-08-21 23:16:56Z cxh $
Author:
John Reekie, Michael Shilman

Constructor Summary
TestUtilities()
           
 
Method Summary
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.