Skip to content

Commit 892c2b1

Browse files
committed
- F rename method, same as in python
1 parent 9a45919 commit 892c2b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

approvaltests-tests/src/test/java/org/approvaltests/OptionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void testAddReporter()
206206
Options options2 = new Options().withReporter(new MultiReporter(new Junit5Reporter(), new Junit4Reporter()));
207207
ApprovalFailureReporter reporter2 = options2.getReporter();
208208
assertEquals(reporter2.toString(), "Junit5Reporter, Junit4Reporter");
209-
Options options3 = new Options().withReporter(new Junit5Reporter()).andReporter(new Junit4Reporter());
209+
Options options3 = new Options().withReporter(new Junit5Reporter()).addReporter(new Junit4Reporter());
210210
ApprovalFailureReporter reporter3 = options3.getReporter();
211211
assertEquals(reporter3.toString(), "Junit5Reporter, Junit4Reporter");
212212
}

approvaltests/src/main/java/org/approvaltests/core/Options.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public Options withReporter(ApprovalFailureReporter reporter)
6262
{
6363
return new Options(fields, Fields.REPORTER, reporter);
6464
}
65-
public Options andReporter(ApprovalFailureReporter reporter)
65+
public Options addReporter(ApprovalFailureReporter reporter)
6666
{
6767
return this.withReporter(new MultiReporter(this.getReporter(), reporter));
6868
}

0 commit comments

Comments
 (0)