jdave.equality
Class DeltaEqualityCheck

java.lang.Object
  extended by jdave.EqualityCheck
      extended by jdave.equality.DeltaEqualityCheck
All Implemented Interfaces:
IEqualityCheck

public class DeltaEqualityCheck
extends EqualityCheck

Author:
Joni Freeman

Constructor Summary
DeltaEqualityCheck(java.lang.Number expectedNumber, double delta)
           
 
Method Summary
 java.lang.String error(java.lang.Object actual)
           
 boolean matches(java.lang.Object actual)
           
 
Methods inherited from class jdave.EqualityCheck
verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeltaEqualityCheck

public DeltaEqualityCheck(java.lang.Number expectedNumber,
                          double delta)
Method Detail

matches

public boolean matches(java.lang.Object actual)

error

public java.lang.String error(java.lang.Object actual)


Copyright © 2008. All Rights Reserved.