org.cassandraunit.dataset.cql.ClassPathCQLDataSet 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.cql;
import org.cassandraunit.dataset.CQLDataSet;
import java.io.InputStream;
/**
* @author Jeremy Sevellec
*/
public class ClassPathCQLDataSet extends AbstractCQLDataSet implements CQLDataSet {
public ClassPathCQLDataSet(String dataSetLocation) {
super(dataSetLocation, true, true, null);
}
public ClassPathCQLDataSet(String dataSetLocation, boolean keyspaceCreation) {
super(dataSetLocation, keyspaceCreation, true);
}
public ClassPathCQLDataSet(String dataSetLocation, boolean keyspaceCreation, boolean keyspaceDeletion) {
super(dataSetLocation, keyspaceCreation, keyspaceDeletion);
}
public ClassPathCQLDataSet(String dataSetLocation, String keyspaceName) {
super(dataSetLocation, true, true , keyspaceName);
}
public ClassPathCQLDataSet(String dataSetLocation, boolean keyspaceCreation, String keyspaceName) {
super(dataSetLocation, keyspaceCreation, true, keyspaceName);
}
public ClassPathCQLDataSet(String dataSetLocation, boolean keyspaceCreation, boolean keyspaceDeletion, String keyspaceName) {
super(dataSetLocation, keyspaceCreation, keyspaceDeletion, keyspaceName);
}
@Override
protected InputStream getInputDataSetLocation(String dataSetLocation) {
return this.getClass().getResourceAsStream("/" + dataSetLocation);
}
}