org.cassandraunit.dataset.yaml.ClassPathYamlDataSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-unit Show documentation
Show all versions of cassandra-unit Show documentation
Test framework to develop with Cassandra
package org.cassandraunit.dataset.yaml;
import org.cassandraunit.dataset.DataSet;
import java.io.InputStream;
public class ClassPathYamlDataSet extends AbstractYamlDataSet implements DataSet {
public ClassPathYamlDataSet(String dataSetLocation) {
super(dataSetLocation);
}
@Override
protected InputStream getInputDataSetLocation(String dataSetLocation) {
InputStream inputDataSetLocation = this.getClass().getResourceAsStream("/" + dataSetLocation);
return inputDataSetLocation;
}
}