Skip to content

Commit

Permalink
Fixed very minor typos in testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
foxeng committed Apr 9, 2019
1 parent 09576db commit 9b9d7a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/umlgraph/test/BasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private static void performViewTests(List<String> differences, File outFolder)
private static List<String> getViewList(File viewFolder) {
if (!viewFolder.exists())
throw new RuntimeException("The folder " + viewFolder.getAbsolutePath()
+ " does not exists.");
+ " does not exist.");
else if (!viewFolder.isDirectory())
throw new RuntimeException(viewFolder.getAbsolutePath() + " is not a folder!.");
else if (!viewFolder.canRead())
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/umlgraph/test/UmlDocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ private static void compareDocletOutputs(List<String> differences, File refFolde
return;

if (!refFolder.exists() || !refFolder.isDirectory())
throw new IllegalArgumentException("Reference does not exists or is not a folder: "
throw new IllegalArgumentException("Reference does not exist or is not a folder: "
+ refFolder.getAbsolutePath());
if (!outFolder.exists() || !outFolder.isDirectory())
throw new IllegalArgumentException("Output does not exists or is not a folder: "
throw new IllegalArgumentException("Output does not exist or is not a folder: "
+ outFolder.getAbsolutePath());

// get elements and sort
Expand Down

0 comments on commit 9b9d7a8

Please sign in to comment.