File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
approvaltests-tests/src/test/java/org/approvaltests
approvaltests/src/main/java/org/approvaltests/core Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments