ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package com.vci.client.portal.test;
 
import org.junit.Assert;
 
import com.vci.client.portal.utility.UITools;
import com.vci.common.utility.ObjectUtility;
import com.vci.corba.common.VCIError;
import com.vci.corba.portal.data.PLCommandParameter;
 
public class TestPLCommandParameter {
    
    //test保存PLCommandParameter
    @org.junit.Test
    public void testSavePLCommandParameter(){
        PLCommandParameter plCommandParameter = new PLCommandParameter();
        plCommandParameter.plOId = ObjectUtility.getNewObjectID36();
        plCommandParameter.plCommandOId = "plCommandOId1";
        plCommandParameter.plKey = "plKey1";
        plCommandParameter.plValue = "plValue1";
        plCommandParameter.plCreateUser = "sam";
        plCommandParameter.plModifyUser = "sam";
        plCommandParameter.plLicensOrs = "plLicensOrs1";
        try {
            boolean flag = UITools.getService().savePLCommandParameter(plCommandParameter);
            Assert.assertTrue(flag);
        } catch (VCIError e) {
            e.printStackTrace();
        }
    }
    
    // test更新PLCommandParameter
    @org.junit.Test
    public void testUpdatePLCommandParameter() {
        PLCommandParameter plCommandParameter = new PLCommandParameter();
        plCommandParameter.plOId = "73CD0C14-3945-E336-764E-54AAE7FF81AB";
        plCommandParameter.plCommandOId = "update";
        plCommandParameter.plKey = "plKey1";
        plCommandParameter.plValue = "plValue1";
        plCommandParameter.plCreateUser = "sam";
        plCommandParameter.plModifyUser = "sam";
        plCommandParameter.plLicensOrs = "plLicensOrs1";
        try {
            boolean flag = UITools.getService().updatePLCommandParameter(plCommandParameter);
            Assert.assertTrue(flag);
        } catch (VCIError e) {
            e.printStackTrace();
        }
    }
    
    // test删除PLCommandParameter
    @org.junit.Test
    public void testDeletePLCommandParameter() {
        PLCommandParameter plCommandParameter = new PLCommandParameter();
        plCommandParameter.plOId = "E92A6BF7-615C-C2CE-1E79-B08BC8197AE0";
        try {
            boolean flag = UITools.getService().deletePLCommandParameter(plCommandParameter);
            Assert.assertTrue(flag);
        } catch (VCIError e) {
            e.printStackTrace();
        }
    }
    
    // test删除PLCommandParameter
    @org.junit.Test
    public void testDeletePLCommandParameterById() {
        try {
            boolean flag = UITools.getService().deletePLCommandParameterByID("82794B13-AD4F-B926-1F88-33746CB0C649");
            Assert.assertTrue(flag);
        } catch (VCIError e) {
            e.printStackTrace();
        }
    }
    
    @org.junit.Test
    public void testGetPLCommandParameterById(){
        try {
            PLCommandParameter obj = UITools.getService().getPLCommandParameterById("0E43EDE6-4F16-01A8-F727-69A2B324FBC0");
            System.out.println();
        } catch (VCIError e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        
    }
    
    
    @org.junit.Test
    public void testGetPLCommandParameterByCommandOId(){
        try {
            PLCommandParameter[] obj = UITools.getService().getPLCommandParametersByCommandOId("plCommandOId1");
            System.out.println();
        } catch (VCIError e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        
    }
}