Package diva.util.jester
Class TestUtilities
- java.lang.Object
-
- diva.util.jester.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.
-
-
-
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.
-
-