From 4726d8ababf086d73561837c1df35e4a722ef76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20C=C3=A9r=C3=A8s?= Date: Tue, 23 Jul 2024 16:55:45 +0200 Subject: [PATCH] Rename inputFile into inputPath in ConvertTest --- .../corese/command/programs/ConvertTest.java | 86 +++++++++---------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/corese-command/src/test/java/fr/inria/corese/command/programs/ConvertTest.java b/corese-command/src/test/java/fr/inria/corese/command/programs/ConvertTest.java index 8f7baf485..190698984 100644 --- a/corese-command/src/test/java/fr/inria/corese/command/programs/ConvertTest.java +++ b/corese-command/src/test/java/fr/inria/corese/command/programs/ConvertTest.java @@ -28,7 +28,7 @@ public class ConvertTest { private StringWriter out = new StringWriter(); private StringWriter err = new StringWriter(); - private String inputFile = ConvertTest.class + private String inputPath = ConvertTest.class .getResource("/fr/inria/corese/command/programs/convert/input/") .getPath(); private String referencesPath = ConvertTest.class @@ -61,7 +61,7 @@ public void setUp() { @Test public void testConvertTurtleToxml() { - String pathinputBeatlesTTL = Paths.get(inputFile, "beatles.ttl").toString(); + String pathinputBeatlesTTL = Paths.get(inputPath, "beatles.ttl").toString(); String pathRefBeatlesXML = Paths.get(referencesPath, "ttl.beatles.rdf").toString(); String pathOutBeatlesXML = Paths.get(resultPath, "ttl.beatles.rdf").toString(); @@ -77,7 +77,7 @@ public void testConvertTurtleToxml() { @Test public void testConvertTurtleToJsonld() { - String pathInputBeatlesTTL = Paths.get(inputFile, "beatles.ttl").toString(); + String pathInputBeatlesTTL = Paths.get(inputPath, "beatles.ttl").toString(); String pathRefBeatlesJSON = Paths.get(referencesPath, "ttl.beatles.jsonld").toString(); String pathOutBeatlesJSON = Paths.get(resultPath, "ttl.beatles.jsonld").toString(); @@ -93,7 +93,7 @@ public void testConvertTurtleToJsonld() { @Test public void testConvertTurtleToTrig() { - String pathInputBeatlesTTL = Paths.get(inputFile, "beatles.ttl").toString(); + String pathInputBeatlesTTL = Paths.get(inputPath, "beatles.ttl").toString(); String pathRefBeatlesTRIG = Paths.get(referencesPath, "ttl.beatles.trig").toString(); String pathOutBeatlesTRIG = Paths.get(resultPath, "ttl.beatles.trig").toString(); @@ -109,7 +109,7 @@ public void testConvertTurtleToTrig() { @Test public void testConvertTurtleToTurtle() { - String pathInputBeatlesTTL = Paths.get(inputFile, "beatles.ttl").toString(); + String pathInputBeatlesTTL = Paths.get(inputPath, "beatles.ttl").toString(); String pathRefBeatlesTTL = Paths.get(referencesPath, "ttl.beatles.ttl").toString(); String pathOutBeatlesTTL = Paths.get(resultPath, "ttl.beatles.ttl").toString(); @@ -125,7 +125,7 @@ public void testConvertTurtleToTurtle() { @Test public void testConvertTurtleToNt() { - String pathInputBeatlesTTL = Paths.get(inputFile, "beatles.ttl").toString(); + String pathInputBeatlesTTL = Paths.get(inputPath, "beatles.ttl").toString(); String pathRefBeatlesNT = Paths.get(referencesPath, "ttl.beatles.nt").toString(); String pathOutBeatlesNT = Paths.get(resultPath, "ttl.beatles.nt").toString(); @@ -141,7 +141,7 @@ public void testConvertTurtleToNt() { @Test public void testConvertTurtleToNq() { - String pathInputBeatlesTTL = Paths.get(inputFile, "beatles.ttl").toString(); + String pathInputBeatlesTTL = Paths.get(inputPath, "beatles.ttl").toString(); String pathRefBeatlesNQ = Paths.get(referencesPath, "ttl.beatles.nq").toString(); String pathOutBeatlesNQ = Paths.get(resultPath, "ttl.beatles.nq").toString(); @@ -157,7 +157,7 @@ public void testConvertTurtleToNq() { @Test public void testConvertXmltoXml() { - String pathInputBeatlesXML = Paths.get(inputFile, "beatles.rdf").toString(); + String pathInputBeatlesXML = Paths.get(inputPath, "beatles.rdf").toString(); String pathRefBeatlesXML = Paths.get(referencesPath, "rdf.beatles.rdf").toString(); String pathOutBeatlesXML = Paths.get(resultPath, "rdf.beatles.rdf").toString(); @@ -173,7 +173,7 @@ public void testConvertXmltoXml() { @Test public void testConvertXmlToJsonld() { - String pathInputBeatlesXML = Paths.get(inputFile, "beatles.rdf").toString(); + String pathInputBeatlesXML = Paths.get(inputPath, "beatles.rdf").toString(); String pathRefBeatlesJSON = Paths.get(referencesPath, "rdf.beatles.jsonld").toString(); String pathOutBeatlesJSON = Paths.get(resultPath, "rdf.beatles.jsonld").toString(); @@ -189,7 +189,7 @@ public void testConvertXmlToJsonld() { @Test public void testConvertXmlToTrig() { - String pathInputBeatlesXML = Paths.get(inputFile, "beatles.rdf").toString(); + String pathInputBeatlesXML = Paths.get(inputPath, "beatles.rdf").toString(); String pathRefBeatlesTRIG = Paths.get(referencesPath, "rdf.beatles.trig").toString(); String pathOutBeatlesTRIG = Paths.get(resultPath, "rdf.beatles.trig").toString(); @@ -205,7 +205,7 @@ public void testConvertXmlToTrig() { @Test public void testConvertXmlTiTurtle() { - String pathInputBeatlesXML = Paths.get(inputFile, "beatles.rdf").toString(); + String pathInputBeatlesXML = Paths.get(inputPath, "beatles.rdf").toString(); String pathRefBeatlesTTL = Paths.get(referencesPath, "rdf.beatles.ttl").toString(); String pathOutBeatlesTTL = Paths.get(resultPath, "rdf.beatles.ttl").toString(); @@ -221,7 +221,7 @@ public void testConvertXmlTiTurtle() { @Test public void testConvertXmlToNt() { - String pathInputBeatlesXML = Paths.get(inputFile, "beatles.rdf").toString(); + String pathInputBeatlesXML = Paths.get(inputPath, "beatles.rdf").toString(); String pathRefBeatlesNT = Paths.get(referencesPath, "rdf.beatles.nt").toString(); String pathOutBeatlesNT = Paths.get(resultPath, "rdf.beatles.nt").toString(); @@ -237,7 +237,7 @@ public void testConvertXmlToNt() { @Test public void testConvertXmlToNq() { - String pathInputBeatlesXML = Paths.get(inputFile, "beatles.rdf").toString(); + String pathInputBeatlesXML = Paths.get(inputPath, "beatles.rdf").toString(); String pathRefBeatlesNQ = Paths.get(referencesPath, "rdf.beatles.nq").toString(); String pathOutBeatlesNQ = Paths.get(resultPath, "rdf.beatles.nq").toString(); @@ -253,7 +253,7 @@ public void testConvertXmlToNq() { @Test public void testConvertTrigToXml() { - String pathInputBeatlesTRIG = Paths.get(inputFile, "beatles.trig").toString(); + String pathInputBeatlesTRIG = Paths.get(inputPath, "beatles.trig").toString(); String pathRefBeatlesXML = Paths.get(referencesPath, "trig.beatles.rdf").toString(); String pathOutBeatlesXML = Paths.get(resultPath, "trig.beatles.rdf").toString(); @@ -269,7 +269,7 @@ public void testConvertTrigToXml() { @Test public void testConvertTrigToJsonld() { - String pathInputBeatlesTRIG = Paths.get(inputFile, "beatles.trig").toString(); + String pathInputBeatlesTRIG = Paths.get(inputPath, "beatles.trig").toString(); String pathRefBeatlesJSON = Paths.get(referencesPath, "trig.beatles.jsonld").toString(); String pathOutBeatlesJSON = Paths.get(resultPath, "trig.beatles.jsonld").toString(); @@ -285,7 +285,7 @@ public void testConvertTrigToJsonld() { @Test public void testConvertTrigToTrig() { - String pathInputBeatlesTRIG = Paths.get(inputFile, "beatles.trig").toString(); + String pathInputBeatlesTRIG = Paths.get(inputPath, "beatles.trig").toString(); String pathExpectBeatlesTRIG = Paths.get(referencesPath, "trig.beatles.trig").toString(); String pathOutBeatlesTRIG = Paths.get(resultPath, "trig.beatles.trig").toString(); @@ -301,7 +301,7 @@ public void testConvertTrigToTrig() { @Test public void testConvertTrigToTurtle() { - String pathInputBeatlesTRIG = Paths.get(inputFile, "beatles.trig").toString(); + String pathInputBeatlesTRIG = Paths.get(inputPath, "beatles.trig").toString(); String pathRefBeatlesTTL = Paths.get(referencesPath, "trig.beatles.ttl").toString(); String pathOutBeatlesTTL = Paths.get(resultPath, "trig.beatles.ttl").toString(); @@ -317,7 +317,7 @@ public void testConvertTrigToTurtle() { @Test public void testConvertTrigToNt() { - String pathInputBeatlesTRIG = Paths.get(inputFile, "beatles.trig").toString(); + String pathInputBeatlesTRIG = Paths.get(inputPath, "beatles.trig").toString(); String pathRefBeatlesNT = Paths.get(referencesPath, "trig.beatles.nt").toString(); String pathOutBeatlesNT = Paths.get(resultPath, "trig.beatles.nt").toString(); @@ -333,7 +333,7 @@ public void testConvertTrigToNt() { @Test public void testConvertTrigToNq() { - String pathInputBeatlesTRIG = Paths.get(inputFile, "beatles.trig").toString(); + String pathInputBeatlesTRIG = Paths.get(inputPath, "beatles.trig").toString(); String pathRefBeatlesNQ = Paths.get(referencesPath, "trig.beatles.nq").toString(); String pathOutBeatlesNQ = Paths.get(resultPath, "trig.beatles.nq").toString(); @@ -349,7 +349,7 @@ public void testConvertTrigToNq() { @Test public void testConvertJsonldToXml() { - String pathInputBeatlesJSONLD = Paths.get(inputFile, "beatles.jsonld").toString(); + String pathInputBeatlesJSONLD = Paths.get(inputPath, "beatles.jsonld").toString(); String pathRefBeatlesXML = Paths.get(referencesPath, "jsonld.beatles.rdf").toString(); String pathOutBeatlesXML = Paths.get(resultPath, "jsonld.beatles.rdf").toString(); @@ -365,7 +365,7 @@ public void testConvertJsonldToXml() { @Test public void testConvertJsonldToJsonld() { - String pathInputBeatlesJSONLD = Paths.get(inputFile, "beatles.jsonld").toString(); + String pathInputBeatlesJSONLD = Paths.get(inputPath, "beatles.jsonld").toString(); String pathRefBeatlesJSON = Paths.get(referencesPath, "jsonld.beatles.jsonld").toString(); String pathOutBeatlesJSON = Paths.get(resultPath, "jsonld.beatles.jsonld").toString(); @@ -381,7 +381,7 @@ public void testConvertJsonldToJsonld() { @Test public void testConvertJsonldToTrig() { - String pathInputBeatlesJSONLD = Paths.get(inputFile, "beatles.jsonld").toString(); + String pathInputBeatlesJSONLD = Paths.get(inputPath, "beatles.jsonld").toString(); String pathRefBeatlesTRIG = Paths.get(referencesPath, "jsonld.beatles.trig").toString(); String pathOutBeatlesTRIG = Paths.get(resultPath, "jsonld.beatles.trig").toString(); @@ -397,7 +397,7 @@ public void testConvertJsonldToTrig() { @Test public void testConvertJsonldToTurtle() { - String pathInputBeatlesJSONLD = Paths.get(inputFile, "beatles.jsonld").toString(); + String pathInputBeatlesJSONLD = Paths.get(inputPath, "beatles.jsonld").toString(); String pathRefBeatlesTTL = Paths.get(referencesPath, "jsonld.beatles.ttl").toString(); String pathOutBeatlesTTL = Paths.get(resultPath, "jsonld.beatles.ttl").toString(); @@ -413,7 +413,7 @@ public void testConvertJsonldToTurtle() { @Test public void testConvertJsonldToNt() { - String pathInputBeatlesJSONLD = Paths.get(inputFile, "beatles.jsonld").toString(); + String pathInputBeatlesJSONLD = Paths.get(inputPath, "beatles.jsonld").toString(); String pathRefBeatlesNT = Paths.get(referencesPath, "jsonld.beatles.nt").toString(); String pathOutBeatlesNT = Paths.get(resultPath, "jsonld.beatles.nt").toString(); @@ -429,7 +429,7 @@ public void testConvertJsonldToNt() { @Test public void testConvertJsonldToNq() { - String pathInputBeatlesJSONLD = Paths.get(inputFile, "beatles.jsonld").toString(); + String pathInputBeatlesJSONLD = Paths.get(inputPath, "beatles.jsonld").toString(); String pathRefBeatlesNQ = Paths.get(referencesPath, "jsonld.beatles.nq").toString(); String pathOutBeatlesNQ = Paths.get(resultPath, "jsonld.beatles.nq").toString(); @@ -445,7 +445,7 @@ public void testConvertJsonldToNq() { @Test public void testConvertNtToXml() { - String pathInputBeatlesNT = Paths.get(inputFile, "beatles.nt").toString(); + String pathInputBeatlesNT = Paths.get(inputPath, "beatles.nt").toString(); String pathRefBeatlesXML = Paths.get(referencesPath, "nt.beatles.rdf").toString(); String pathOutBeatlesXML = Paths.get(resultPath, "nt.beatles.rdf").toString(); @@ -461,7 +461,7 @@ public void testConvertNtToXml() { @Test public void testConvertNtToJsonld() { - String pathInputBeatlesNT = Paths.get(inputFile, "beatles.nt").toString(); + String pathInputBeatlesNT = Paths.get(inputPath, "beatles.nt").toString(); String pathRefBeatlesJSON = Paths.get(referencesPath, "nt.beatles.jsonld").toString(); String pathOutBeatlesJSON = Paths.get(resultPath, "nt.beatles.jsonld").toString(); @@ -477,7 +477,7 @@ public void testConvertNtToJsonld() { @Test public void testConvertNtToTrig() { - String pathInputBeatlesNT = Paths.get(inputFile, "beatles.nt").toString(); + String pathInputBeatlesNT = Paths.get(inputPath, "beatles.nt").toString(); String pathRefBeatlesTRIG = Paths.get(referencesPath, "nt.beatles.trig").toString(); String pathOutBeatlesTRIG = Paths.get(resultPath, "nt.beatles.trig").toString(); @@ -493,7 +493,7 @@ public void testConvertNtToTrig() { @Test public void testConvertNtToTurtle() { - String pathInputBeatlesNT = Paths.get(inputFile, "beatles.nt").toString(); + String pathInputBeatlesNT = Paths.get(inputPath, "beatles.nt").toString(); String pathRefBeatlesTTL = Paths.get(referencesPath, "nt.beatles.ttl").toString(); String pathOutBeatlesTTL = Paths.get(resultPath, "nt.beatles.ttl").toString(); @@ -509,7 +509,7 @@ public void testConvertNtToTurtle() { @Test public void testConvertNtToNt() { - String pathInputBeatlesNT = Paths.get(inputFile, "beatles.nt").toString(); + String pathInputBeatlesNT = Paths.get(inputPath, "beatles.nt").toString(); String pathRefBeatlesNT = Paths.get(referencesPath, "nt.beatles.nt").toString(); String pathOutBeatlesNT = Paths.get(resultPath, "nt.beatles.nt").toString(); @@ -525,7 +525,7 @@ public void testConvertNtToNt() { @Test public void testConvertNtToNq() { - String pathInputBeatlesNT = Paths.get(inputFile, "beatles.nt").toString(); + String pathInputBeatlesNT = Paths.get(inputPath, "beatles.nt").toString(); String pathRefBeatlesNQ = Paths.get(referencesPath, "nt.beatles.nq").toString(); String pathOutBeatlesNQ = Paths.get(resultPath, "nt.beatles.nq").toString(); @@ -541,7 +541,7 @@ public void testConvertNtToNq() { @Test public void testConvertNqToXml() { - String pathInputBeatlesNQ = Paths.get(inputFile, "beatles.nq").toString(); + String pathInputBeatlesNQ = Paths.get(inputPath, "beatles.nq").toString(); String pathRefBeatlesXML = Paths.get(referencesPath, "nq.beatles.rdf").toString(); String pathOutBeatlesXML = Paths.get(resultPath, "nq.beatles.rdf").toString(); @@ -557,7 +557,7 @@ public void testConvertNqToXml() { @Test public void testConvertNqToJsonld() { - String pathInputBeatlesNQ = Paths.get(inputFile, "beatles.nq").toString(); + String pathInputBeatlesNQ = Paths.get(inputPath, "beatles.nq").toString(); String pathRefBeatlesJSON = Paths.get(referencesPath, "nq.beatles.jsonld").toString(); String pathOutBeatlesJSON = Paths.get(resultPath, "nq.beatles.jsonld").toString(); @@ -573,7 +573,7 @@ public void testConvertNqToJsonld() { @Test public void testConvertNqToTrig() { - String pathInputBeatlesNQ = Paths.get(inputFile, "beatles.nq").toString(); + String pathInputBeatlesNQ = Paths.get(inputPath, "beatles.nq").toString(); String pathRefBeatlesTRIG = Paths.get(referencesPath, "nq.beatles.trig").toString(); String pathOutBeatlesTRIG = Paths.get(resultPath, "nq.beatles.trig").toString(); @@ -589,7 +589,7 @@ public void testConvertNqToTrig() { @Test public void testConvertNqToTurtle() { - String pathInputBeatlesNQ = Paths.get(inputFile, "beatles.nq").toString(); + String pathInputBeatlesNQ = Paths.get(inputPath, "beatles.nq").toString(); String pathRefBeatlesTTL = Paths.get(referencesPath, "nq.beatles.ttl").toString(); String pathOutBeatlesTTL = Paths.get(resultPath, "nq.beatles.ttl").toString(); @@ -605,7 +605,7 @@ public void testConvertNqToTurtle() { @Test public void testConvertNqToNt() { - String pathInputBeatlesNQ = Paths.get(inputFile, "beatles.nq").toString(); + String pathInputBeatlesNQ = Paths.get(inputPath, "beatles.nq").toString(); String pathRefBeatlesNT = Paths.get(referencesPath, "nq.beatles.nt").toString(); String pathOutBeatlesNT = Paths.get(resultPath, "nq.beatles.nt").toString(); @@ -621,7 +621,7 @@ public void testConvertNqToNt() { @Test public void testConvertNqToNq() { - String pathInputBeatlesNQ = Paths.get(inputFile, "beatles.nq").toString(); + String pathInputBeatlesNQ = Paths.get(inputPath, "beatles.nq").toString(); String pathRefBeatlesNQ = Paths.get(referencesPath, "nq.beatles.nq").toString(); String pathOutBeatlesNQ = Paths.get(resultPath, "nq.beatles.nq").toString(); @@ -637,7 +637,7 @@ public void testConvertNqToNq() { @Test public void testConvertRdfaToXml() { - String pathInputStringHtml = Paths.get(inputFile, "beatles.html").toString(); + String pathInputStringHtml = Paths.get(inputPath, "beatles.html").toString(); String pathRefBeatlesXML = Paths.get(referencesPath, "html.beatles.rdf").toString(); String pathOutBeatlesXML = Paths.get(resultPath, "html.beatles.rdf").toString(); @@ -653,7 +653,7 @@ public void testConvertRdfaToXml() { @Test public void testConvertRdfaToJsonld() { - String pathInputStringHtml = Paths.get(inputFile, "beatles.html").toString(); + String pathInputStringHtml = Paths.get(inputPath, "beatles.html").toString(); String pathRefBeatlesJSON = Paths.get(referencesPath, "html.beatles.jsonld").toString(); String pathOutBeatlesJSON = Paths.get(resultPath, "html.beatles.jsonld").toString(); @@ -669,7 +669,7 @@ public void testConvertRdfaToJsonld() { @Test public void testConvertRdfaToTrig() { - String pathInputStringHtml = Paths.get(inputFile, "beatles.html").toString(); + String pathInputStringHtml = Paths.get(inputPath, "beatles.html").toString(); String pathRefBeatlesTRIG = Paths.get(referencesPath, "html.beatles.trig").toString(); String pathOutBeatlesTRIG = Paths.get(resultPath, "html.beatles.trig").toString(); @@ -685,7 +685,7 @@ public void testConvertRdfaToTrig() { @Test public void testConvertRdfaToTurtle() { - String pathInputStringHtml = Paths.get(inputFile, "beatles.html").toString(); + String pathInputStringHtml = Paths.get(inputPath, "beatles.html").toString(); String pathRefBeatlesTTL = Paths.get(referencesPath, "html.beatles.ttl").toString(); String pathOutBeatlesTTL = Paths.get(resultPath, "html.beatles.ttl").toString(); @@ -701,7 +701,7 @@ public void testConvertRdfaToTurtle() { @Test public void testConvertRdfaToNt() { - String pathInputStringHtml = Paths.get(inputFile, "beatles.html").toString(); + String pathInputStringHtml = Paths.get(inputPath, "beatles.html").toString(); String pathRefBeatlesNT = Paths.get(referencesPath, "html.beatles.nt").toString(); String pathOutBeatlesNT = Paths.get(resultPath, "html.beatles.nt").toString(); @@ -717,7 +717,7 @@ public void testConvertRdfaToNt() { @Test public void testConvertRdfaToNq() { - String pathInputStringHtml = Paths.get(inputFile, "beatles.html").toString(); + String pathInputStringHtml = Paths.get(inputPath, "beatles.html").toString(); String pathRefBeatlesNQ = Paths.get(referencesPath, "html.beatles.nq").toString(); String pathOutBeatlesNQ = Paths.get(resultPath, "html.beatles.nq").toString();