public static void validateEqualTo( Number value, Number condition, String identifier )
        throws PostConditionException
    {
        if( value.doubleValue() == condition.doubleValue() )
        {
            return;
        }
        throw new PostConditionException( identifier + " was not equal to " + condition + ". Was: " + value );
    }
public static void validateEqualTo ( Number value , Number condition , String identifier ) throws PostConditionException { if ( value . doubleValue ( ) == condition . doubleValue ( ) ) { return ; } throw new PostConditionException ( identifier + " was not equal to " + condition + ". Was: " + value ) ; }
Validates that the value under test is a particular value.

This method ensures that <code>value == condition</code>.

@param identifier The name of the object.
@param condition  The condition value.
@param value      The value to be tested.

@throws PostConditionException if the condition is not met.