public abstract class AbstractDataFileLoader extends Object implements DataFileLoader
| Constructor and Description |
|---|
AbstractDataFileLoader()
Create new instance.
|
AbstractDataFileLoader(Map ro)
Create new instance with replacement objects.
|
AbstractDataFileLoader(Map ro,
Map rs)
Create new instance with replacement objects and replacement substrings.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReplacementObjects(Map ro)
Add the specified replacement objects to existing ones for use with
ReplacementDataSet. |
void |
addReplacementSubstrings(Map rs)
Add the specified replacement substrings to existing ones for use with
ReplacementDataSet. |
IDataSet |
load(String filename)
Load the specified String filename from the classpath into a dbUnit
dataset.
|
protected ReplacementDataSet |
processReplacementTokens(IDataSet ds)
Add the replacements in the maps (objects and substrings) to the
specified dataset.
|
void |
removeAllReplacementObjects()
Remove all existing replacement objects, resetting to none so no object
replacements occur.
|
void |
removeAllReplacementSubstrings()
Remove all existing replacement substring objects, resetting to none so
no substring replacements occur.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadDataSetpublic AbstractDataFileLoader()
public AbstractDataFileLoader(Map ro)
replacementObjects - The replacement objects for use with
ReplacementDataSet.public AbstractDataFileLoader(Map ro, Map rs)
ro - The replacement objects for use with
ReplacementDataSet.rs - The replacement substrings for use with
ReplacementDataSet.public IDataSet load(String filename) throws DatabaseUnitRuntimeException
DefaultDataSet. The type of dbUnit dataset
created is delegated to the implementing subclass.load in interface DataFileLoaderDatabaseUnitRuntimeException - DataSetException wrapped in a DatabaseUnitRuntimeException
when file load errors occur.protected ReplacementDataSet processReplacementTokens(IDataSet ds)
ds - The dataset to wrap with a ReplacementDataSet and
process replacement tokens on.ReplacementDataSet and processed with the tokens in
the replacement maps.public void addReplacementObjects(Map ro)
ReplacementDataSet.addReplacementObjects in interface DataFileLoaderro - The replacement objects to include.public void addReplacementSubstrings(Map rs)
ReplacementDataSet.addReplacementSubstrings in interface DataFileLoaderrs - The replacement substrings to include.public void removeAllReplacementObjects()
removeAllReplacementObjects in interface DataFileLoaderpublic void removeAllReplacementSubstrings()
removeAllReplacementSubstrings in interface DataFileLoaderCopyright © 2002-2017. All Rights Reserved.