Skip to content

Commit

Permalink
Add missing content for the test method
Browse files Browse the repository at this point in the history
  • Loading branch information
ivonx committed Jun 28, 2019
1 parent f300a1b commit 09399e9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/test/java/de/retest/recheck/cli/subcommands/DiffIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ public class DiffIT {

@Test
public void diff_without_argument_should_return_the_usage_message() {
final String expected = "Usage: diff <testReport>\n" + "Display differences of given test report.\n"
+ " <testReport> 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";
assertThat( new CommandLine( new Diff() ).getUsageMessage() ).isEqualTo( expected );
final String expected =
"Usage: diff [--exclude=<exclude>]... <testReport>\n" + "Display differences of given test report.\n"
+ " <testReport> 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"
+ " --exclude=<exclude> Ignore matching elements during accept.\n";
assertThat( new CommandLine( new Diff() ).getUsageMessage() ).isEqualToIgnoringNewLines( expected );
}

@Test
Expand Down

0 comments on commit 09399e9

Please sign in to comment.