|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junitx.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 TestClusterDataSet to 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 IDataSet
containsKey
in class DataSet
classId
- of class data used for test
public void put(String classId, IDataSet dataSet)
TestClusterDataSet
to repository.
put
in interface IDataSet
put
in class DataSet
classId
- 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
resourcepublic static Object find(IDataSet dataSet, SearchCriteria searchedData)
dataSet
- to search insearchCriteria
-
public int size()
IDataSet
size
in interface IDataSet
size
in class DataSet
public Set entrySet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |