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