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()
206
206
Options options2 = new Options ().withReporter (new MultiReporter (new Junit5Reporter (), new Junit4Reporter ()));
207
207
ApprovalFailureReporter reporter2 = options2 .getReporter ();
208
208
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 ());
210
210
ApprovalFailureReporter reporter3 = options3 .getReporter ();
211
211
assertEquals (reporter3 .toString (), "Junit5Reporter, Junit4Reporter" );
212
212
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public Options withReporter(ApprovalFailureReporter reporter)
62
62
{
63
63
return new Options (fields , Fields .REPORTER , reporter );
64
64
}
65
- public Options andReporter (ApprovalFailureReporter reporter )
65
+ public Options addReporter (ApprovalFailureReporter reporter )
66
66
{
67
67
return this .withReporter (new MultiReporter (this .getReporter (), reporter ));
68
68
}
You can’t perform that action at this time.
0 commit comments