package test.main.homepage.common;

import junit.framework.TestCase;
import main.homepage.main.di.AdminMail;
import main.homepage.main.di.AdvertiseMail;
import main.homepage.main.di.UserMail;
import org.junit.Test;

public class MailTest extends TestCase {

    @Test
    public void testAdminMail() throws Exception {
        new AdminMail();
    }

    @Test
    public void testAdvertiseMail() throws Exception {
        new AdvertiseMail();
    }

    @Test
    public void testUserMail() throws Exception {
        new UserMail();
    }
}

@@ -29,16 +29,47 @@
 ommon;%0A%0A
+import junit.framework.Assert;%0A
 import j
@@ -173,24 +173,65 @@
 ertiseMail;%0A
+import main.homepage.main.di.CommonMail;%0A
 import main.
@@ -396,22 +396,79 @@
     
-new AdminMail(
+Assert.assertEquals(new AdminMail().execute(), CommonMail.SUCCESS_VALUE
 );%0A 
@@ -550,26 +550,83 @@
     
-new AdvertiseMail(
+Assert.assertEquals(new AdvertiseMail().execute(), CommonMail.SUCCESS_VALUE
 );%0A 
@@ -703,21 +703,78 @@
     
-new UserMail(
+Assert.assertEquals(new UserMail().execute(), CommonMail.SUCCESS_VALUE
 );%0A 

Update MailTest.java