Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

diva.util.jester
Class TestUtilities

java.lang.Object
 extended bydiva.util.jester.TestUtilities

public final class TestUtilities
extends java.lang.Object

Utility functions to make tests easier to write.

Version:
$Id: TestUtilities.java,v 1.11 2006年08月21日 23:09:36 cxh Exp $
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.


Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /