diva.util.jester
Class TestUtilities
java.lang.Object
diva.util.jester.TestUtilities
public final class TestUtilities
- extends Object
Utility functions to make tests easier to write.
- Version:
- $Revision: 1.3 $
- Author:
- John Reekie (johnr@eecs.berkeley.edu), Michael Shilman (michaels@eecs.berkeley.edu)
Method Summary |
static boolean |
shapeEquals(Shape s1,
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 |
TestUtilities
public TestUtilities()
shapeEquals
public static boolean shapeEquals(Shape s1,
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.
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.