Package org.openrdf.sail.rdbms

Source Code of org.openrdf.sail.rdbms.PgSqlSPARQLQueryTest

/*
* Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2008.
*
* Licensed under the Aduna BSD-style license.
*/
package org.openrdf.sail.rdbms;

import junit.framework.Test;

import org.openrdf.query.Dataset;
import org.openrdf.query.parser.sparql.ManifestTest;
import org.openrdf.query.parser.sparql.SPARQLQueryTest;
import org.openrdf.repository.Repository;
import org.openrdf.repository.sail.SailRepository;
import org.openrdf.sail.dataset.DatasetSail;
import org.openrdf.sail.rdbms.postgresql.PgSqlStore;

public class PgSqlSPARQLQueryTest extends SPARQLQueryTest {

  public static Test suite()
    throws Exception
  {
    return ManifestTest.suite(new Factory() {

      public PgSqlSPARQLQueryTest createSPARQLQueryTest(String testURI, String name, String queryFileURL,
          String resultFileURL, Dataset dataSet, boolean laxCardinality)
      {
        return new PgSqlSPARQLQueryTest(testURI, name, queryFileURL, resultFileURL, dataSet,
            laxCardinality);
      }
    });
  }

  protected PgSqlSPARQLQueryTest(String testURI, String name, String queryFileURL, String resultFileURL,
      Dataset dataSet, boolean laxCardinality)
  {
    super(testURI, name, queryFileURL, resultFileURL, dataSet, laxCardinality);
  }

  protected Repository newRepository() {
    PgSqlStore sail = new PgSqlStore("sesame_test");
    sail.setUser("sesame");
    sail.setPassword("opensesame");
    return new SailRepository(new DatasetSail(sail));
  }
}
TOP

Related Classes of org.openrdf.sail.rdbms.PgSqlSPARQLQueryTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.