junitx.ddtunit.data
Class XmlDataRestorer
java.lang.Object
junitx.ddtunit.data.XmlDataRestorer
- All Implemented Interfaces:
- IDataSetSerializer
public class XmlDataRestorer
- extends Object
- implements IDataSetSerializer
This class restores a complete dataset of testdata and testassertions as
defined by ddtunit from provided xml resource.
To resolve global
variables and resources a dataset independend of actual processed test
classes is provided as dataset root.
- Author:
- jg
Method Summary |
TestClusterDataSet |
restore(String resource,
String clusterId)
Process xml resource specified by resource name and a special section of
the xml resource specified by the classId. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlDataRestorer
public XmlDataRestorer(IDataSet dataSet)
- Parameters:
dataSet
-
restore
public TestClusterDataSet restore(String resource,
String clusterId)
- Description copied from interface:
IDataSetSerializer
- Process xml resource specified by resource name and a special section of
the xml resource specified by the classId.
If the resource was
allready processed nothing will be done.
- Specified by:
restore
in interface IDataSetSerializer
- Parameters:
resource
- to processclusterId
- to filter inside of the xml resource
Copyright © 2004-2011. All Rights Reserved.