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