Skip to content

Commit

Permalink
Fix the tests because of the new version of picocli
Browse files Browse the repository at this point in the history
  • Loading branch information
ivonx committed Aug 7, 2019
1 parent 6edcce9 commit 13762ec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/test/java/de/retest/recheck/cli/subcommands/CommitIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public class CommitIT {
public void commit_without_argument_should_return_the_usage_message() {
final String expectedMessage = "Usage: commit [--all] [--exclude=<exclude>]... <testReport>\n"
+ "Accept specified differences of given test report.\n"
+ " <testReport> Path to a test report file (.report extension). If the\n"
+ " test report is not in the project directory, please\n"
+ " specify the absolute path, otherwise a relative path\n"
+ " is sufficient.\n"
+ " <testReport> Path to a test report file (.report extension). If\n"
+ " the test report is not in the project directory,\n"
+ " please specify the absolute path, otherwise a\n"
+ " relative path is sufficient.\n"
+ " --all Accept all differences from the given test report.\n"
+ " --exclude=<exclude> Filter(s) to exclude changes from the diff.";
assertThat( new CommandLine( new Commit() ).getUsageMessage() ).isEqualToIgnoringNewLines( expectedMessage );
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/de/retest/recheck/cli/subcommands/DiffIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public class DiffIT {
public void diff_without_argument_should_return_the_usage_message() {
final String expected =
"Usage: diff [--exclude=<exclude>]... <testReport>\n" + "Display differences of given test report.\n"
+ " <testReport> Path to a test report file (.report extension). If the\n"
+ " test report is not in the project directory, please\n"
+ " specify the absolute path, otherwise a relative path\n"
+ " is sufficient.\n"
+ " <testReport> Path to a test report file (.report extension). If\n"
+ " the test report is not in the project directory,\n"
+ " please specify the absolute path, otherwise a\n"
+ " relative path is sufficient.\n"
+ " --exclude=<exclude> Filter(s) to exclude changes from the diff.";
assertThat( new CommandLine( new Diff() ).getUsageMessage() ).isEqualToIgnoringNewLines( expected );
}
Expand Down
9 changes: 5 additions & 4 deletions src/test/java/de/retest/recheck/cli/subcommands/IgnoreIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ public class IgnoreIT {
public void ignore_without_argument_should_return_the_usage_message() {
final String expected = "Usage: ignore [--all] [--list] [<testReport>]\n"
+ "Ignore specified differences of given test report.\n"
+ " [<testReport>] Path to a test report file (.report extension). If the test\n"
+ " report is not in the project directory, please specify the\n"
+ " absolute path, otherwise a relative path is sufficient.\n"
+ " [<testReport>] Path to a test report file (.report extension). If the\n"
+ " test report is not in the project directory, please\n"
+ " specify the absolute path, otherwise a relative path\n"
+ " is sufficient.\n"
+ " --all Ignore all differences from the given test report.\n"
+ " --list List all ignored elements.\n";
+ " --list List all ignored elements.";
assertThat( new CommandLine( new Ignore() ).getUsageMessage() ).isEqualToIgnoringNewLines( expected );
}

Expand Down

0 comments on commit 13762ec

Please sign in to comment.