@isTest
|
public with sharing class BaseControllerTest {
|
static testMethod void Test01() {
|
QuoteTrialService prDao = new QuoteTrialService();
|
Integer page = 1;
|
Integer pageLimit = 3;
|
String search = '%7B%22NameInDate%22:%222019%22,%22PromotionNo__cEqual%22:%22123%22%7D';
|
String search1 = '%7B%22NameBegin%22:%222019%22,%22PromotionNo__cNotEqual%22:%22123%22%7D';
|
String search2 = '%7B%22NameBeginEqual%22:%222019%22,%22PromotionNo__cEnd%22:%22123%22%7D';
|
String search3 = '%7B%22NameEndEqual%22:%222019%22,%22PromotionNo__cLike%22:%22123%22%7D';
|
String search4 = '%7B%22NameLikeLeft%22:%222019%22,%22PromotionNo__cLikeRight%22:%22123%22%7D';
|
String search5 = '%7B%22NameNotIn%22:%222019%22,%22PromotionNo__cIn%22:%22123%22%7D';
|
String search6 = '%7B%22NameIsNull%22:%222019%22,%22PromotionNo__cIsNotNull%22:%22123%22%7D';
|
String search7 = '%7B%22NameEqualDate%22:%222019%22,%22PromotionNo__cEqualDate%22:%22123%22%7D';
|
String search8 = '%7B%22NameBeginDate%22:%222019%22,%22PromotionNo__cBeginEqualDate%22:%22123%22%7D';
|
String search9 = '%7B%22NameEndDate%22:%222019%22,%22PromotionNo__cEndEqualDate%22:%22123%22%7D';
|
String sortOrder = '';
|
String sortPlus = 'Id';
|
String[] arr = new String[] {'PromotionNo__cEqual','NameInDate'};
|
String[] arr1 = new String[] {'PromotionNo__cNotEqual','NameBegin'};
|
String[] arr2 = new String[] {'PromotionNo__cEnd','NameBeginEqual'};
|
String[] arr3 = new String[] {'PromotionNo__cLike','NameEndEqual'};
|
String[] arr4 = new String[] {'PromotionNo__cLikeRight','NameLikeLeft'};
|
String[] arr5 = new String[] {'PromotionNo__cIn','NameNotIn'};
|
String[] arr6 = new String[] {'PromotionNo__cIsNotNull','NameIsNull'};
|
String[] arr7 = new String[] {'PromotionNo__cEqualDate','NameEqualDate'};
|
String[] arr8 = new String[] {'PromotionNo__cBeginEqualDate','NameBeginDate'};
|
String[] arr9 = new String[] {'PromotionNo__cEndEqualDate','NameEndDate'};
|
String Agency1c = '123456';
|
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,Agency1c);
|
PagePlus pages4 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search1,sortOrder,sortPlus,arr1);
|
PagePlus pages5 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search2,sortOrder,sortPlus,arr2);
|
PagePlus pages6 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search3,sortOrder,sortPlus,arr3);
|
PagePlus pages7 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search4,sortOrder,sortPlus,arr4);
|
PagePlus pages8 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search5,sortOrder,sortPlus,arr5);
|
PagePlus pages9 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search6,sortOrder,sortPlus,arr6);
|
PagePlus pages10 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search7,sortOrder,sortPlus,arr7);
|
PagePlus pages11 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search8,sortOrder,sortPlus,arr8);
|
PagePlus pages12 = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search9,sortOrder,sortPlus,arr9);
|
}
|
}
|