diff --git a/src/test/java/de/retest/recheck/cli/subcommands/CommitIT.java b/src/test/java/de/retest/recheck/cli/subcommands/CommitIT.java index 2d9644e4..3a2c5d2f 100644 --- a/src/test/java/de/retest/recheck/cli/subcommands/CommitIT.java +++ b/src/test/java/de/retest/recheck/cli/subcommands/CommitIT.java @@ -27,13 +27,14 @@ public class CommitIT { @Test public void commit_without_argument_should_return_the_usage_message() { - final String expectedMessage = - "Usage: commit [--all] \n" + "Accept specified differences of given test report.\n" - + " Path to a test report file. If the test report is not in the\n" - + " project directory, please specify the absolute path,\n" - + " otherwise a relative path is sufficient.\n" - + " --all Accept all differences from the given test report.\n"; - assertThat( new CommandLine( new Commit() ).getUsageMessage() ).isEqualTo( expectedMessage ); + final String expectedMessage = "Usage: commit [--all] [--exclude=]... \n" + + "Accept specified differences of given test report.\n" + + " Path to a test report file. If the test report is not in\n" + + " the project directory, please specify the absolute\n" + + " path, otherwise a relative path is sufficient.\n" + + " --all Accept all differences from the given test report.\n" + + " --exclude= Filter(s) to exclude changes from the diff.\n"; + assertThat( new CommandLine( new Commit() ).getUsageMessage() ).isEqualToIgnoringNewLines( expectedMessage ); } @Test