com.github.springtestdbunit.dataset.ReplacementDataSetLoader 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 java.io.IOException;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import org.dbunit.dataset.DataSetException;
import org.dbunit.dataset.IDataSet;
import org.dbunit.dataset.ReplacementDataSet;
import org.springframework.util.Assert;
/**
* A {@link DataSetLoader data set loader} that uses a {@link ReplacementDataSet} to replace specific objects or
* sub-strings. By default will replace "[null]" with null
.
*
* @author Stijn Van Bael
* @author Phillip Webb
*/
public class ReplacementDataSetLoader implements DataSetLoader {
public static final Map DEFAULT_OBJECT_REPLACEMENTS = Collections.singletonMap("[null]", null);
private final DataSetLoader dataSetLoader;
private final Map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy