1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| @isTest
| private class BatchEmailUtilTest {
| static testMethod void testMethod1() {
| BatchEmailUtil be = new BatchEmailUtil();
| String[] toList = new String[]{UserInfo.getUserEmail()};
| String title = 'test title';
| String[] ccList = new String[]{};
|
| be.successMail(title, 1);
| be.successMail(toList,ccList,title, 1);
| be.successMail(toList,ccList,title, 1, 'add desc');
| be.successMail(toList,ccList,title, 'error message', 1, 1, 'add desc');
| be.failedMail(title, 'error message', 1, 1, 1);
| be.failedMail(toList, ccList, title, 'error message', 1, 1, 1);
| be.failedMail(toList, ccList, title, 'error message', 1, 1, 1, 'add desc');
| be.failedMail(toList, ccList, title, 'error message', 1, 1, 1,1, 'add desc');
| }
| }
|
|