Skip to content

Commit

Permalink
Add a basic test to make sure "--version" does not throw an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Apr 8, 2022
1 parent 7e0692c commit 1bae732
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,4 +458,15 @@ public void testSingleImageNoHCS() throws Exception {
}
}

/**
* Test "--version" with no other arguments.
* Does not test the version values, just makes sure that an exception
* is not thrown.
*/
@Test
public void testVersionOnly() throws Exception {
CommandLine.call(
new PyramidFromDirectoryWriter(), new String[] {"--version"});
}

}

0 comments on commit 1bae732

Please sign in to comment.