Verification Point Framework Reference

prevnext

VerificationPointDataProvider Interface


An implementation of this class creates a Verification Point Data object based on the verification point metadata in the specialized Verification Point object.

A class implementing this interface is a pluggable link between a Verification Point class, which defines a verification point's metadata, and a Verification Point Data class, which encapsulates and serializes the data for a verification point.

When you implement a Verification Point Data class from this interface, you implement the captureData() method for populating a Verification Point Data object for a given Verification Point object. The Verification Point Data Provider class knows about the structure of both the Verification Point Data class, which it is building, and the Verification Point class, which specifies the data to capture.

This is an important abstraction for general types of verification points (such as object data or object properties) where many different objects may provide access to the same type of data.

An implementation of this interface can be plugged into an existing verification point implementation to provide verification point data from a new verification point data source.

You can use an implementation of this interface with static verification points (for building expected and actual data objects) and with dynamic verification points (for building actual data objects only).


Overview

public interface VerificationPointDataProvider
Known implementing class:
DatabaseVPDataProvider

Applicability

Commonly used with QualityArchitect.

This interface requires QualityArchitect.


VerificationPointDataProvider.captureData()

Builds a VerificationPointData object.


Syntax

public VerificationPointData captureData(java.lang.Object 
theObject, VerificationPoint theVP)

Element Description
theObject The object-under-test. The contents of this parameter are provided by the first parameter of the performTest() method.
theVP The Verification Point object that contains the verification point's metadata.


Return Value

This method returns an instance of the specialized VerificationPointData class populated with the captured data.


Comments

This method captures data according to the metadata in the VerificationPoint class. The verification point framework can use the returned VerificationPointData object as either an expected or an actual data object.

prevnext


Rational Test Script Services for Java Rational Software Corporation
Copyright (c) 2003, Rational Software Corporation http://www.rational.com
support@rational.com
info@rational.com