Skip to content

Commit

Permalink
- F rename method, same as in python
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsEckart committed May 13, 2024
1 parent 9a45919 commit 892c2b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void testAddReporter()
Options options2 = new Options().withReporter(new MultiReporter(new Junit5Reporter(), new Junit4Reporter()));
ApprovalFailureReporter reporter2 = options2.getReporter();
assertEquals(reporter2.toString(), "Junit5Reporter, Junit4Reporter");
Options options3 = new Options().withReporter(new Junit5Reporter()).andReporter(new Junit4Reporter());
Options options3 = new Options().withReporter(new Junit5Reporter()).addReporter(new Junit4Reporter());
ApprovalFailureReporter reporter3 = options3.getReporter();
assertEquals(reporter3.toString(), "Junit5Reporter, Junit4Reporter");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Options withReporter(ApprovalFailureReporter reporter)
{
return new Options(fields, Fields.REPORTER, reporter);
}
public Options andReporter(ApprovalFailureReporter reporter)
public Options addReporter(ApprovalFailureReporter reporter)
{
return this.withReporter(new MultiReporter(this.getReporter(), reporter));
}
Expand Down

0 comments on commit 892c2b1

Please sign in to comment.