Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 5f0b932

Browse files
committed
lint fixing
1 parent 5779810 commit 5f0b932

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

corese-command/src/test/java/fr/inria/corese/command/programs/ConvertTest.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ private String canonicalize(String path) {
5353

5454
@BeforeEach
5555
public void setUp() {
56-
PrintWriter out = new PrintWriter(this.out);
57-
PrintWriter err = new PrintWriter(this.err);
58-
cmd.setOut(out);
59-
cmd.setErr(err);
56+
PrintWriter systemOut = new PrintWriter(this.out);
57+
PrintWriter systemErr = new PrintWriter(this.err);
58+
cmd.setOut(systemOut);
59+
cmd.setErr(systemErr);
6060
}
6161

6262
@Test
@@ -733,42 +733,42 @@ public void testConvertRdfaToNq() {
733733

734734
@Test
735735
public void testConvertWithSameInputAndOutputPath() {
736-
String inputPath = Paths.get(referencesPath, "beatles.ttl").toString();
737-
int exitCode = cmd.execute("-i", inputPath, "-of", "TURTLE", "-o", inputPath);
736+
String testInputPath = Paths.get(referencesPath, "beatles.ttl").toString();
737+
int exitCode = cmd.execute("-i", testInputPath, "-of", "TURTLE", "-o", inputPath);
738738
assertEquals(1, exitCode);
739739
assertEquals(out.toString(), "");
740740
assertTrue(err.toString().trim().contains("Input path cannot be same as output path"));
741741
}
742742

743743
@Test
744744
public void testConvertWithInvalidInputPath() {
745-
String inputPath = "invalid_path.ttl";
745+
String testInputPath = "invalid_path.ttl";
746746
String outputPath = Paths.get(resultPath, "ttlbeatles.ttl").toString();
747747

748-
int exitCode = cmd.execute("-i", inputPath, "-of", "TURTLE", "-o", outputPath);
748+
int exitCode = cmd.execute("-i", testInputPath, "-of", "TURTLE", "-o", outputPath);
749749
assertEquals(1, exitCode);
750750
assertEquals(out.toString(), "");
751751
assertTrue(err.toString().trim().contains("Failed to open RDF data file:"));
752752
}
753753

754754
@Test
755755
public void testConvertWithInvalidOutputPath() {
756-
String inputPath = Paths.get(referencesPath, "beatles.ttl").toString();
756+
String testInputPath = Paths.get(referencesPath, "beatles.ttl").toString();
757757
String outputPath = "/invalid/path/for/output.ttl";
758758

759-
int exitCode = cmd.execute("-i", inputPath, "-of", "TURTLE", "-o", outputPath);
759+
int exitCode = cmd.execute("-i", testInputPath, "-of", "TURTLE", "-o", outputPath);
760760
assertEquals(1, exitCode);
761761
assertEquals(out.toString(), "");
762762
assertTrue(err.toString().trim().contains("Failed to open RDF data file:"));
763763
}
764764

765765
@Test
766766
public void testGraphUtilsLoadWithInvalidFormat() {
767-
Path inputPath = Paths.get(referencesPath, "beatles.ttl");
767+
Path testInputPath = Paths.get(referencesPath, "beatles.ttl");
768768

769769
try {
770770
RdfDataLoader loader = new RdfDataLoader(null, false);
771-
loader.load(new String[] { inputPath.toString() }, EnumRdfInputFormat.JSONLD, false);
771+
loader.load(new String[] { testInputPath.toString() }, EnumRdfInputFormat.JSONLD, false);
772772
fail("Expected an IllegalArgumentException to be thrown");
773773
} catch (IllegalArgumentException e) {
774774
assertTrue(e.getMessage().contains("Failed to open RDF data file:"));

0 commit comments

Comments
 (0)