All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sqlancer.h2.H2Options Maven / Gradle / Ivy

Go to download

SQLancer finds logic bugs in Database Management Systems through automatic testing

There is a newer version: 2.0.0
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy