高章伟
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 QuestionnaireSurveyTriggerTest
{
    @isTest
    static void itShould()
    {
        Questionnaire_Survey__c csc = new Questionnaire_Survey__c();
        csc.Name = '*';
        csc.Questionnaire_user__c = UserInfo.getUserId();
        csc.Incharge_Hospital_Count__c = '①5家以下';
        csc.Incharge_Hospital_Location__c = '③ 全部是市内医院';
        csc.Incharge_Hospital_FarthestDistance__c = 222;
        csc.Incharge_Hospital_NearestDistance__c = 111;
        csc.Trip_Mode__c = '①出租车';
        csc.Trip_Mode_Other__c = 'Test';
        csc.Visit_efficiency_quality__c = '①上升';
        csc.Visit_efficiency_quality_Text__c = '①上升';
        csc.Other_Visitefficiency__c = '①上升';
        csc.Other_Visitefficiency_Text__c = '①上升';
        csc.Workeffectiveness_departments__c = '①上升';
        csc.Workeffectiveness_departments_Text__c = '①上升';
        csc.Traffic_subsidy_Status__c = '①完全满足';
        csc.Traffic_subsidy_balance__c = 222;
        csc.Most_satisfied__c = 'Test';
        csc.Most_dissatisfied__c = 'Test';
        csc.Accept_traffic__c = '①每月实报实销';
        csc.Traffic_expense_reason__c = 'Test';
        csc.Accept_GPS__c = '①能接受';
        csc.Traffic_subsidy_Opinion__c = 'Test';
        csc.TeamWork_efficiency__c = '①上升';
        csc.TeamWork_efficiency_Text__c = '①上升';
        insert csc;
        List<Questionnaire_Survey__c> qsList = [select id,name from Questionnaire_Survey__c];
        System.assertEquals(1, qsList.size());
    }
}