bfefd00994166ab1179be33322018bb7810abb26
[sdc.git] /
1 package org.openecomp.sdc.be.model.operations.impl;
2
3 import static org.junit.Assert.*;
4 import java.util.*;
5 import org.junit.Assert;
6 import org.junit.Test;
7 import org.openecomp.sdc.be.dao.neo4j.GraphPropertiesDictionary;
8 import org.openecomp.sdc.be.dao.titan.TitanGenericDao;
9 import org.openecomp.sdc.be.datatypes.enums.NodeTypeEnum;
10 import org.openecomp.sdc.be.model.ComponentInstance;
11 import org.openecomp.sdc.be.model.ComponentInstanceInput;
12 import org.openecomp.sdc.be.model.ComponentInstanceProperty;
13 import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
14 import org.openecomp.sdc.be.resources.data.AttributeData;
15 import org.openecomp.sdc.be.resources.data.AttributeValueData;
16 import org.openecomp.sdc.be.resources.data.ComponentInstanceData;
17
18 import fj.data.Either;
19
20 public class ComponentInstanceOperationTest {
21
22         private ComponentInstanceOperation createTestSubject() {
23                 return new ComponentInstanceOperation();
24         }
25
26         
27         @Test
28         public void testSetTitanGenericDao() throws Exception {
29                 ComponentInstanceOperation testSubject;
30                 TitanGenericDao titanGenericDao = null;
31
32                 // default test
33                 testSubject = createTestSubject();
34                 testSubject.setTitanGenericDao(titanGenericDao);
35         }
36
37
38
39
40
41         
42 //      @Test
43 //      public void testValidateElementExistInGraph() throws Exception {
44 //              ComponentInstanceOperation testSubject;
45 //              String elementUniqueId = "";
46 //              NodeTypeEnum elementNodeType = null;
47 //              Supplier<Class<ElementData>> elementClassGen = null;
48 //              Wrapper<ElementData> elementDataWrapper = null;
49 //              Wrapper<TitanOperationStatus> errorWrapper = null;
50 //
51 //              // default test
52 //              testSubject = createTestSubject();
53 //              testSubject.validateElementExistInGraph(elementUniqueId, elementNodeType, elementClassGen, elementDataWrapper,
54 //                              errorWrapper);
55 //      }
56
57         
58         
59
60         
61
62
63
64
65         
66
67
68         
69
70         
71         @Test
72         public void testUpdateInputValueInResourceInstance() throws Exception {
73                 ComponentInstanceOperation testSubject;
74                 ComponentInstanceInput input = null;
75                 String resourceInstanceId = "";
76                 boolean b = false;
77                 Either<ComponentInstanceInput, StorageOperationStatus> result;
78
79                 // default test
80                 testSubject = createTestSubject();
81                 result = testSubject.updateInputValueInResourceInstance(input, resourceInstanceId, b);
82         }
83
84         
85
86
87         
88
89 }