@@ -53,10 +53,10 @@ private String canonicalize(String path) {
53
53
54
54
@ BeforeEach
55
55
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 );
60
60
}
61
61
62
62
@ Test
@@ -733,42 +733,42 @@ public void testConvertRdfaToNq() {
733
733
734
734
@ Test
735
735
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 );
738
738
assertEquals (1 , exitCode );
739
739
assertEquals (out .toString (), "" );
740
740
assertTrue (err .toString ().trim ().contains ("Input path cannot be same as output path" ));
741
741
}
742
742
743
743
@ Test
744
744
public void testConvertWithInvalidInputPath () {
745
- String inputPath = "invalid_path.ttl" ;
745
+ String testInputPath = "invalid_path.ttl" ;
746
746
String outputPath = Paths .get (resultPath , "ttlbeatles.ttl" ).toString ();
747
747
748
- int exitCode = cmd .execute ("-i" , inputPath , "-of" , "TURTLE" , "-o" , outputPath );
748
+ int exitCode = cmd .execute ("-i" , testInputPath , "-of" , "TURTLE" , "-o" , outputPath );
749
749
assertEquals (1 , exitCode );
750
750
assertEquals (out .toString (), "" );
751
751
assertTrue (err .toString ().trim ().contains ("Failed to open RDF data file:" ));
752
752
}
753
753
754
754
@ Test
755
755
public void testConvertWithInvalidOutputPath () {
756
- String inputPath = Paths .get (referencesPath , "beatles.ttl" ).toString ();
756
+ String testInputPath = Paths .get (referencesPath , "beatles.ttl" ).toString ();
757
757
String outputPath = "/invalid/path/for/output.ttl" ;
758
758
759
- int exitCode = cmd .execute ("-i" , inputPath , "-of" , "TURTLE" , "-o" , outputPath );
759
+ int exitCode = cmd .execute ("-i" , testInputPath , "-of" , "TURTLE" , "-o" , outputPath );
760
760
assertEquals (1 , exitCode );
761
761
assertEquals (out .toString (), "" );
762
762
assertTrue (err .toString ().trim ().contains ("Failed to open RDF data file:" ));
763
763
}
764
764
765
765
@ Test
766
766
public void testGraphUtilsLoadWithInvalidFormat () {
767
- Path inputPath = Paths .get (referencesPath , "beatles.ttl" );
767
+ Path testInputPath = Paths .get (referencesPath , "beatles.ttl" );
768
768
769
769
try {
770
770
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 );
772
772
fail ("Expected an IllegalArgumentException to be thrown" );
773
773
} catch (IllegalArgumentException e ) {
774
774
assertTrue (e .getMessage ().contains ("Failed to open RDF data file:" ));
0 commit comments