if (!isSolutionSetUpdateEnabled()) { loadDataset(packagePath + "dataset-01.trig"); QueryLanguage.SPARQL, sb.toString()).evaluate(); final TupleQueryResult expected = readExpectedTupleQueryResult(packagePath + "test_insertIntoSolutions_01.srx"); compareTupleQueryResults(ret, expected);
/** * @throws java.lang.Exception */ //@Before public void setUp() throws Exception { rep = createRepository(); con = rep.getConnection(); con.setAutoCommit(false); // f = rep.getValueFactory(); }
/** * A correct rejection test which verifies that an exception is thrown if * the named solution set does not exist. */ public void test_dropSolutionSet_01() throws UpdateExecutionException, RepositoryException, MalformedQueryException { if (!isSolutionSetUpdateEnabled()) { /* * Test requires this feature. */ return; } try { con.prepareUpdate(QueryLanguage.SPARQL, "drop solutions %namedSet1") .execute(); fail("Excepting: " + UpdateExecutionException.class); } catch(UpdateExecutionException ex) { if(log.isInfoEnabled()) log.info("Ignoring expected exception: "+ex); } }
@Override public Properties getProperties() { final Properties props = new Properties(super.getProperties()); props.setProperty(Options.ISOLATABLE_INDICES, "true"); return props; }
/** * A test which verifies that an exception is NOT thrown if * the named solution set does not exist and SILENT is specified. */ public void test_clearSolutionSet_02() throws UpdateExecutionException, RepositoryException, MalformedQueryException { if (!isSolutionSetUpdateEnabled()) { /* * Test requires this feature. */ return; } con.prepareUpdate(QueryLanguage.SPARQL, "clear silent solutions %namedSet1").execute(); }
final InputStream is = getResourceAsStream(resource);
protected Repository createRepository() throws Exception { Repository repo = newRepository(); repo.initialize(); return repo; }
protected void compareTupleQueryResults( final TupleQueryResult queryResult, final TupleQueryResult expectedResult ) throws QueryEvaluationException { AbstractQueryEngineTestCase.compareTupleQueryResults( getName(), getName(),//testURI, null, // store null, // astContainer queryResult,// expectedResult,// false,// laxCardinality, false // checkOrder ); }
@Override public Properties getProperties() { final Properties props = new Properties(super.getProperties()); final File journal = BigdataStoreTest.createTempFile(); props.setProperty(BigdataSail.Options.FILE, journal.getAbsolutePath()); // props.setProperty(Options.BUFFER_MODE, BufferMode.DiskRW.toString()); props.setProperty(Options.BUFFER_MODE, BufferMode.DiskWORM.toString()); return props; }
/** * A test which verifies that an exception is NOT thrown if * the named solution set does not exist and SILENT is specified. */ public void test_dropSolutionSet_02() throws UpdateExecutionException, RepositoryException, MalformedQueryException { if (!isSolutionSetUpdateEnabled()) { /* * Test requires this feature. */ return; } con.prepareUpdate(QueryLanguage.SPARQL, "drop silent solutions %namedSet1").execute(); }
final InputStream is = getResourceAsStream(resource);
protected Repository createRepository() throws Exception { Repository repo = newRepository(); repo.initialize(); return repo; }
protected void compareTupleQueryResults( final TupleQueryResult queryResult, final TupleQueryResult expectedResult ) throws QueryEvaluationException { AbstractQueryEngineTestCase.compareTupleQueryResults( getName(), getName(),//testURI, null, // store null, // astContainer queryResult,// expectedResult,// false,// laxCardinality, false // checkOrder ); }
if (!isSolutionSetUpdateEnabled()) { loadDataset(packagePath + "dataset-01.trig"); QueryLanguage.SPARQL, sb.toString()).evaluate(); final TupleQueryResult expected = readExpectedTupleQueryResult(packagePath + "test_deleteFromSolutions_02.srx"); compareTupleQueryResults(ret, expected);
/** * A correct rejection test which verifies that an exception is thrown if * the named solution set does not exist. */ public void test_clearSolutionSet_01() throws UpdateExecutionException, RepositoryException, MalformedQueryException { if (!isSolutionSetUpdateEnabled()) { /* * Test requires this feature. */ return; } try { con.prepareUpdate(QueryLanguage.SPARQL, "clear solutions %namedSet1") .execute(); fail("Excepting: " + UpdateExecutionException.class); } catch(UpdateExecutionException ex) { if(log.isInfoEnabled()) log.info("Ignoring expected exception: "+ex); } }
@Override public Properties getProperties() { final Properties props = new Properties(super.getProperties()); final File journal = BigdataStoreTest.createTempFile(); props.setProperty(BigdataSail.Options.FILE, journal.getAbsolutePath()); props.setProperty(Options.BUFFER_MODE, BufferMode.DiskRW.toString()); // props.setProperty(Options.BUFFER_MODE, BufferMode.DiskWORM.toString()); return props; }
/** * A test which verifies that an exception is NOT thrown if * the named solution set does not exist and SILENT is specified. */ public void test_dropSolutionSet_02() throws UpdateExecutionException, RepositoryException, MalformedQueryException { if (!isSolutionSetUpdateEnabled()) { /* * Test requires this feature. */ return; } con.prepareUpdate(QueryLanguage.SPARQL, "drop silent solutions %namedSet1").execute(); }
+ resultFileURL); final InputStream in = getResourceAsStream(resultFileURL);
/** * @throws java.lang.Exception */ //@Before public void setUp() throws Exception { rep = createRepository(); con = rep.getConnection(); con.setAutoCommit(false); // f = rep.getValueFactory(); }
if (!isSolutionSetUpdateEnabled()) { loadDataset(packagePath + "dataset-01.trig"); QueryLanguage.SPARQL, sb.toString()).evaluate(); final TupleQueryResult expected = readExpectedTupleQueryResult(packagePath + "test_deleteFromSolutions_01.srx"); compareTupleQueryResults(ret, expected);