package main.homepage.main.di;

import main.homepage.common.Mail;

public class CommonMail {
    private void execute(Mail mail) {
        new MailDI(mail).send();
    }
    protected CommonMail(Mail mail) {
        execute(mail);
    }
}

@@ -96,13 +96,15 @@
   pr
-ivate
+otected
  voi
@@ -195,32 +195,32 @@
 il(Mail mail) %7B%0A
-
         execute(
@@ -231,11 +231,431 @@
 );%0A    %7D
+%0A%0A    // test code.%0A    public static final int SUCCESS_VALUE = 1;%0A    public static final int FAIL_VALUE = 0;%0A    public int execute_check(Mail mail) %7B%0A        try %7B%0A            execute(mail);%0A        %7D catch (Exception e) %7B%0A            return fail();%0A        %7D%0A        return success();%0A    %7D%0A    protected int success() %7B%0A        return SUCCESS_VALUE;%0A    %7D%0A    protected int fail() %7B%0A        return FAIL_VALUE;%0A    %7D
 %0A%7D%0A

Update CommonMail.java