Skip to content

Commit

Permalink
changed way of URI generation in FileTest class
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh4902 committed Jun 6, 2024
1 parent cb896bd commit 1cbd9bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
After.
4 changes: 2 additions & 2 deletions src/tests/gov/nasa/jpf/test/java/io/FileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ public void testToURI(){
File file = new File("testfile.txt");
URI expectedURI = null;
try {
expectedURI = new URI("file:testfile.txt");
} catch (URISyntaxException e) {
expectedURI = new File(file.getAbsolutePath()).toURI();
} catch (Exception e) {
fail("URISyntaxException thrown while constructing expected URI");
}

Expand Down

0 comments on commit 1cbd9bc

Please sign in to comment.