@isTest
|
private class QueryWrapperTest {
|
static testMethod void testMethod1() {
|
// QueryWrapper.ControllerUtil();
|
QueryWrapper a = new QueryWrapper();
|
QueryWrapper query = new QueryWrapper(PromotionHead__c.SObjectType);
|
List<String> b= new List<String>();
|
b.add('2');
|
b.add('1');
|
query.likePlus('Name','2019');
|
query.likeRight('Name',true);
|
query.likeRight('Name',false);
|
query.likeLeft('Name',Datetime.now());
|
query.likeLeft('Name',Date.today());
|
|
query.notIn('Name',b);
|
query.eq('Name','2019');
|
query.ne('Name','2019');
|
query.inPlus('Name',b);
|
query.gt('Name','2019');
|
query.ge('Name','2019');
|
query.lt('Name','2019');
|
query.le('Name','2019');
|
query.isNull('Name');
|
query.isNotNull('Name');
|
query.orderBy('Name','2019');
|
query.orderByAsc('Name');
|
query.groupBy('Name','2019');
|
query.orderByDesc('Name');
|
query.setType(PromotionHead__c.SObjectType);
|
query.getSObjectFieldList();
|
query.getType();
|
query.build();
|
// QueryWrapper.statmentType();
|
}
|
}
|