高章伟
2022-02-18 8b5f4c6c281cfa548f92de52c8021e37aa81901e
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
29
30
31
32
33
34
35
36
@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();
    }
}