summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogicTest.java
blob: 630f41f905c6c17945f514e98fbac14791fe71eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package org.openecomp.sdc.be.components.impl;

import java.util.List;

import org.junit.Test;
import org.openecomp.sdc.be.model.PropertyDefinition;
import org.openecomp.sdc.exception.ResponseFormat;

import fj.data.Either;


public class AttributeBusinessLogicTest {

	private AttributeBusinessLogic createTestSubject() {
		return new AttributeBusinessLogic();
	}

	
	@Test
	public void testCreateAttribute() throws Exception {
		AttributeBusinessLogic testSubject;
		String resourceId = "";
		PropertyDefinition newAttributeDef = null;
		String userId = "";
		Either<PropertyDefinition, ResponseFormat> result;

		// default test
		testSubject = createTestSubject();
	}

	
	@Test
	public void testIsAttributeExist() throws Exception {
	AttributeBusinessLogic testSubject;List<PropertyDefinition> attributes = null;
	String resourceUid = "";
	String propertyName = "";
	boolean result;
	
	// test 1
	testSubject=createTestSubject();attributes = null;
	}

	
	@Test
	public void testGetAttribute() throws Exception {
		AttributeBusinessLogic testSubject;
		String resourceId = "";
		String attributeId = "";
		String userId = "";
		Either<PropertyDefinition, ResponseFormat> result;

		// default test
		testSubject = createTestSubject();
	}

	
	@Test
	public void testUpdateAttribute() throws Exception {
		AttributeBusinessLogic testSubject;
		String resourceId = "";
		String attributeId = "";
		PropertyDefinition newAttDef = null;
		String userId = "";
		Either<PropertyDefinition, ResponseFormat> result;

		// default test
		testSubject = createTestSubject();
	}

	
	@Test
	public void testDeleteAttribute() throws Exception {
		AttributeBusinessLogic testSubject;
		String resourceId = "";
		String attributeId = "";
		String userId = "";
		Either<PropertyDefinition, ResponseFormat> result;

		// default test
		testSubject = createTestSubject();
	}
}