aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapComponentInstanceExternalRefsTest.java
blob: 6c8cd18a1d367f0bc18e2445142a7fe8eb8407b4 (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
package org.openecomp.sdc.be.datatypes.elements;

import org.junit.Test;

import java.util.List;
import java.util.Map;

public class MapComponentInstanceExternalRefsTest {

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

	@Test
	public void testGetComponentInstanceExternalRefs() throws Exception {
		MapComponentInstanceExternalRefs testSubject;
		Map<String, List<String>> result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getComponentInstanceExternalRefs();
	}

	@Test
	public void testGetExternalRefsByObjectType() throws Exception {
		MapComponentInstanceExternalRefs testSubject;
		String objectType = "";
		List<String> result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getExternalRefsByObjectType(objectType);
	}

	@Test
	public void testSetComponentInstanceExternalRefs() throws Exception {
		MapComponentInstanceExternalRefs testSubject;
		Map<String, List<String>> componentInstanceExternalRefs = null;

		// default test
		testSubject = createTestSubject();
		testSubject.setComponentInstanceExternalRefs(componentInstanceExternalRefs);
	}

	@Test
	public void testAddExternalRef() throws Exception {
		MapComponentInstanceExternalRefs testSubject;
		String objectType = "";
		String ref = "";
		boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.addExternalRef(objectType, ref);
	}

	@Test
	public void testDeleteExternalRef() throws Exception {
		MapComponentInstanceExternalRefs testSubject;
		String objectType = "";
		String ref = "";
		boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.deleteExternalRef(objectType, ref);
	}

	@Test
	public void testReplaceExternalRef() throws Exception {
		MapComponentInstanceExternalRefs testSubject;
		String objectType = "";
		String oldRef = "";
		String newRef = "";
		boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.replaceExternalRef(objectType, oldRef, newRef);
	}
}