/*- * ============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.model; import org.junit.Test; import org.openecomp.sdc.be.datatypes.elements.ComponentInstanceDataDefinition; import org.openecomp.sdc.common.api.ArtifactGroupTypeEnum; import java.util.List; import java.util.Map; public class ComponentInstanceTest { private ComponentInstance createTestSubject() { return new ComponentInstance(); } @Test public void testCtor() throws Exception { new ComponentInstance(new ComponentInstanceDataDefinition()); } @Test public void testGetCapabilities() throws Exception { ComponentInstance testSubject; Map> result; // default test testSubject = createTestSubject(); result = testSubject.getCapabilities(); } @Test public void testSetCapabilities() throws Exception { ComponentInstance testSubject; Map> capabilities = null; // default test testSubject = createTestSubject(); testSubject.setCapabilities(capabilities); } @Test public void testGetRequirements() throws Exception { ComponentInstance testSubject; Map> result; // default test testSubject = createTestSubject(); result = testSubject.getRequirements(); } @Test public void testSetRequirements() throws Exception { ComponentInstance testSubject; Map> requirements = null; // default test testSubject = createTestSubject(); testSubject.setRequirements(requirements); } @Test public void testGetDeploymentArtifacts() throws Exception { ComponentInstance testSubject; Map result; // default test testSubject = createTestSubject(); result = testSubject.getDeploymentArtifacts(); } @Test public void testSafeGetDeploymentArtifacts() throws Exception { ComponentInstance testSubject; Map result; // default test testSubject = createTestSubject(); result = testSubject.safeGetDeploymentArtifacts(); } @Test public void testSafeGetInformationalArtifacts() throws Exception { ComponentInstance testSubject; Map result; // default test testSubject = createTestSubject(); result = testSubject.safeGetInformationalArtifacts(); } @Test public void testSetDeploymentArtifacts() throws Exception { ComponentInstance testSubject; Map deploymentArtifacts = null; // default test testSubject = createTestSubject(); testSubject.setDeploymentArtifacts(deploymentArtifacts); } @Test public void testGetArtifacts() throws Exception { ComponentInstance testSubject; Map result; // default test testSubject = createTestSubject(); result = testSubject.getArtifacts(); } @Test public void testSafeGetArtifacts() throws Exception { ComponentInstance testSubject; Map result; // default test testSubject = createTestSubject(); result = testSubject.safeGetArtifacts(); } @Test public void testSetArtifacts() throws Exception { ComponentInstance testSubject; Map artifacts = null; // default test testSubject = createTestSubject(); testSubject.setArtifacts(artifacts); } @Test public void testGetGroupInstances() throws Exception { ComponentInstance testSubject; List result; // default test testSubject = createTestSubject(); result = testSubject.getGroupInstances(); } @Test public void testSetGroupInstances() throws Exception { ComponentInstance testSubject; List groupInstances = null; // default test testSubject = createTestSubject(); testSubject.setGroupInstances(groupInstances); } @Test public void testGetActualComponentUid() throws Exception { ComponentInstance testSubject; String result; // default test testSubject = createTestSubject(); result = testSubject.getActualComponentUid(); } @Test public void testIsArtifactExists() throws Exception { ComponentInstance testSubject; ArtifactGroupTypeEnum groupType = null; String artifactLabel = ""; boolean result; // default test testSubject = createTestSubject(); result = testSubject.isArtifactExists(groupType, artifactLabel); testSubject = createTestSubject(); result = testSubject.isArtifactExists(ArtifactGroupTypeEnum.DEPLOYMENT, artifactLabel); } }