aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/utils/InterfaceUtilsTest.java
blob: 9d44232cd0160074af1638487f8b649b6b4406a6 (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
package org.openecomp.sdc.be.model.jsontitan.utils;

import org.junit.Test;
import org.openecomp.sdc.be.model.InterfaceDefinition;
import org.openecomp.sdc.be.model.Operation;
import org.openecomp.sdc.be.model.Resource;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Optional;

public class InterfaceUtilsTest {

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

	
	@Test
	public void testGetInterfaceDefinitionFromToscaName() throws Exception {
		Collection<InterfaceDefinition> interfaces = null;
		String resourceName = "";
		Optional<InterfaceDefinition> result;

		// default test
		result = InterfaceUtils.getInterfaceDefinitionFromToscaName(interfaces, resourceName);
	}

	
	@Test
	public void testGetInterfaceDefinitionListFromToscaName() throws Exception {
		Collection<InterfaceDefinition> interfaces = null;
		String resourceName = "";
		Collection<InterfaceDefinition> result;

		// default test
		result = InterfaceUtils.getInterfaceDefinitionListFromToscaName(interfaces, resourceName);
	}

	
	@Test
	public void testCreateInterfaceToscaResourceName() throws Exception {
		String resourceName = "";
		String result;

		// default test
		result = InterfaceUtils.createInterfaceToscaResourceName(resourceName);
	}

	
	@Test
	public void testGetInterfaceOperationsFromInterfaces() throws Exception {
		Map<String, InterfaceDefinition> interfaces = null;
		Resource resource = null;
		Map<String, Operation> result;

		// default test
		result = InterfaceUtils.getInterfaceOperationsFromInterfaces(interfaces, resource);
	}

	@Test
	public void testGetOperationsFromInterface() throws Exception {
		Map<String, InterfaceDefinition> interfaces = null;
		List<Operation> result;

		// default test
		result = InterfaceUtils.getOperationsFromInterface(interfaces);
	}
}