org.cassandraunit.dataset.xml.ClassPathXmlDataSet Maven / Gradle / Ivy
package org.cassandraunit.dataset.xml;
import org.cassandraunit.dataset.DataSet;
import java.io.InputStream;
public class ClassPathXmlDataSet extends AbstractXmlDataSet implements DataSet {
public ClassPathXmlDataSet(String dataSetLocation) {
super(dataSetLocation);
}
@Override
protected InputStream getInputDataSetLocation(String dataSetLocation) {
InputStream inputDataSetLocation = this.getClass().getResourceAsStream("/" + dataSetLocation);
return inputDataSetLocation;
}
}