From b6b7bef8bdcad15af01ac88a038dd763ce59f68f Mon Sep 17 00:00:00 2001 From: xg353y Date: Tue, 11 Apr 2017 13:30:42 +0200 Subject: [MSO-8] Update the maven dependency Update the maven depenency for sdc-distribution-client to cooperate with the sdc changes. Change-Id: I2da936e5c40cb68c7181bb78307192dd5655b5dc Signed-off-by: xg353y --- .../mso/asdc/installer/ASDCElementInfoESTest.java | 139 --------------------- 1 file changed, 139 deletions(-) delete mode 100644 asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/ASDCElementInfoESTest.java (limited to 'asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/ASDCElementInfoESTest.java') diff --git a/asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/ASDCElementInfoESTest.java b/asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/ASDCElementInfoESTest.java deleted file mode 100644 index 8dd5afe7e0..0000000000 --- a/asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/ASDCElementInfoESTest.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Fri Nov 25 13:35:55 GMT 2016 - */ - -package org.openecomp.mso.asdc.installer; - -import org.junit.Test; -import static org.junit.Assert.*; -import static org.evosuite.shaded.org.mockito.Mockito.*; -import static org.evosuite.runtime.EvoAssertions.*; - -import java.util.List; -import java.util.Map; -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.evosuite.runtime.PrivateAccess; -import org.evosuite.runtime.ViolatedAssumptionAnswer; -import org.junit.runner.RunWith; -import org.openecomp.sdc.api.notification.IArtifactInfo; -import org.openecomp.sdc.api.notification.INotificationData; -import org.openecomp.sdc.api.notification.IResourceInstance; -import org.openecomp.sdc.api.notification.IVfModuleMetadata; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class ASDCElementInfoESTest extends ASDCElementInfoESTestscaffolding { - - @Test(timeout = 4000) - public void test00() throws Throwable { - INotificationData iNotificationData0 = mock(INotificationData.class, new ViolatedAssumptionAnswer()); - IResourceInstance iResourceInstance0 = mock(IResourceInstance.class, new ViolatedAssumptionAnswer()); - doReturn((String) null).when(iResourceInstance0).getResourceInstanceName(); - doReturn((String) null).when(iResourceInstance0).getResourceInvariantUUID(); - VfResourceStructure vfResourceStructure0 = new VfResourceStructure(iNotificationData0, iResourceInstance0); - ASDCElementInfo aSDCElementInfo0 = ASDCElementInfo.createElementFromVfResourceStructure(vfResourceStructure0); - String string0 = aSDCElementInfo0.getType(); - assertEquals("VNF_RESOURCE", string0); - } - - @Test(timeout = 4000) - public void test01() throws Throwable { - ASDCElementInfo aSDCElementInfo0 = ASDCElementInfo.createElementFromVfModuleStructure((VfModuleStructure) null); - Map map0 = aSDCElementInfo0.getElementInfoMap(); - assertTrue(map0.isEmpty()); - } - - @Test(timeout = 4000) - public void test02() throws Throwable { - Map map0 = ASDCElementInfo.EMPTY_INSTANCE.getElementInfoMap(); - assertTrue(map0.isEmpty()); - } - - @Test(timeout = 4000) - public void test03() throws Throwable { - ASDCElementInfo aSDCElementInfo0 = ASDCElementInfo.EMPTY_INSTANCE; - IArtifactInfo iArtifactInfo0 = mock(IArtifactInfo.class, new ViolatedAssumptionAnswer()); - doReturn((String) null).when(iArtifactInfo0).getArtifactName(); - doReturn((String) null).when(iArtifactInfo0).getArtifactType(); - doReturn((String) null).when(iArtifactInfo0).getArtifactUUID(); - ASDCElementInfo aSDCElementInfo1 = ASDCElementInfo.createElementFromVfArtifactInfo(iArtifactInfo0); - aSDCElementInfo0.toString(); - PrivateAccess.setVariable((Class) ASDCElementInfo.class, aSDCElementInfo1, "elementInfoMap", (Object) null); - aSDCElementInfo0.toString(); - // Undeclared exception! - try { - aSDCElementInfo1.toString(); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.openecomp.mso.asdc.installer.ASDCElementInfo", e); - } - } - - @Test(timeout = 4000) - public void test05() throws Throwable { - ASDCElementInfo aSDCElementInfo0 = ASDCElementInfo.EMPTY_INSTANCE; - aSDCElementInfo0.addElementInfo("V$", (String) null); - assertEquals("", aSDCElementInfo0.getType()); - } - - @Test(timeout = 4000) - public void test06() throws Throwable { - ASDCElementInfo aSDCElementInfo0 = ASDCElementInfo.createElementFromVfModuleStructure((VfModuleStructure) null); - String string0 = aSDCElementInfo0.EMPTY_INSTANCE.getType(); - assertEquals("", string0); - } - - @Test(timeout = 4000) - public void test07() throws Throwable { - INotificationData iNotificationData0 = mock(INotificationData.class, new ViolatedAssumptionAnswer()); - VfResourceStructure vfResourceStructure0 = new VfResourceStructure(iNotificationData0, (IResourceInstance) null); - IVfModuleMetadata iVfModuleMetadata0 = mock(IVfModuleMetadata.class, new ViolatedAssumptionAnswer()); - doReturn((List) null).when(iVfModuleMetadata0).getArtifacts(); - VfModuleStructure vfModuleStructure0 = null; - try { - vfModuleStructure0 = new VfModuleStructure(vfResourceStructure0, iVfModuleMetadata0); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.openecomp.mso.asdc.installer.VfModuleStructure", e); - } - } - - @Test(timeout = 4000) - public void test08() throws Throwable { - INotificationData iNotificationData0 = mock(INotificationData.class, new ViolatedAssumptionAnswer()); - IResourceInstance iResourceInstance0 = mock(IResourceInstance.class, new ViolatedAssumptionAnswer()); - doReturn(" Name").when(iResourceInstance0).getResourceInstanceName(); - doReturn(" Name").when(iResourceInstance0).getResourceInvariantUUID(); - VfResourceStructure vfResourceStructure0 = new VfResourceStructure(iNotificationData0, iResourceInstance0); - ASDCElementInfo aSDCElementInfo0 = ASDCElementInfo.createElementFromVfResourceStructure(vfResourceStructure0); - String string0 = aSDCElementInfo0.toString(); - assertEquals("Resource Instance Invariant UUID: Name, Resource Instance Name: Name", string0); - } - - @Test(timeout = 4000) - public void test09() throws Throwable { - ASDCElementInfo aSDCElementInfo0 = ASDCElementInfo.createElementFromVfArtifactInfo((IArtifactInfo) null); - aSDCElementInfo0.addElementInfo((String) null, ""); - assertEquals("", aSDCElementInfo0.getType()); - } - - @Test(timeout = 4000) - public void test10() throws Throwable { - IArtifactInfo iArtifactInfo0 = mock(IArtifactInfo.class, new ViolatedAssumptionAnswer()); - doReturn((String) null).when(iArtifactInfo0).getArtifactName(); - doReturn((String) null).when(iArtifactInfo0).getArtifactType(); - doReturn((String) null).when(iArtifactInfo0).getArtifactUUID(); - ASDCElementInfo aSDCElementInfo0 = ASDCElementInfo.createElementFromVfArtifactInfo(iArtifactInfo0); - String string0 = aSDCElementInfo0.getType(); - assertNull(string0); - } -} -- cgit 1.2.3-korg