blob: bfefd00994166ab1179be33322018bb7810abb26 (
plain)
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
|
package org.openecomp.sdc.be.model.operations.impl;
import static org.junit.Assert.*;
import java.util.*;
import org.junit.Assert;
import org.junit.Test;
import org.openecomp.sdc.be.dao.neo4j.GraphPropertiesDictionary;
import org.openecomp.sdc.be.dao.titan.TitanGenericDao;
import org.openecomp.sdc.be.datatypes.enums.NodeTypeEnum;
import org.openecomp.sdc.be.model.ComponentInstance;
import org.openecomp.sdc.be.model.ComponentInstanceInput;
import org.openecomp.sdc.be.model.ComponentInstanceProperty;
import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
import org.openecomp.sdc.be.resources.data.AttributeData;
import org.openecomp.sdc.be.resources.data.AttributeValueData;
import org.openecomp.sdc.be.resources.data.ComponentInstanceData;
import fj.data.Either;
public class ComponentInstanceOperationTest {
private ComponentInstanceOperation createTestSubject() {
return new ComponentInstanceOperation();
}
@Test
public void testSetTitanGenericDao() throws Exception {
ComponentInstanceOperation testSubject;
TitanGenericDao titanGenericDao = null;
// default test
testSubject = createTestSubject();
testSubject.setTitanGenericDao(titanGenericDao);
}
// @Test
// public void testValidateElementExistInGraph() throws Exception {
// ComponentInstanceOperation testSubject;
// String elementUniqueId = "";
// NodeTypeEnum elementNodeType = null;
// Supplier<Class<ElementData>> elementClassGen = null;
// Wrapper<ElementData> elementDataWrapper = null;
// Wrapper<TitanOperationStatus> errorWrapper = null;
//
// // default test
// testSubject = createTestSubject();
// testSubject.validateElementExistInGraph(elementUniqueId, elementNodeType, elementClassGen, elementDataWrapper,
// errorWrapper);
// }
@Test
public void testUpdateInputValueInResourceInstance() throws Exception {
ComponentInstanceOperation testSubject;
ComponentInstanceInput input = null;
String resourceInstanceId = "";
boolean b = false;
Either<ComponentInstanceInput, StorageOperationStatus> result;
// default test
testSubject = createTestSubject();
result = testSubject.updateInputValueInResourceInstance(input, resourceInstanceId, b);
}
}
|