com.pushtotest.tool.dpl
Interface DataProduction

All Known Implementing Classes:
CSVDPL, LingoDPL, RDBMSDPL

public interface DataProduction

Base Data production interface. All main classes in a Data Production Library should implement this interface.


Method Summary
 java.lang.Object getData()
          Obtains the current data.
 java.lang.Object getDataByIndex(int index)
          Returns the data at a particular position
 java.lang.Object getNextData()
          Returns the actual pointer data, and moves the pointer to the next position.
 java.lang.Object getRandomData()
          Returns data from a random pointer position.
 void setup()
          Non-Arguments Setup in case User calls a without arguments
 void tearDown()
          Cleans up
 

Method Detail

setup

void setup()
           throws DPLException
Non-Arguments Setup in case User calls a without arguments

Throws:
DPLException

getData

java.lang.Object getData()
Obtains the current data. It will return the data of the actual pointer without moving it.

Returns:
Current Data

getRandomData

java.lang.Object getRandomData()
Returns data from a random pointer position.

Returns:
Data from Random position

getNextData

java.lang.Object getNextData()
Returns the actual pointer data, and moves the pointer to the next position. If the position is the last one, pointer is moved to the first position.

Returns:
Current Data

getDataByIndex

java.lang.Object getDataByIndex(int index)
Returns the data at a particular position

Parameters:
index - Data Position to return
Returns:
Data at indicated position

tearDown

void tearDown()
Cleans up