aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/ASDCElementInfoESTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/ASDCElementInfoESTest.java')
-rw-r--r--asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/ASDCElementInfoESTest.java139
1 files changed, 0 insertions, 139 deletions
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<String, String> map0 = aSDCElementInfo0.getElementInfoMap();
- assertTrue(map0.isEmpty());
- }
-
- @Test(timeout = 4000)
- public void test02() throws Throwable {
- Map<String, String> 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>) 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);
- }
-}