1 package org.openecomp.sdc.be.components.impl;
6 import org.openecomp.sdc.be.model.PropertyDefinition;
7 import org.openecomp.sdc.exception.ResponseFormat;
12 public class AttributeBusinessLogicTest {
14 private AttributeBusinessLogic createTestSubject() {
15 return new AttributeBusinessLogic();
20 public void testCreateAttribute() throws Exception {
21 AttributeBusinessLogic testSubject;
22 String resourceId = "";
23 PropertyDefinition newAttributeDef = null;
25 Either<PropertyDefinition, ResponseFormat> result;
28 testSubject = createTestSubject();
33 public void testIsAttributeExist() throws Exception {
34 AttributeBusinessLogic testSubject;List<PropertyDefinition> attributes = null;
35 String resourceUid = "";
36 String propertyName = "";
40 testSubject=createTestSubject();attributes = null;
45 public void testGetAttribute() throws Exception {
46 AttributeBusinessLogic testSubject;
47 String resourceId = "";
48 String attributeId = "";
50 Either<PropertyDefinition, ResponseFormat> result;
53 testSubject = createTestSubject();
58 public void testUpdateAttribute() throws Exception {
59 AttributeBusinessLogic testSubject;
60 String resourceId = "";
61 String attributeId = "";
62 PropertyDefinition newAttDef = null;
64 Either<PropertyDefinition, ResponseFormat> result;
67 testSubject = createTestSubject();
72 public void testDeleteAttribute() throws Exception {
73 AttributeBusinessLogic testSubject;
74 String resourceId = "";
75 String attributeId = "";
77 Either<PropertyDefinition, ResponseFormat> result;
80 testSubject = createTestSubject();