1 package org.openecomp.sdc.be.tosca;
5 import org.apache.commons.lang3.tuple.Triple;
7 import org.openecomp.sdc.be.model.Component;
10 public class ToscaRepresentationTest {
12 private ToscaRepresentation createTestSubject() {
13 return new ToscaRepresentation();
18 public void testGetMainYaml() throws Exception {
19 ToscaRepresentation testSubject;
23 testSubject = createTestSubject();
24 result = testSubject.getMainYaml();
29 public void testSetMainYaml() throws Exception {
30 ToscaRepresentation testSubject;
34 testSubject = createTestSubject();
35 testSubject.setMainYaml(mainYaml);
40 public void testGetDependencies() throws Exception {
41 ToscaRepresentation testSubject;
42 List<Triple<String, String, Component>> result;
45 testSubject = createTestSubject();
46 result = testSubject.getDependencies();
51 public void testSetDependencies() throws Exception {
52 ToscaRepresentation testSubject;
53 List<Triple<String, String, Component>> dependancies = null;
56 testSubject = createTestSubject();
57 testSubject.setDependencies(dependancies);