aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src/test/java/org/openecomp/sdc/be/model/operations/impl/ComponentInstanceOperationTest.java
blob: 40f692ca41d789c8b86825fb7c9a50090349b09a (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
package org.openecomp.sdc.be.model.operations.impl;

import org.junit.Test;
import org.openecomp.sdc.be.dao.titan.TitanGenericDao;
import org.openecomp.sdc.be.model.ComponentInstanceInput;
import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;

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);
	}

	


	

}