|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunitx.ddtunit.data.DataSet
junitx.ddtunit.data.DDTDataRepository
public class DDTDataRepository
Data repository containing test data per test class.
Implementation as
singleton.
| Field Summary |
|---|
| Fields inherited from class junitx.ddtunit.data.DataSet |
|---|
objectMap |
| Method Summary | |
|---|---|
boolean |
containsKey(String classId)
Check existance of testdata concerning provided class data. |
Set |
entrySet()
|
static Object |
find(IDataSet dataSet,
SearchCriteria searchedData)
Find associated object data associated to specified search criteria. |
TestClusterDataSet |
get(String resource,
String clusterId)
Get TestClusterDataSet associated to the specified method of a class. |
static DDTDataRepository |
getInstance()
|
void |
put(String classId,
IDataSet dataSet)
Add TestClusterDataSetto repository. |
IDataSet |
restore(String resource,
String clusterId)
Restore test object definition from provided xml resource |
int |
size()
Retrieve number of sub datasets |
| Methods inherited from class junitx.ddtunit.data.DataSet |
|---|
findObject, findObject, get, getId, getObject, getObject, getSubDataIterator, getSubDataValues, putObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static DDTDataRepository getInstance()
public boolean containsKey(String classId)
containsKey in interface IDataSetcontainsKey in class DataSetclassId - of class data used for test
public void put(String classId,
IDataSet dataSet)
TestClusterDataSetto repository.
put in interface IDataSetput in class DataSetclassId - dataSet -
public TestClusterDataSet get(String resource,
String clusterId)
resource - name of resource of test class dataclusterId - to identify dataSet used unter test
public IDataSet restore(String resource,
String clusterId)
resource - name of xml fileclusterId - specifiing the testdata cluster to process from within xml
resource
public static Object find(IDataSet dataSet,
SearchCriteria searchedData)
dataSet - to search insearchCriteria -
public int size()
IDataSet
size in interface IDataSetsize in class DataSetpublic Set entrySet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||