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
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 |
DatabaseVPComparator
public DatabaseVPComparator()
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.
Rational QualityArchitect/Java Support Home Page
Copyright (c) 2000, Rational Software Corporation