Skip to content

Commit fbfa23a

Browse files
committed
Better parameter name (onlyBasicFields -> skipReplyToAndBounceTo)
1 parent 77f20e1 commit fbfa23a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/simple-java-mail/src/test/java/testutil/EmailHelper.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ public class EmailHelper {
3939

4040
public static final Date CUSTOM_SENT_DATE = new GregorianCalendar(2011, SEPTEMBER, 15, 12, 5, 43).getTime();
4141

42-
public static EmailPopulatingBuilder createDummyEmailBuilder(boolean includeSubjectAndBody, boolean onlyBasicFields, boolean includeCustomHeaders, boolean useSmimeDetailsImplFromSmimeModule, boolean useDynamicImageEmbedding, final boolean includeCalendarText)
42+
public static EmailPopulatingBuilder createDummyEmailBuilder(boolean includeSubjectAndBody, boolean skipReplyToAndBounceTo, boolean includeCustomHeaders, boolean useSmimeDetailsImplFromSmimeModule, boolean useDynamicImageEmbedding, final boolean includeCalendarText)
4343
throws IOException {
44-
return createDummyEmailBuilder(null, includeSubjectAndBody, onlyBasicFields, includeCustomHeaders, useSmimeDetailsImplFromSmimeModule, false, useDynamicImageEmbedding, includeCalendarText);
44+
return createDummyEmailBuilder(null, includeSubjectAndBody, skipReplyToAndBounceTo, includeCustomHeaders, useSmimeDetailsImplFromSmimeModule, false, useDynamicImageEmbedding, includeCalendarText);
4545
}
4646

47-
public static EmailPopulatingBuilder createDummyEmailBuilder(@Nullable String id, boolean includeSubjectAndBody, boolean onlyBasicFields, boolean includeCustomHeaders,
48-
boolean useSmimeDetailsImplFromSmimeModule, final boolean fixSentDate, final boolean useDynamicImageEmbedding, final boolean includeCalendarText)
47+
public static EmailPopulatingBuilder createDummyEmailBuilder(@Nullable String id, boolean includeSubjectAndBody, boolean skipReplyToAndBounceTo, boolean includeCustomHeaders,
48+
boolean useSmimeDetailsImplFromSmimeModule, final boolean fixSentDate, final boolean useDynamicImageEmbedding, final boolean includeCalendarText)
4949
throws IOException {
5050
EmailPopulatingBuilder builder = EmailBuilder.startingBlank()
5151
.fixingMessageId(id)
5252
.from("lollypop", "[email protected]")
5353
// don't forget to add your own address here ->
5454
.to("C.Cane", "[email protected]");
5555

56-
if (!onlyBasicFields) {
56+
if (!skipReplyToAndBounceTo) {
5757
// normally not needed, but for the test it is because the MimeMessage will
5858
// have it added automatically as well, so the parsed Email will also have it then
5959
builder = builder

0 commit comments

Comments
 (0)