111
沙世明
2022-11-22 928399eceec50e3d37ea08669a12789a9410a9d2
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
37
38
39
40
41
42
43
44
45
@isTest
private class FrameNumControllerTest {
    static testMethod void testMethod1() {
        FrameNumManage__c nObj1 = new FrameNumManage__c();
        nObj1.Name = 'test1';
        nObj1.ManagementCode__c = '22R';
        nObj1.ApplyList__c = 'test1';
        nObj1.SerialNumber__c = 'ABCDEFG';
        nObj1.Num__c = 1;
        nObj1.Material__c = 'test1';
        nObj1.MaterialDepict__c = 'test1';
        insert nObj1;
        FrameNumManage__c nObj1_1 = new FrameNumManage__c();
        nObj1_1.Name = 'test1';
        nObj1_1.ManagementCode__c = '22R';
        nObj1_1.ApplyList__c = 'test1';
        nObj1_1.SerialNumber__c = 'ABCDEFG';
        nObj1_1.Num__c = 1;
        nObj1_1.Material__c = 'test1';
        nObj1_1.MaterialDepict__c = 'test1';
        insert nObj1_1;
        FrameNumManage__c nObj1_2 = new FrameNumManage__c();
        nObj1_2.Name = 'test1';
        nObj1_2.ManagementCode__c = '22R';
        nObj1_2.ApplyList__c = 'test2';
        nObj1_2.SerialNumber__c = 'ABCDEFG';
        nObj1_2.Num__c = 1;
        nObj1_2.Material__c = 'test1';
        nObj1_2.MaterialDepict__c = 'test1';
        insert nObj1_2;
 
        FileAddress__c  nObj2 = new FileAddress__c();
        // nObj2.Name = 'test1';
        nObj2.FileName__c = 'test1';
        nObj2.ViewLink__c = 'https://www.baidu.com';
        insert nObj2;
        FileAddress__c  nObj2_1 = new FileAddress__c();
        // nObj2.Name = 'test1';
        nObj2_1.FileName__c = 'test2';
        nObj2_1.ViewLink__c = 'https://www.baidu.com';
        insert nObj2_1;
        FrameNumController con = new FrameNumController();
        con.init();
    }
}