4e97dc58e53ca81893d1130b1d43c9323716bf0e
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / operations / impl / ComponentInstanceOperationTest.java
1 package org.openecomp.sdc.be.model.operations.impl;
2
3 import fj.data.Either;
4 import org.junit.Test;
5 import org.openecomp.sdc.be.dao.titan.TitanGenericDao;
6 import org.openecomp.sdc.be.model.ComponentInstanceInput;
7 import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
8
9 public class ComponentInstanceOperationTest {
10
11         private ComponentInstanceOperation createTestSubject() {
12                 return new ComponentInstanceOperation();
13         }
14
15         
16         @Test
17         public void testSetTitanGenericDao() throws Exception {
18                 ComponentInstanceOperation testSubject;
19                 TitanGenericDao titanGenericDao = null;
20
21                 // default test
22                 testSubject = createTestSubject();
23                 testSubject.setTitanGenericDao(titanGenericDao);
24         }
25
26         @Test
27         public void testUpdateInputValueInResourceInstance() throws Exception {
28                 ComponentInstanceOperation testSubject;
29                 ComponentInstanceInput input = null;
30                 String resourceInstanceId = "";
31                 boolean b = false;
32                 Either<ComponentInstanceInput, StorageOperationStatus> result;
33
34                 // default test
35                 testSubject = createTestSubject();
36                 result = testSubject.updateInputValueInResourceInstance(input, resourceInstanceId, b);
37         }
38
39         
40
41
42         
43
44 }