@Override public BigdataSPARQLUpdateConformanceTest createSPARQLUpdateConformanceTest( String testURI, String name, String requestFile, URI defaultGraphURI, Map<String, URI> inputNamedGraphs, URI resultDefaultGraphURI, Map<String, URI> resultNamedGraphs) { return new BigdataSPARQLUpdateConformanceTest(testURI, name, requestFile, defaultGraphURI, inputNamedGraphs, resultDefaultGraphURI, resultNamedGraphs); }
StringBuilder message = new StringBuilder(128); message.append("\n=========================================\n"); message.append(getName()); message.append("\n"); message.append(testURI); final String queryStr = readUpdateString(); message.append("Query:\n"+queryStr); message.append("\n=========================================\n"); fail(message.toString());
final TestSuite suite2 = new TestSuite(); for (String s : testURIs) { final BigdataSPARQLUpdateConformanceTest test = getSingleTest(suite1, s); if (test == null) throw new RuntimeException("Could not find test: uri=" suite1 = filterOutTests(suite1, knownBadTests);
BigdataSailRepositoryConnection erCon = (BigdataSailRepositoryConnection) expectedResultRepo.getConnection(); try { String updateString = readUpdateString(); compareGraphs(Iterations.asList(con.getStatements(null, null, null, true, (Resource)null)), Iterations.asList(erCon.getStatements(null, null, null, true, (Resource)null)), (BigdataSailRepositoryConnection) con); compareGraphs(Iterations.asList(con.getStatements(null, null, null, true, contextURI)), Iterations.asList(erCon.getStatements(null, null, null, true, contextURI)), (BigdataSailRepositoryConnection) con);
static TestSuite filterOutTests(final TestSuite suite1, final Collection<String> testURIs) { final TestSuite suite2 = new TestSuite(suite1.getName()); @SuppressWarnings("unchecked") final Enumeration<Test> e = suite1.tests(); while (e.hasMoreElements()) { final Test aTest = e.nextElement(); if (aTest instanceof TestSuite) { final TestSuite aTestSuite = (TestSuite) aTest; suite2.addTest(filterOutTests(aTestSuite, testURIs)); } else if (aTest instanceof BigdataSPARQLUpdateConformanceTest) { final BigdataSPARQLUpdateConformanceTest test = (BigdataSPARQLUpdateConformanceTest) aTest; if (!testURIs.contains(test.testURI)) { suite2.addTest(test); } } } return suite2; }
final Properties props = getProperties();
final BigdataSPARQLUpdateConformanceTest test = getSingleTest((TestSuite) aTest, testURI); if (test != null)
throws Exception dataRep = createRepository(); expectedResultRepo = createRepository();
tckSuite.addTest(BigdataSPARQLUpdateConformanceTest.suite()); } catch (Exception e) { throw new RuntimeException(e);
BigdataSailRepositoryConnection erCon = (BigdataSailRepositoryConnection) expectedResultRepo.getConnection(); try { String updateString = readUpdateString(); compareGraphs(Iterations.asList(con.getStatements(null, null, null, true, (Resource)null)), Iterations.asList(erCon.getStatements(null, null, null, true, (Resource)null)), (BigdataSailRepositoryConnection) con); compareGraphs(Iterations.asList(con.getStatements(null, null, null, true, contextURI)), Iterations.asList(erCon.getStatements(null, null, null, true, contextURI)), (BigdataSailRepositoryConnection) con);
static TestSuite filterOutTests(final TestSuite suite1, final Collection<String> testURIs) { final TestSuite suite2 = new TestSuite(suite1.getName()); @SuppressWarnings("unchecked") final Enumeration<Test> e = suite1.tests(); while (e.hasMoreElements()) { final Test aTest = e.nextElement(); if (aTest instanceof TestSuite) { final TestSuite aTestSuite = (TestSuite) aTest; suite2.addTest(filterOutTests(aTestSuite, testURIs)); } else if (aTest instanceof BigdataSPARQLUpdateConformanceTest) { final BigdataSPARQLUpdateConformanceTest test = (BigdataSPARQLUpdateConformanceTest) aTest; if (!testURIs.contains(test.testURI)) { suite2.addTest(test); } } } return suite2; }
final Properties props = getProperties();
final BigdataSPARQLUpdateConformanceTest test = getSingleTest((TestSuite) aTest, testURI); if (test != null)
throws Exception dataRep = createRepository(); expectedResultRepo = createRepository();
tckSuite.addTest(BigdataSPARQLUpdateConformanceTest.suite()); } catch (Exception e) { throw new RuntimeException(e);
StringBuilder message = new StringBuilder(128); message.append("\n=========================================\n"); message.append(getName()); message.append("\n"); message.append(testURI); final String queryStr = readUpdateString(); message.append("Query:\n"+queryStr); message.append("\n=========================================\n"); fail(message.toString());
final TestSuite suite2 = new TestSuite(); for (String s : testURIs) { final BigdataSPARQLUpdateConformanceTest test = getSingleTest(suite1, s); if (test == null) throw new RuntimeException("Could not find test: uri=" suite1 = filterOutTests(suite1, knownBadTests);
@Override public BigdataSPARQLUpdateConformanceTest createSPARQLUpdateConformanceTest( String testURI, String name, String requestFile, URI defaultGraphURI, Map<String, URI> inputNamedGraphs, URI resultDefaultGraphURI, Map<String, URI> resultNamedGraphs) { return new BigdataSPARQLUpdateConformanceTest(testURI, name, requestFile, defaultGraphURI, inputNamedGraphs, resultDefaultGraphURI, resultNamedGraphs); }