Refactoring Consolidation Service
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / components / impl / AttributeBusinessLogicTest.java
1 package org.openecomp.sdc.be.components.impl;
2
3 import java.util.List;
4
5 import org.junit.Test;
6 import org.openecomp.sdc.be.model.PropertyDefinition;
7 import org.openecomp.sdc.exception.ResponseFormat;
8
9 import fj.data.Either;
10
11
12 public class AttributeBusinessLogicTest {
13
14         private AttributeBusinessLogic createTestSubject() {
15                 return new AttributeBusinessLogic();
16         }
17
18         
19         @Test
20         public void testCreateAttribute() throws Exception {
21                 AttributeBusinessLogic testSubject;
22                 String resourceId = "";
23                 PropertyDefinition newAttributeDef = null;
24                 String userId = "";
25                 Either<PropertyDefinition, ResponseFormat> result;
26
27                 // default test
28                 testSubject = createTestSubject();
29         }
30
31         
32         @Test
33         public void testIsAttributeExist() throws Exception {
34         AttributeBusinessLogic testSubject;List<PropertyDefinition> attributes = null;
35         String resourceUid = "";
36         String propertyName = "";
37         boolean result;
38         
39         // test 1
40         testSubject=createTestSubject();attributes = null;
41         }
42
43         
44         @Test
45         public void testGetAttribute() throws Exception {
46                 AttributeBusinessLogic testSubject;
47                 String resourceId = "";
48                 String attributeId = "";
49                 String userId = "";
50                 Either<PropertyDefinition, ResponseFormat> result;
51
52                 // default test
53                 testSubject = createTestSubject();
54         }
55
56         
57         @Test
58         public void testUpdateAttribute() throws Exception {
59                 AttributeBusinessLogic testSubject;
60                 String resourceId = "";
61                 String attributeId = "";
62                 PropertyDefinition newAttDef = null;
63                 String userId = "";
64                 Either<PropertyDefinition, ResponseFormat> result;
65
66                 // default test
67                 testSubject = createTestSubject();
68         }
69
70         
71         @Test
72         public void testDeleteAttribute() throws Exception {
73                 AttributeBusinessLogic testSubject;
74                 String resourceId = "";
75                 String attributeId = "";
76                 String userId = "";
77                 Either<PropertyDefinition, ResponseFormat> result;
78
79                 // default test
80                 testSubject = createTestSubject();
81         }
82 }