/*- * ============LICENSE_START======================================================= * SDC * ================================================================================ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= */ package org.openecomp.sdc.be.components.merge.instance; import org.junit.Test; import org.openecomp.sdc.be.model.*; import java.util.LinkedList; import java.util.List; import java.util.Map; public class DataForMergeHolderTest { private DataForMergeHolder createTestSubject() { return new DataForMergeHolder(); } @Test public void testGetOrigComponentInstanceHeatEnvArtifacts() throws Exception { DataForMergeHolder testSubject; List result; // default test testSubject = createTestSubject(); result = testSubject.getOrigComponentInstanceHeatEnvArtifacts(); } @Test public void testSetOrigComponentInstanceHeatEnvArtifacts() throws Exception { DataForMergeHolder testSubject; List origComponentInstanceHeatEnvArtifacts = null; // default test testSubject = createTestSubject(); testSubject.setOrigComponentInstanceHeatEnvArtifacts(origComponentInstanceHeatEnvArtifacts); } @Test public void testGetOrigComponentInstanceInputs() throws Exception { DataForMergeHolder testSubject; List result; // default test testSubject = createTestSubject(); result = testSubject.getOrigComponentInstanceInputs(); } @Test public void testSetOrigComponentInstanceInputs() throws Exception { DataForMergeHolder testSubject; List origComponentInstanceInputs = new LinkedList<>(); ComponentInstanceInput e = new ComponentInstanceInput(); origComponentInstanceInputs.add(e); // default test testSubject = createTestSubject(); testSubject.setOrigComponentInstanceInputs(origComponentInstanceInputs); } @Test public void testGetOrigComponentInstanceProperties() throws Exception { DataForMergeHolder testSubject; List result; // default test testSubject = createTestSubject(); result = testSubject.getOrigComponentInstanceProperties(); } @Test public void testSetOrigComponentInstanceProperties() throws Exception { DataForMergeHolder testSubject; List origComponentInstanceProperties = new LinkedList<>(); ComponentInstanceProperty e = new ComponentInstanceProperty(); origComponentInstanceProperties.add(e); // default test testSubject = createTestSubject(); testSubject.setOrigComponentInstanceProperties(origComponentInstanceProperties); } @Test public void testGetOrigComponentInputs() throws Exception { DataForMergeHolder testSubject; List result; // default test testSubject = createTestSubject(); result = testSubject.getOrigComponentInputs(); } @Test public void testSetOrigComponentInputs() throws Exception { DataForMergeHolder testSubject; List origComponentInputs = null; // default test testSubject = createTestSubject(); testSubject.setOrigComponentInputs(origComponentInputs); } @Test public void testGetOrigComponentDeploymentArtifactsCreatedOnTheInstance() throws Exception { DataForMergeHolder testSubject; Map result; // default test testSubject = createTestSubject(); result = testSubject.getOrigComponentDeploymentArtifactsCreatedOnTheInstance(); } @Test public void testGetOrigComponentInformationalArtifactsCreatedOnTheInstance() throws Exception { DataForMergeHolder testSubject; Map result; // default test testSubject = createTestSubject(); result = testSubject.getOrigComponentInformationalArtifactsCreatedOnTheInstance(); } @Test public void testSetOrigComponentDeploymentArtifactsCreatedOnTheInstance() throws Exception { DataForMergeHolder testSubject; Map origDeploymentArtifacts = null; // default test testSubject = createTestSubject(); testSubject.setOrigComponentDeploymentArtifactsCreatedOnTheInstance(origDeploymentArtifacts); } @Test public void testSetOrigComponentInformationalArtifactsCreatedOnTheInstance() throws Exception { DataForMergeHolder testSubject; Map origInformationalArtifacts = null; // default test testSubject = createTestSubject(); testSubject.setOrigComponentInformationalArtifactsCreatedOnTheInstance(origInformationalArtifacts); } @Test public void testSetVfRelationsInfo() throws Exception { DataForMergeHolder testSubject; ContainerRelationsMergeInfo vfRelationsMergeInfo = null; // default test testSubject = createTestSubject(); testSubject.setVfRelationsInfo(vfRelationsMergeInfo); } @Test public void testGetVfRelationsMergeInfo() throws Exception { DataForMergeHolder testSubject; ContainerRelationsMergeInfo result; // default test testSubject = createTestSubject(); result = testSubject.getContainerRelationsMergeInfo(); } @Test public void testGetOrigInstanceCapabilities() throws Exception { DataForMergeHolder testSubject; List result; // default test testSubject = createTestSubject(); result = testSubject.getOrigInstanceCapabilities(); } @Test public void testSetOrigInstanceCapabilities() throws Exception { DataForMergeHolder testSubject; List origInstanceCapabilities = null; // default test testSubject = createTestSubject(); testSubject.setOrigInstanceCapabilities(origInstanceCapabilities); } @Test public void testGetOrigInstanceNode() throws Exception { DataForMergeHolder testSubject; Component result; // default test testSubject = createTestSubject(); result = testSubject.getOrigInstanceNode(); } @Test public void testSetOrigInstanceNode() throws Exception { DataForMergeHolder testSubject; Component origInstanceNode = null; // default test testSubject = createTestSubject(); testSubject.setOrigInstanceNode(origInstanceNode); } @Test public void testGetOrigComponentInstId() throws Exception { DataForMergeHolder testSubject; String result; // default test testSubject = createTestSubject(); result = testSubject.getOrigComponentInstId(); } @Test public void testSetOrigComponentInstId() throws Exception { DataForMergeHolder testSubject; String origComponentInstId = ""; // default test testSubject = createTestSubject(); testSubject.setOrigComponentInstId(origComponentInstId); } }