sqlancer.h2.H2Options Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlancer Show documentation
Show all versions of sqlancer Show documentation
SQLancer finds logic bugs in Database Management Systems through automatic testing
package sqlancer.h2;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;
import sqlancer.DBMSSpecificOptions;
import sqlancer.OracleFactory;
import sqlancer.common.oracle.TestOracle;
import sqlancer.h2.H2Options.H2OracleFactory;
import sqlancer.h2.H2Provider.H2GlobalState;
public class H2Options implements DBMSSpecificOptions {
public enum H2OracleFactory implements OracleFactory {
TLP_WHERE {
@Override
public TestOracle create(H2GlobalState globalState) throws SQLException {
return new H2QueryPartitioningWhereTester(globalState);
}
};
}
@Override
public List getTestOracleFactory() {
return Arrays.asList(H2OracleFactory.TLP_WHERE);
}
}