com.github.springtestdbunit.dataset.ReplacementDataSetModifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-test-dbunit-core Show documentation
Show all versions of spring-test-dbunit-core Show documentation
Core module for the integration between the Spring testing framework and DBUnit
package com.github.springtestdbunit.dataset;
import org.dbunit.dataset.IDataSet;
import org.dbunit.dataset.ReplacementDataSet;
/**
* {@link DataSetModifier} to create a {@link ReplacementDataSet}.
*
* @author Phillip Webb
*/
public abstract class ReplacementDataSetModifier implements DataSetModifier {
public IDataSet modify(IDataSet dataSet) {
if (!(dataSet instanceof ReplacementDataSet)) {
dataSet = new ReplacementDataSet(dataSet);
}
addReplacements((ReplacementDataSet) dataSet);
return dataSet;
}
protected abstract void addReplacements(ReplacementDataSet dataSet);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy