Skip to content

Commit

Permalink
Merge pull request apache#610 from afs/release
Browse files Browse the repository at this point in the history
JENA-1763: Move SHACL test files
  • Loading branch information
afs authored Sep 25, 2019
2 parents 28523cd + adce00c commit 51ba4db
Show file tree
Hide file tree
Showing 162 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public static void runTest(String manifest, boolean verbose) {
}

List<String> omitManifests = new ArrayList<>();
// Miss out.
//omitManifests.add(IRILib.filenameToIRI("testing/std/core/validation-reports/manifest.ttl"));
// Miss out. e.g.
//omitManifests.add(IRILib.filenameToIRI("src/test/resources/std/core/validation-reports/manifest.ttl"));

List<ShaclTestItem> testCases = ShaclTests.manifest(manifest, omitManifests);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ public class TestValidationReport {

// Round trip :: RDF -> Validation Report -> RDF
@Test public void rtRDF_1() {
Graph graph = RDFDataMgr.loadGraph("testing/validation-reports/report1-conforms.ttl");
Graph graph = RDFDataMgr.loadGraph("src/test/resources/validation-reports/report1-conforms.ttl");
testRoundTripGraph("conforms", graph);
}

@Test public void rtRDF_2() {
Graph graph = RDFDataMgr.loadGraph("testing/validation-reports/report2.ttl");
Graph graph = RDFDataMgr.loadGraph("src/test/resources/validation-reports/report2.ttl");
testRoundTripGraph("report2", graph);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class TS_JenaShacl {

@Parameters(name = "{0}")
public static Collection<Object[]> data() throws Exception {
String manifest = "testing/local/manifest.ttl";
String manifest = "src/test/resources/local/manifest.ttl";
List<String> omitManifests = new ArrayList<>();
return ShaclTests.junitParameters(manifest, omitManifests);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class TestShaclCoreWG {

@Parameters(name = "{0}")
public static Collection<Object[]> data() throws Exception {
String manifest = "testing/std/core/manifest.ttl";
String manifest = "src/test/resources/std/core/manifest.ttl";
List<String> omitManifests = new ArrayList<>();
return ShaclTests.junitParameters(manifest, omitManifests);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ public class TestShaclSparqlWG {

@Parameters(name = "{0}")
public static Collection<Object[]> data() throws Exception {
String manifest = "testing/std/sparql/manifest.ttl";
String manifest = "src/test/resources/std/sparql/manifest.ttl";

// The W3C WG tests for SPARQL-based Constraints is made up of:
//String manifest = "testing/std/sparql/property/manifest.ttl";
//String manifest = "testing/std/sparql/pre-binding/manifest.ttl";
//String manifest = "testing/std/sparql/node/manifest.ttl";
//String manifest = "testing/std/sparql/component/manifest.ttl";

//String manifest = "src/test/resources/std/sparql/property/manifest.ttl";
//String manifest = "src/test/resources/std/sparql/pre-binding/manifest.ttl";
//String manifest = "src/test/resources/std/sparql/node/manifest.ttl";
//String manifest = "src/test/resources/std/sparql/component/manifest.ttl";

List<String> omitManifests = new ArrayList<>();
return ShaclTests.junitParameters(manifest, omitManifests);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 51ba4db

Please sign in to comment.