Rational QualityArchitect/Java API
Version 1.0

com.rational.test.vp
Class DatabaseVPComparator

java.lang.Object
  |
  +--com.rational.test.vp.DatabaseVPComparator
All Implemented Interfaces:
VerificationPointComparator

public class DatabaseVPComparator
extends java.lang.Object
implements VerificationPointComparator

The framework calls the compare() method in this class to compare two DatabaseVPData objects. The comparison is for either case-sensitive equality or case-insensitive equality, depeneding on the options set in the DatabaseVP instantiation that is driving the comparison.

Since:
QualityArchitect 0.1
See Also:
DatabaseVP

Constructor Summary
DatabaseVPComparator()
           
 
Method Summary
 boolean compare(VerificationPointData vpdExpected, VerificationPointData vpdActual, java.lang.Object objOptions, java.lang.StringBuffer sFailureDescription)
          This method compares an expected data object and an actual data object, both DatabaseVPData implementations of VerificationPointData, and determines whether the test succeeds or fails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseVPComparator

public DatabaseVPComparator()
Method Detail

compare

public boolean compare(VerificationPointData vpdExpected,
                       VerificationPointData vpdActual,
                       java.lang.Object objOptions,
                       java.lang.StringBuffer sFailureDescription)

This method compares an expected data object and an actual data object, both DatabaseVPData implementations of VerificationPointData, and determines whether the test succeeds or fails.

Specified by:
compare in interface VerificationPointComparator
Parameters:
vpsExpected - The expected data object.
vpsActual - The actual data object.
objOptions - Options that are passed from the Verification Point class to qualify the comparison. Options can include the pre-defined OPTION_TRIM, COMPARE_CASESENSITIVE, and COMPARE_CASEINSENSITIVE options plus any user-defined options.
sFailureDescription - An output parameter that contains the differences between the expected and actual data objects in a failed verification point. The failure description is written to the log.
Returns:
boolean A value indicating whether the test passed or failed.

30-Jun-2003

Rational QualityArchitect/Java Support Home Page
Copyright (c) 2000, Rational Software Corporation