IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.patterns.framework.test
Class TestDataManager

java.lang.Object
  extended bycom.ibm.xtools.patterns.framework.test.TestDataManager

public class TestDataManager
extends Object


Method Summary
protected  ITestDataFactory getTestDataFactory()
           
 AbstractTestSetup getTestSetup()
           
 boolean iterateHorizontally(ITestModule a_module)
          Iterates through all new elements for a given parameter for the tested patten, then moves to the next parameter.
 boolean iterateVertically(ITestModule a_module)
          Iterates through all parameters adding next element in the list.
 void reportDataModifications()
           
 void setUp(int a_dataSizeRequest)
          Sets up the dataManager with data
 void updateStateTrackers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTestDataFactory

protected ITestDataFactory getTestDataFactory()
Returns:
Returns the m_testDataFactory.

getTestSetup

public AbstractTestSetup getTestSetup()
Returns:
Returns the m_testSetup.

setUp

public void setUp(int a_dataSizeRequest)
Sets up the dataManager with data

Parameters:
a_dataSizeRequest - - Defines How many items should be added to every parameter.

iterateHorizontally

public boolean iterateHorizontally(ITestModule a_module)
Iterates through all new elements for a given parameter for the tested patten, then moves to the next parameter. VZ!!! NOTE: I think it is important to iterate through parameters in order in which they are defined. I think it is important usability test that if we add new items in this order everything works fine. Order is important for operations and dependencies for example, as we must always have the context elements added first. A row in this context represents all elements that are prepared for a given pattern parameter. The order or rows is the same as the order of parameters in the pattern deffinition

Parameters:
a_module - This is the test modul we want to run (call processElement() for).
Returns:
True if all calls to the test module return true;

iterateVertically

public boolean iterateVertically(ITestModule a_module)
Iterates through all parameters adding next element in the list. VZ!!! NOTE: I think it is important to iterate through parameters in order in which they are defined. I think it is important usability test that if we add new items in this order everything works fine. Order is important for operations and dependencies for example, as we must always have the context elements added first. A colomn is a set of one lement per parameter.

Parameters:
a_module - This is the test modul we want to run (call processElement() for).
Returns:
True if all calls to the test module return true;

updateStateTrackers

public void updateStateTrackers()

reportDataModifications

public void reportDataModifications()

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.