All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.springtestdbunit.dataset.ReplacementDataSetModifier Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
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