1 package org.openecomp.sdc.be.components.impl;
5 import javax.annotation.Generated;
7 import org.junit.Assert;
9 import org.openecomp.sdc.be.model.PropertyDefinition;
10 import org.openecomp.sdc.exception.ResponseFormat;
12 import fj.data.Either;
15 public class AttributeBusinessLogicTest {
17 private AttributeBusinessLogic createTestSubject() {
18 return new AttributeBusinessLogic();
23 public void testCreateAttribute() throws Exception {
24 AttributeBusinessLogic testSubject;
25 String resourceId = "";
26 PropertyDefinition newAttributeDef = null;
28 Either<PropertyDefinition, ResponseFormat> result;
31 testSubject = createTestSubject();
36 public void testIsAttributeExist() throws Exception {
37 AttributeBusinessLogic testSubject;List<PropertyDefinition> attributes = null;
38 String resourceUid = "";
39 String propertyName = "";
43 testSubject=createTestSubject();attributes = null;
48 public void testGetAttribute() throws Exception {
49 AttributeBusinessLogic testSubject;
50 String resourceId = "";
51 String attributeId = "";
53 Either<PropertyDefinition, ResponseFormat> result;
56 testSubject = createTestSubject();
61 public void testUpdateAttribute() throws Exception {
62 AttributeBusinessLogic testSubject;
63 String resourceId = "";
64 String attributeId = "";
65 PropertyDefinition newAttDef = null;
67 Either<PropertyDefinition, ResponseFormat> result;
70 testSubject = createTestSubject();
75 public void testDeleteAttribute() throws Exception {
76 AttributeBusinessLogic testSubject;
77 String resourceId = "";
78 String attributeId = "";
80 Either<PropertyDefinition, ResponseFormat> result;
83 testSubject = createTestSubject();