1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| @isTest
| public with sharing class PromotioDaoTest {
|
| static testMethod void Test01() {
| PromotioDao prDao = new PromotioDao();
| Integer page = 1;
| Integer pageLimit = 3;
| String search = '';
| String sortOrder = '';
| String sortPlus = 'Id';
| String[] arr = new String[] {'PromotionNo__cEqual','NameEqual'};
| PagePlus pages = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search,sortOrder,sortPlus,arr);
| PagePlus pages2 = prDao.GetNormalProductSearchFn(page,pageLimit,search,sortOrder,sortPlus,arr);
| PagePlus page3 = prDao.GetAuthorizerSearchFn(page,pageLimit,search,sortOrder,sortPlus,arr);
| }
| static testMethod void Test02() {
| PromotioDao prDao = new PromotioDao();
| Integer page = 2;
| Integer pageLimit = 3;
| String search = '';
| String sortOrder = '';
| String sortPlus = 'Id';
| String[] arr = new String[] {'PromotionNo__cEqual','NameEqual'};
| PagePlus pages = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search,sortOrder,sortPlus,arr);
| PagePlus pages2 = prDao.GetNormalProductSearchFn(page,pageLimit,search,sortOrder,sortPlus,arr);
| PagePlus page3 = prDao.GetAuthorizerSearchFn(page,pageLimit,search,sortOrder,sortPlus,arr);
| }
| }
|
|