aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/test/java/org/openecomp/mso/asdc/util
diff options
context:
space:
mode:
Diffstat (limited to 'asdc-controller/src/test/java/org/openecomp/mso/asdc/util')
-rw-r--r--asdc-controller/src/test/java/org/openecomp/mso/asdc/util/ASDCNotificationLoggingESTest.java272
-rw-r--r--asdc-controller/src/test/java/org/openecomp/mso/asdc/util/ASDCNotificationLoggingESTestscaffolding.java82
-rw-r--r--asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTest.java420
-rw-r--r--asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTestscaffolding.java255
4 files changed, 0 insertions, 1029 deletions
diff --git a/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/ASDCNotificationLoggingESTest.java b/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/ASDCNotificationLoggingESTest.java
deleted file mode 100644
index 2e73096337..0000000000
--- a/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/ASDCNotificationLoggingESTest.java
+++ /dev/null
@@ -1,272 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Mon Mar 13 16:09:00 GMT 2017
- */
-
-package org.openecomp.mso.asdc.util;
-
-import org.junit.Test;
-import static org.junit.Assert.*;
-import static org.evosuite.shaded.org.mockito.Mockito.*;
-import static org.evosuite.runtime.MockitoExtension.*;
-import static org.evosuite.runtime.EvoAssertions.*;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.function.UnaryOperator;
-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.mso.asdc.installer.IVfModuleData;
-import org.openecomp.mso.asdc.installer.VfModuleMetaData;
-import org.openecomp.mso.asdc.util.ASDCNotificationLogging;
-import org.openecomp.sdc.api.notification.IArtifactInfo;
-import org.openecomp.sdc.api.notification.INotificationData;
-import org.openecomp.sdc.api.notification.IResourceInstance;
-
-@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
-public class ASDCNotificationLoggingESTest extends ASDCNotificationLoggingESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test00() throws Throwable {
- LinkedList<IVfModuleData> linkedList0 = new LinkedList<IVfModuleData>();
- VfModuleMetaData vfModuleMetaData0 = new VfModuleMetaData();
- vfModuleMetaData0.setAttribute("vfModuleModelInvariantUUID", vfModuleMetaData0);
- linkedList0.add((IVfModuleData) vfModuleMetaData0);
- // Undeclared exception!
- try {
- ASDCNotificationLogging.dumpVfModuleMetaDataList(linkedList0);
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // org.openecomp.mso.asdc.installer.VfModuleMetaData cannot be cast to java.lang.String
- //
- verifyException("org.openecomp.mso.asdc.installer.VfModuleMetaData", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test01() throws Throwable {
- List<IArtifactInfo> list0 = (List<IArtifactInfo>) mock(List.class, new ViolatedAssumptionAnswer());
- doReturn(false).when(list0).isEmpty();
- doReturn((Iterator) null).when(list0).iterator();
- doReturn(0).when(list0).size();
- INotificationData iNotificationData0 = mock(INotificationData.class, new ViolatedAssumptionAnswer());
- doReturn("rGQA").when(iNotificationData0).getDistributionID();
- doReturn(list0).when(iNotificationData0).getServiceArtifacts();
- doReturn("rGQA").when(iNotificationData0).getServiceDescription();
- doReturn("").when(iNotificationData0).getServiceInvariantUUID();
- doReturn("").when(iNotificationData0).getServiceName();
- doReturn("rGQA").when(iNotificationData0).getServiceUUID();
- doReturn("").when(iNotificationData0).getServiceVersion();
- // Undeclared exception!
- try {
- ASDCNotificationLogging.dumpASDCNotification(iNotificationData0);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.asdc.util.ASDCNotificationLogging", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test02() throws Throwable {
- LinkedList<IResourceInstance> linkedList0 = new LinkedList<IResourceInstance>();
- LinkedList<IArtifactInfo> linkedList1 = new LinkedList<IArtifactInfo>();
- linkedList0.offerFirst((IResourceInstance) null);
- INotificationData iNotificationData0 = mock(INotificationData.class, new ViolatedAssumptionAnswer());
- doReturn("").when(iNotificationData0).getDistributionID();
- doReturn(linkedList0, linkedList0).when(iNotificationData0).getResources();
- doReturn(linkedList1).when(iNotificationData0).getServiceArtifacts();
- doReturn("").when(iNotificationData0).getServiceDescription();
- doReturn("]U5JAkfdX0Cs").when(iNotificationData0).getServiceInvariantUUID();
- doReturn("jV13a").when(iNotificationData0).getServiceName();
- doReturn("").when(iNotificationData0).getServiceUUID();
- doReturn("jV13a").when(iNotificationData0).getServiceVersion();
- String string0 = ASDCNotificationLogging.dumpASDCNotification(iNotificationData0);
- assertEquals("ASDC Notification:\nDistributionID:\nServiceName:jV13a\nServiceVersion:jV13a\nServiceUUID:\nServiceInvariantUUID:]U5JAkfdX0Cs\nServiceDescription:\nService Artifacts List:\nNULL\nResource Instances List:\n{\nNULL\n\n}\n\n", string0);
- }
-
- @Test(timeout = 4000)
- public void test03() throws Throwable {
- LinkedList<IResourceInstance> linkedList0 = new LinkedList<IResourceInstance>();
- LinkedList<IArtifactInfo> linkedList1 = new LinkedList<IArtifactInfo>();
- IResourceInstance iResourceInstance0 = mock(IResourceInstance.class, new ViolatedAssumptionAnswer());
- doReturn((List) null).when(iResourceInstance0).getArtifacts();
- doReturn((String) null).when(iResourceInstance0).getCategory();
- doReturn((String) null).when(iResourceInstance0).getResourceCustomizationUUID();
- doReturn((String) null).when(iResourceInstance0).getResourceInstanceName();
- doReturn((String) null).when(iResourceInstance0).getResourceInvariantUUID();
- doReturn((String) null).when(iResourceInstance0).getResourceName();
- doReturn((String) null).when(iResourceInstance0).getResourceType();
- doReturn((String) null).when(iResourceInstance0).getResourceUUID();
- doReturn((String) null).when(iResourceInstance0).getResourceVersion();
- doReturn((String) null).when(iResourceInstance0).getSubcategory();
- linkedList0.add(iResourceInstance0);
- INotificationData iNotificationData0 = mock(INotificationData.class, new ViolatedAssumptionAnswer());
- doReturn("").when(iNotificationData0).getDistributionID();
- doReturn(linkedList0, linkedList0).when(iNotificationData0).getResources();
- doReturn(linkedList1).when(iNotificationData0).getServiceArtifacts();
- doReturn("").when(iNotificationData0).getServiceDescription();
- doReturn("").when(iNotificationData0).getServiceInvariantUUID();
- doReturn("36-s.n1@").when(iNotificationData0).getServiceName();
- doReturn("36-s.n1@").when(iNotificationData0).getServiceUUID();
- doReturn("").when(iNotificationData0).getServiceVersion();
- String string0 = ASDCNotificationLogging.dumpASDCNotification(iNotificationData0);
- assertEquals("ASDC Notification:\nDistributionID:\nServiceName:36-s.n1@\nServiceVersion:\nServiceUUID:36-s.n1@\nServiceInvariantUUID:\nServiceDescription:\nService Artifacts List:\nNULL\nResource Instances List:\n{\nResource Instance Info:\nResourceInstanceName:NULL\nResourceCustomizationUUID:NULL\nResourceInvariantUUID:NULL\nResourceName:NULL\nResourceType:NULL\nResourceUUID:NULL\nResourceVersion:NULL\nCategory:NULL\nSubCategory:NULL\nResource Artifacts List:\nNULL\n\n\n}\n\n", string0);
- }
-
- @Test(timeout = 4000)
- public void test04() throws Throwable {
- INotificationData iNotificationData0 = mock(INotificationData.class, new ViolatedAssumptionAnswer());
- doReturn((String) null).when(iNotificationData0).getDistributionID();
- doReturn((List) null).when(iNotificationData0).getResources();
- doReturn((List) null).when(iNotificationData0).getServiceArtifacts();
- doReturn((String) null).when(iNotificationData0).getServiceDescription();
- doReturn((String) null).when(iNotificationData0).getServiceInvariantUUID();
- doReturn((String) null).when(iNotificationData0).getServiceName();
- doReturn((String) null).when(iNotificationData0).getServiceUUID();
- doReturn((String) null).when(iNotificationData0).getServiceVersion();
- String string0 = ASDCNotificationLogging.dumpASDCNotification(iNotificationData0);
- assertEquals("ASDC Notification:\nDistributionID:NULL\nServiceName:NULL\nServiceVersion:NULL\nServiceUUID:NULL\nServiceInvariantUUID:NULL\nServiceDescription:NULL\nService Artifacts List:\nNULL\nResource Instances List:\nNULL\n", string0);
- }
-
- @Test(timeout = 4000)
- public void test05() throws Throwable {
- LinkedList<IVfModuleData> linkedList0 = new LinkedList<IVfModuleData>();
- VfModuleMetaData vfModuleMetaData0 = new VfModuleMetaData();
- Map<String, String> map0 = vfModuleMetaData0.getProperties();
- IVfModuleData iVfModuleData0 = mock(IVfModuleData.class, new ViolatedAssumptionAnswer());
- doReturn((List<String>) null, (List<String>) null).when(iVfModuleData0).getArtifacts();
- doReturn(map0, map0, (Map<String, String>) null).when(iVfModuleData0).getProperties();
- doReturn("vfModuleModelUUID", "isBase:").when(iVfModuleData0).getVfModuleModelDescription();
- doReturn((String) null, "vfModuleModelName").when(iVfModuleData0).getVfModuleModelInvariantUUID();
- doReturn("", "").when(iVfModuleData0).getVfModuleModelName();
- doReturn("vfModuleModelUUID", "isBase:").when(iVfModuleData0).getVfModuleModelUUID();
- doReturn("|:\\KD91", "vfModuleModelName").when(iVfModuleData0).getVfModuleModelVersion();
- doReturn(false, false).when(iVfModuleData0).isBase();
- linkedList0.add(iVfModuleData0);
- String string0 = ASDCNotificationLogging.dumpVfModuleMetaDataList(linkedList0);
- assertEquals("VfModuleMetaData List:\n{\nVfModuleMetaData:\nVfModuleModelName:\nVfModuleModelVersion:|:\\KD91\nVfModuleModelUUID:vfModuleModelUUID\nVfModuleModelInvariantUUID:NULL\nVfModuleModelDescription:vfModuleModelUUID\nArtifacts UUID List:NULLProperties List:\n}\n\nisBase:false\n\n\n}\n", string0);
-
- String string1 = ASDCNotificationLogging.dumpVfModuleMetaDataList(linkedList0);
- assertEquals("VfModuleMetaData List:\n{\nVfModuleMetaData:\nVfModuleModelName:\nVfModuleModelVersion:vfModuleModelName\nVfModuleModelUUID:isBase:\nVfModuleModelInvariantUUID:vfModuleModelName\nVfModuleModelDescription:isBase:\nArtifacts UUID List:NULLNULL\nisBase:false\n\n\n}\n", string1);
- }
-
- @Test(timeout = 4000)
- public void test06() throws Throwable {
- LinkedList<IResourceInstance> linkedList0 = new LinkedList<IResourceInstance>();
- LinkedList<IVfModuleData> linkedList1 = new LinkedList<IVfModuleData>();
- IVfModuleData iVfModuleData0 = mock(IVfModuleData.class, new ViolatedAssumptionAnswer());
- doReturn((List) null, (List) null).when(iVfModuleData0).getArtifacts();
- doReturn((Map) null, (Map) null).when(iVfModuleData0).getProperties();
- doReturn((String) null, (String) null).when(iVfModuleData0).getVfModuleModelDescription();
- doReturn((String) null, (String) null).when(iVfModuleData0).getVfModuleModelInvariantUUID();
- doReturn((String) null, (String) null).when(iVfModuleData0).getVfModuleModelName();
- doReturn((String) null, (String) null).when(iVfModuleData0).getVfModuleModelUUID();
- doReturn((String) null, (String) null).when(iVfModuleData0).getVfModuleModelVersion();
- doReturn(false, false).when(iVfModuleData0).isBase();
- linkedList1.add(iVfModuleData0);
- String string0 = ASDCNotificationLogging.dumpVfModuleMetaDataList(linkedList1);
- String string1 = ASDCNotificationLogging.dumpVfModuleMetaDataList(linkedList1);
- assertTrue(string1.equals((Object)string0));
- assertEquals("VfModuleMetaData List:\n{\nVfModuleMetaData:\nVfModuleModelName:NULL\nVfModuleModelVersion:NULL\nVfModuleModelUUID:NULL\nVfModuleModelInvariantUUID:NULL\nVfModuleModelDescription:NULL\nArtifacts UUID List:NULLNULL\nisBase:false\n\n\n}\n", string1);
- }
-
- @Test(timeout = 4000)
- public void test07() throws Throwable {
- LinkedList<IVfModuleData> linkedList0 = new LinkedList<IVfModuleData>();
- VfModuleMetaData vfModuleMetaData0 = new VfModuleMetaData();
- linkedList0.add((IVfModuleData) vfModuleMetaData0);
- UnaryOperator<IVfModuleData> unaryOperator0 = (UnaryOperator<IVfModuleData>) mock(UnaryOperator.class, new ViolatedAssumptionAnswer());
- doReturn((Object) null).when(unaryOperator0).apply(any());
- linkedList0.replaceAll(unaryOperator0);
- String string0 = ASDCNotificationLogging.dumpVfModuleMetaDataList(linkedList0);
- assertEquals("VfModuleMetaData List:\n{\nNULL\n\n}\n", string0);
- }
-
- @Test(timeout = 4000)
- public void test08() throws Throwable {
- LinkedList<IVfModuleData> linkedList0 = new LinkedList<IVfModuleData>();
- VfModuleMetaData vfModuleMetaData0 = new VfModuleMetaData();
- linkedList0.add((IVfModuleData) vfModuleMetaData0);
- // Undeclared exception!
- try {
- ASDCNotificationLogging.dumpVfModuleMetaDataList(linkedList0);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.asdc.installer.VfModuleMetaData", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test09() throws Throwable {
- String string0 = ASDCNotificationLogging.dumpVfModuleMetaDataList((List<IVfModuleData>) null);
- assertNull(string0);
- }
-
- @Test(timeout = 4000)
- public void test10() throws Throwable {
- String string0 = ASDCNotificationLogging.dumpASDCNotification((INotificationData) null);
- assertEquals("NULL", string0);
- }
-
- @Test(timeout = 4000)
- public void test11() throws Throwable {
- LinkedList<IArtifactInfo> linkedList0 = new LinkedList<IArtifactInfo>();
- INotificationData iNotificationData0 = mock(INotificationData.class, new ViolatedAssumptionAnswer());
- doReturn("io7<{~.v|%").when(iNotificationData0).getDistributionID();
- doReturn((List<IResourceInstance>) null).when(iNotificationData0).getResources();
- doReturn(linkedList0).when(iNotificationData0).getServiceArtifacts();
- doReturn("io7<{~.v|%").when(iNotificationData0).getServiceDescription();
- doReturn("io7<{~.v|%").when(iNotificationData0).getServiceInvariantUUID();
- doReturn("io7<{~.v|%").when(iNotificationData0).getServiceName();
- doReturn((String) null).when(iNotificationData0).getServiceUUID();
- doReturn("io7<{~.v|%").when(iNotificationData0).getServiceVersion();
- String string0 = ASDCNotificationLogging.dumpASDCNotification(iNotificationData0);
- assertEquals("ASDC Notification:\nDistributionID:io7<{~.v|%\nServiceName:io7<{~.v|%\nServiceVersion:io7<{~.v|%\nServiceUUID:NULL\nServiceInvariantUUID:io7<{~.v|%\nServiceDescription:io7<{~.v|%\nService Artifacts List:\nNULL\nResource Instances List:\nNULL\n", string0);
-
- ASDCNotificationLogging.dumpVfModuleMetaDataList((List<IVfModuleData>) null);
- IArtifactInfo iArtifactInfo0 = mock(IArtifactInfo.class, new ViolatedAssumptionAnswer());
- doReturn((String) null).when(iArtifactInfo0).getArtifactChecksum();
- doReturn((String) null).when(iArtifactInfo0).getArtifactDescription();
- doReturn((String) null).when(iArtifactInfo0).getArtifactName();
- doReturn((Integer) null).when(iArtifactInfo0).getArtifactTimeout();
- doReturn((String) null).when(iArtifactInfo0).getArtifactType();
- doReturn((String) null).when(iArtifactInfo0).getArtifactURL();
- doReturn((String) null).when(iArtifactInfo0).getArtifactUUID();
- doReturn((String) null).when(iArtifactInfo0).getArtifactVersion();
- doReturn((IArtifactInfo) null).when(iArtifactInfo0).getGeneratedArtifact();
- doReturn((List) null).when(iArtifactInfo0).getRelatedArtifacts();
- linkedList0.push(iArtifactInfo0);
- INotificationData iNotificationData1 = mock(INotificationData.class, new ViolatedAssumptionAnswer());
- doReturn("t2J^4~*i|btm ib&").when(iNotificationData1).getDistributionID();
- doReturn((List<IResourceInstance>) null).when(iNotificationData1).getResources();
- doReturn(linkedList0).when(iNotificationData1).getServiceArtifacts();
- doReturn("N~a W7").when(iNotificationData1).getServiceDescription();
- doReturn("N~a W7").when(iNotificationData1).getServiceInvariantUUID();
- doReturn("/&*/=").when(iNotificationData1).getServiceName();
- doReturn((String) null).when(iNotificationData1).getServiceUUID();
- doReturn("ASDC Notification:\nDistributionID:io7<{~.v|%\nServiceName:io7<{~.v|%\nServiceVersion:io7<{~.v|%\nServiceUUID:NULL\nServiceInvariantUUID:io7<{~.v|%\nServiceDescription:io7<{~.v|%\nService Artifacts List:\nNULL\nResource Instances List:\nNULL\n").when(iNotificationData1).getServiceVersion();
- String string1 = ASDCNotificationLogging.dumpASDCNotification(iNotificationData1);
- assertEquals("ASDC Notification:\nDistributionID:t2J^4~*i|btm ib&\nServiceName:/&*/=\nServiceVersion:ASDC Notification:\nDistributionID:io7<{~.v|%\nServiceName:io7<{~.v|%\nServiceVersion:io7<{~.v|%\nServiceUUID:NULL\nServiceInvariantUUID:io7<{~.v|%\nServiceDescription:io7<{~.v|%\nService Artifacts List:\nNULL\nResource Instances List:\nNULL\n\nServiceUUID:NULL\nServiceInvariantUUID:N~a W7\nServiceDescription:N~a W7\nService Artifacts List:\n{\nService Artifacts Info:\nArtifactName:NULL\nArtifactVersion:NULL\nArtifactType:NULL\nArtifactDescription:NULL\nArtifactTimeout:NULL\nArtifactURL:NULL\nArtifactUUID:NULL\nArtifactChecksum:NULL\nGeneratedArtifact:{NULL\n}\nRelatedArtifacts:NULL\n\n\n}\n\nResource Instances List:\nNULL\n", string1);
- }
-
- @Test(timeout = 4000)
- public void test12() throws Throwable {
- ASDCNotificationLogging aSDCNotificationLogging0 = new ASDCNotificationLogging();
- Object object0 = PrivateAccess.callMethod((Class<ASDCNotificationLogging>) ASDCNotificationLogging.class, aSDCNotificationLogging0, "dumpASDCResourcesList", (Object) null, (Class<?>) INotificationData.class);
- assertNull(object0);
- }
-}
diff --git a/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/ASDCNotificationLoggingESTestscaffolding.java b/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/ASDCNotificationLoggingESTestscaffolding.java
deleted file mode 100644
index 62663e7397..0000000000
--- a/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/ASDCNotificationLoggingESTestscaffolding.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Mon Mar 13 15:55:23 GMT 2017
- */
-
-package org.openecomp.mso.asdc.util;
-
-import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
-import org.junit.BeforeClass;
-import org.junit.Before;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.evosuite.runtime.sandbox.Sandbox;
-import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
-
-@EvoSuiteClassExclude
-public class ASDCNotificationLoggingESTestscaffolding {
-
- @org.junit.Rule
- public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
-
- private static final java.util.Properties defaultProperties = (java.util.Properties) System.getProperties().clone();
-
- private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
-
- @BeforeClass
- public static void initEvoSuiteFramework() {
- org.evosuite.runtime.RuntimeSettings.className = "org.openecomp.mso.asdc.util.ASDCNotificationLogging";
- org.evosuite.runtime.GuiSupport.initialize();
- org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
- org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
- org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
- org.evosuite.runtime.RuntimeSettings.sandboxMode = SandboxMode.RECOMMENDED;
- Sandbox.initializeSecurityManagerForSUT();
- org.evosuite.runtime.classhandling.JDKClassResetter.init();
- initializeClasses();
- org.evosuite.runtime.Runtime.getInstance().resetRuntime();
- }
-
- @AfterClass
- public static void clearEvoSuiteFramework(){
- Sandbox.resetDefaultSecurityManager();
- System.setProperties((java.util.Properties) defaultProperties.clone());
- }
-
- @Before
- public void initTestCase(){
- threadStopper.storeCurrentThreads();
- threadStopper.startRecordingTime();
- org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
- Sandbox.goingToExecuteSUTCode();
- org.evosuite.runtime.GuiSupport.setHeadless();
- org.evosuite.runtime.Runtime.getInstance().resetRuntime();
- org.evosuite.runtime.agent.InstrumentingAgent.activate();
- }
-
- @After
- public void doneWithTestCase(){
- threadStopper.killAndJoinClientThreads();
- org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
- org.evosuite.runtime.classhandling.JDKClassResetter.reset();
- resetClasses();
- Sandbox.doneWithExecutingSUTCode();
- org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
- org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
- }
-
- private static void initializeClasses() {
- org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(ASDCNotificationLoggingESTestscaffolding.class.getClassLoader() ,
- "org.openecomp.sdc.api.notification.INotificationData",
- "org.openecomp.mso.asdc.installer.VfModuleMetaData",
- "org.openecomp.mso.asdc.installer.IVfModuleData",
- "org.openecomp.sdc.api.notification.IResourceInstance",
- "org.openecomp.sdc.api.notification.IArtifactInfo",
- "org.openecomp.mso.asdc.util.ASDCNotificationLogging"
- );
- }
-
- private static void resetClasses() {
- }
-}
diff --git a/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTest.java b/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTest.java
deleted file mode 100644
index c050a9cc20..0000000000
--- a/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTest.java
+++ /dev/null
@@ -1,420 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Fri Nov 25 13:17:51 GMT 2016
- */
-
-package org.openecomp.mso.asdc.util;
-
-import org.junit.Test;
-import static org.junit.Assert.*;
-import static org.evosuite.shaded.org.mockito.Mockito.*;
-import static org.evosuite.runtime.MockitoExtension.*;
-import static org.evosuite.runtime.EvoAssertions.*;
-
-import org.openecomp.mso.db.catalog.beans.HeatTemplateParam;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-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.yaml.snakeyaml.Yaml;
-
-@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
-public class YamlEditorESTest extends YamlEditorESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test00() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- boolean boolean0 = yamlEditor0.isParentTemplate("file:///");
- assertTrue(boolean0);
- }
-
- @Test(timeout = 4000)
- public void test01() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- HashMap<String, Object> hashMap0 = new HashMap<String, Object>();
- Yaml yaml0 = mock(Yaml.class, new ViolatedAssumptionAnswer());
- doReturn((String) null, (String) null).when(yaml0).dump(any());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yaml", (Object) yaml0);
- yamlEditor0.encode((Map<String, Object>) hashMap0);
- Map<String, Object> map0 = (Map<String, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn((Object) null).when(map0).get(any());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) map0);
- yamlEditor0.toString();
- // Undeclared exception!
- try {
- yamlEditor0.getYamlResourceTypeList();
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test02() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- HashMap<Object, String> hashMap0 = new HashMap<Object, String>();
- Yaml yaml0 = mock(Yaml.class, new ViolatedAssumptionAnswer());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yaml", (Object) yaml0);
- Object object0 = new Object();
- Map<Integer, Object> map0 = (Map<Integer, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn(hashMap0, object0).when(map0).get(any());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) map0);
- yamlEditor0.getParameterList();
- // Undeclared exception!
- try {
- yamlEditor0.getYamlResourceTypeList();
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // java.lang.Object cannot be cast to java.util.Map
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test03() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- // Undeclared exception!
- try {
- yamlEditor0.getYamlNestedFileResourceTypeList();
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test04() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- HashMap<Object, String> hashMap0 = new HashMap<Object, String>();
- Yaml yaml0 = mock(Yaml.class, new ViolatedAssumptionAnswer());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yaml", (Object) yaml0);
- Map<Integer, Object> map0 = (Map<Integer, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn(hashMap0, (Object) null).when(map0).get(any());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) map0);
- yamlEditor0.getYamlNestedFileResourceTypeList();
- // Undeclared exception!
- try {
- yamlEditor0.getParameterList();
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test05() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- HashMap<String, Object> hashMap0 = new HashMap<String, Object>();
- Set<Map.Entry<String, Object>> set0 = (Set<Map.Entry<String, Object>>)hashMap0.entrySet();
- hashMap0.put("null\n", set0);
- // Undeclared exception!
- try {
- yamlEditor0.encode((Map<String, Object>) hashMap0);
- fail("Expecting exception: StackOverflowError");
-
- } catch(StackOverflowError e) {
- //
- // no message in exception (getMessage() returned null)
- //
- }
- }
-
- @Test(timeout = 4000)
- public void test06() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- Set<Map.Entry<String, Object>> set0 = (Set<Map.Entry<String, Object>>) mock(Set.class, new ViolatedAssumptionAnswer());
- doReturn((Iterator) null).when(set0).iterator();
- Map<String, Object> map0 = (Map<String, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn(set0).when(map0).entrySet();
- doReturn(2655).when(map0).size();
- // Undeclared exception!
- try {
- yamlEditor0.encode(map0);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.yaml.snakeyaml.representer.BaseRepresenter", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test07() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- Map<String, Object> map0 = (Map<String, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn((-300)).when(map0).size();
- // Undeclared exception!
- try {
- yamlEditor0.encode(map0);
- fail("Expecting exception: IllegalArgumentException");
-
- } catch(IllegalArgumentException e) {
- //
- // Illegal Capacity: -300
- //
- verifyException("java.util.ArrayList", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test08() throws Throwable {
- byte[] byteArray0 = new byte[0];
- YamlEditor yamlEditor0 = new YamlEditor(byteArray0);
- Map<HeatTemplateParam, String> map0 = (Map<HeatTemplateParam, String>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn("").when(map0).get(any());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) map0);
- LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
- // Undeclared exception!
- try {
- yamlEditor0.addParameterList(linkedHashSet0);
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // java.lang.String cannot be cast to java.util.Map
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test09() throws Throwable {
- byte[] byteArray0 = new byte[1];
- YamlEditor yamlEditor0 = null;
- try {
- yamlEditor0 = new YamlEditor(byteArray0);
- fail("Expecting exception: RuntimeException");
-
- } catch(RuntimeException e) {
- //
- // special characters are not allowed
- //
- verifyException("org.yaml.snakeyaml.reader.StreamReader", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test10() throws Throwable {
- byte[] byteArray0 = new byte[1];
- byteArray0[0] = (byte)37;
- YamlEditor yamlEditor0 = null;
- try {
- yamlEditor0 = new YamlEditor(byteArray0);
- fail("Expecting exception: RuntimeException");
-
- } catch(RuntimeException e) {
- //
- // while scanning a directive
- // in 'reader', line 1, column 1:
- // %
- // ^
- // expected alphabetic or numeric character, but found \u0000(0)
- // in 'reader', line 1, column 2:
- // %
- // ^
- //
- verifyException("org.yaml.snakeyaml.scanner.ScannerImpl", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test11() throws Throwable {
- byte[] byteArray0 = new byte[2];
- byteArray0[1] = (byte) (-80);
- YamlEditor yamlEditor0 = null;
- try {
- yamlEditor0 = new YamlEditor(byteArray0);
- fail("Expecting exception: RuntimeException");
-
- } catch(RuntimeException e) {
- //
- // java.nio.charset.MalformedInputException: Input length = 1
- //
- verifyException("org.yaml.snakeyaml.reader.StreamReader", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test13() throws Throwable {
- byte[] byteArray0 = new byte[1];
- byteArray0[0] = (byte)110;
- YamlEditor yamlEditor0 = null;
- try {
- yamlEditor0 = new YamlEditor(byteArray0);
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // java.lang.String cannot be cast to java.util.Map
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test14() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- String string0 = yamlEditor0.encode();
- assertEquals("null\n", string0);
- }
-
- @Test(timeout = 4000)
- public void test15() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- HashMap<Object, String> hashMap0 = new HashMap<Object, String>();
- Map<Integer, Object> map0 = (Map<Integer, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn(hashMap0).when(map0).get(any());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) map0);
- Set<HeatTemplateParam> set0 = (Set<HeatTemplateParam>) mock(Set.class, new ViolatedAssumptionAnswer());
- doReturn((Iterator) null).when(set0).iterator();
- // Undeclared exception!
- try {
- yamlEditor0.addParameterList(set0);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test16() throws Throwable {
- byte[] byteArray0 = new byte[0];
- YamlEditor yamlEditor0 = new YamlEditor(byteArray0);
- HashMap<HeatTemplateParam, String> hashMap0 = new HashMap<HeatTemplateParam, String>();
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) hashMap0);
- LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
- HeatTemplateParam heatTemplateParam0 = mock(HeatTemplateParam.class, new ViolatedAssumptionAnswer());
- doReturn(">!=_`7`2d(").when(heatTemplateParam0).getParamName();
- doReturn(">!=_`7`2d(").when(heatTemplateParam0).getParamType();
- linkedHashSet0.add(heatTemplateParam0);
- yamlEditor0.addParameterList(linkedHashSet0);
- Set<HeatTemplateParam> set0 = yamlEditor0.getParameterList();
- assertFalse(set0.isEmpty());
- }
-
- @Test(timeout = 4000)
- public void test17() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- HashMap<Object, String> hashMap0 = new HashMap<Object, String>();
- Map<Integer, Object> map0 = (Map<Integer, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn(hashMap0).when(map0).get(any());
- hashMap0.put(yamlEditor0, "V28");
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) map0);
- // Undeclared exception!
- try {
- yamlEditor0.getParameterList();
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // java.lang.String cannot be cast to java.util.Map
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test18() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- HashMap<Object, String> hashMap0 = new HashMap<Object, String>();
- Map<Integer, Object> map0 = (Map<Integer, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn(hashMap0).when(map0).get(any());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) map0);
- List<String> list0 = yamlEditor0.getYamlResourceTypeList();
- assertEquals(0, list0.size());
- }
-
- @Test(timeout = 4000)
- public void test19() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- // Undeclared exception!
- try {
- yamlEditor0.isParentTemplate((String) null);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test20() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- yamlEditor0.verifyTemplate();
- yamlEditor0.isParentTemplate("\"");
- Map<String, Object> map0 = (Map<String, Object>) mock(Map.class, new ViolatedAssumptionAnswer());
- doReturn(yamlEditor0).when(map0).get(any());
- PrivateAccess.setVariable((Class<YamlEditor>) YamlEditor.class, yamlEditor0, "yml", (Object) map0);
- // Undeclared exception!
- try {
- yamlEditor0.getYamlNestedFileResourceTypeList();
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // org.openecomp.mso.asdc.util.YamlEditor cannot be cast to java.util.Map
- //
- verifyException("org.openecomp.mso.asdc.util.YamlEditor", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test21() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- HashMap<String, Object> hashMap0 = new HashMap<String, Object>();
- String string0 = yamlEditor0.encode((Map<String, Object>) hashMap0);
- assertEquals("{}\n", string0);
- }
-
- @Test(timeout = 4000)
- public void test22() throws Throwable {
- YamlEditor yamlEditor0 = null;
- try {
- yamlEditor0 = new YamlEditor((byte[]) null);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- }
- }
-
- @Test(timeout = 4000)
- public void test23() throws Throwable {
- YamlEditor yamlEditor0 = new YamlEditor();
- String string0 = yamlEditor0.toString();
- assertEquals("null\n", string0);
- }
-}
diff --git a/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTestscaffolding.java b/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTestscaffolding.java
deleted file mode 100644
index dca8696ef2..0000000000
--- a/asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTestscaffolding.java
+++ /dev/null
@@ -1,255 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Fri Nov 25 13:17:51 GMT 2016
- */
-
-package org.openecomp.mso.asdc.util;
-
-import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
-import org.junit.BeforeClass;
-import org.junit.Before;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.evosuite.runtime.sandbox.Sandbox;
-
-@EvoSuiteClassExclude
-public class YamlEditorESTestscaffolding {
-
- @org.junit.Rule
- public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
-
- private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
-
- private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
-
- @BeforeClass
- public static void initEvoSuiteFramework() {
- org.evosuite.runtime.RuntimeSettings.className = "org.openecomp.mso.asdc.util.YamlEditor";
- org.evosuite.runtime.GuiSupport.initialize();
- org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
- org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
- org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
- org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
- org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
- org.evosuite.runtime.classhandling.JDKClassResetter.init();
- initializeClasses();
- org.evosuite.runtime.Runtime.getInstance().resetRuntime();
- }
-
- @AfterClass
- public static void clearEvoSuiteFramework(){
- Sandbox.resetDefaultSecurityManager();
- java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
- }
-
- @Before
- public void initTestCase(){
- threadStopper.storeCurrentThreads();
- threadStopper.startRecordingTime();
- org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
- org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
-
- org.evosuite.runtime.GuiSupport.setHeadless();
- org.evosuite.runtime.Runtime.getInstance().resetRuntime();
- org.evosuite.runtime.agent.InstrumentingAgent.activate();
- }
-
- @After
- public void doneWithTestCase(){
- threadStopper.killAndJoinClientThreads();
- org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
- org.evosuite.runtime.classhandling.JDKClassResetter.reset();
- resetClasses();
- org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
- org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
- org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
- }
-
- private static void initializeClasses() {
- org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(YamlEditorESTestscaffolding.class.getClassLoader() ,
- "org.yaml.snakeyaml.parser.ParserImpl",
- "org.yaml.snakeyaml.nodes.SequenceNode",
- "org.yaml.snakeyaml.composer.ComposerException",
- "org.yaml.snakeyaml.introspector.BeanAccess",
- "org.yaml.snakeyaml.representer.Representer$RepresentJavaBean",
- "org.yaml.snakeyaml.external.com.google.gdata.util.common.base.PercentEscaper",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentNumber",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentBoolean",
- "org.yaml.snakeyaml.scanner.ScannerImpl$Chomping",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlPairs",
- "org.yaml.snakeyaml.emitter.Emitter$ExpectNothing",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentList",
- "org.yaml.snakeyaml.events.Event",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlInt",
- "org.yaml.snakeyaml.nodes.Node",
- "org.yaml.snakeyaml.introspector.MissingProperty",
- "org.yaml.snakeyaml.emitter.Emitable",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlTimestamp",
- "org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject",
- "org.yaml.snakeyaml.composer.Composer",
- "org.yaml.snakeyaml.tokens.FlowMappingStartToken",
- "org.yaml.snakeyaml.emitter.Emitter$ExpectDocumentStart",
- "org.yaml.snakeyaml.constructor.SafeConstructor",
- "org.yaml.snakeyaml.nodes.NodeId",
- "org.yaml.snakeyaml.events.SequenceEndEvent",
- "org.yaml.snakeyaml.events.MappingStartEvent",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentArray",
- "org.yaml.snakeyaml.parser.Parser",
- "org.yaml.snakeyaml.tokens.AnchorToken",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentDate",
- "org.yaml.snakeyaml.parser.Production",
- "org.yaml.snakeyaml.introspector.Property",
- "org.yaml.snakeyaml.tokens.StreamStartToken",
- "org.yaml.snakeyaml.DumperOptions$Version",
- "org.yaml.snakeyaml.constructor.ConstructorException",
- "org.yaml.snakeyaml.emitter.EmitterException",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlBool",
- "org.yaml.snakeyaml.error.MarkedYAMLException",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlFloat",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentNull",
- "org.yaml.snakeyaml.events.DocumentEndEvent",
- "org.yaml.snakeyaml.error.Mark",
- "org.yaml.snakeyaml.emitter.Emitter$ExpectFirstFlowMappingKey",
- "org.yaml.snakeyaml.tokens.DocumentEndToken",
- "org.yaml.snakeyaml.introspector.PropertyUtils",
- "org.yaml.snakeyaml.external.com.google.gdata.util.common.base.Escaper",
- "org.yaml.snakeyaml.events.StreamStartEvent",
- "org.yaml.snakeyaml.error.YAMLException",
- "org.yaml.snakeyaml.scanner.ScannerImpl",
- "org.yaml.snakeyaml.reader.UnicodeReader",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlOmap",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap",
- "org.yaml.snakeyaml.parser.ParserImpl$ParseBlockNode",
- "org.yaml.snakeyaml.external.com.google.gdata.util.common.base.UnicodeEscaper",
- "org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlNull",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlStr",
- "org.yaml.snakeyaml.events.CollectionEndEvent",
- "org.yaml.snakeyaml.DumperOptions",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentSet",
- "org.yaml.snakeyaml.resolver.Resolver",
- "org.yaml.snakeyaml.tokens.Token",
- "org.yaml.snakeyaml.events.SequenceStartEvent",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap",
- "org.yaml.snakeyaml.constructor.Constructor$ConstructMapping",
- "org.yaml.snakeyaml.serializer.Serializer$1",
- "org.yaml.snakeyaml.constructor.Constructor",
- "org.yaml.snakeyaml.scanner.ScannerException",
- "org.yaml.snakeyaml.tokens.ScalarToken",
- "org.yaml.snakeyaml.resolver.ResolverTuple",
- "org.yaml.snakeyaml.constructor.AbstractConstruct",
- "org.yaml.snakeyaml.tokens.TagToken",
- "org.yaml.snakeyaml.nodes.CollectionNode",
- "org.yaml.snakeyaml.nodes.ScalarNode",
- "org.yaml.snakeyaml.TypeDescription",
- "org.yaml.snakeyaml.events.AliasEvent",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlSet",
- "org.yaml.snakeyaml.constructor.Constructor$ConstructSequence",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlSeq",
- "org.yaml.snakeyaml.reader.ReaderException",
- "org.yaml.snakeyaml.tokens.DocumentStartToken",
- "org.yaml.snakeyaml.util.UriEncoder",
- "org.yaml.snakeyaml.serializer.SerializerException",
- "org.yaml.snakeyaml.external.com.google.gdata.util.common.base.UnicodeEscaper$2",
- "org.yaml.snakeyaml.events.MappingEndEvent",
- "org.yaml.snakeyaml.parser.VersionTagsTuple",
- "org.yaml.snakeyaml.DumperOptions$FlowStyle",
- "org.yaml.snakeyaml.events.DocumentStartEvent",
- "org.yaml.snakeyaml.tokens.FlowMappingEndToken",
- "org.yaml.snakeyaml.emitter.Emitter$ExpectDocumentRoot",
- "org.yaml.snakeyaml.representer.BaseRepresenter",
- "org.yaml.snakeyaml.nodes.AnchorNode",
- "org.yaml.snakeyaml.tokens.FlowSequenceStartToken",
- "org.yaml.snakeyaml.tokens.FlowSequenceEndToken",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlBinary",
- "org.openecomp.mso.asdc.util.YamlEditor",
- "org.yaml.snakeyaml.emitter.EmitterState",
- "org.yaml.snakeyaml.events.Event$ID",
- "org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart",
- "org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder",
- "org.yaml.snakeyaml.DumperOptions$LineBreak",
- "org.yaml.snakeyaml.constructor.Construct",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentEnum",
- "org.yaml.snakeyaml.introspector.PropertyUtils$1",
- "org.yaml.snakeyaml.serializer.Serializer",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentPrimitiveArray",
- "org.yaml.snakeyaml.scanner.Constant",
- "org.yaml.snakeyaml.representer.SafeRepresenter",
- "org.openecomp.mso.db.catalog.beans.HeatTemplateParam",
- "org.yaml.snakeyaml.parser.ParserException",
- "org.yaml.snakeyaml.tokens.AliasToken",
- "org.yaml.snakeyaml.emitter.ScalarAnalysis",
- "org.yaml.snakeyaml.constructor.SafeConstructor$ConstructUndefined",
- "org.yaml.snakeyaml.events.CollectionStartEvent",
- "org.yaml.snakeyaml.parser.ParserImpl$ParseStreamStart",
- "org.yaml.snakeyaml.DumperOptions$ScalarStyle",
- "org.yaml.snakeyaml.tokens.StreamEndToken",
- "org.yaml.snakeyaml.constructor.BaseConstructor",
- "org.yaml.snakeyaml.representer.BaseRepresenter$1",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentByteArray",
- "org.yaml.snakeyaml.nodes.MappingNode",
- "org.yaml.snakeyaml.Yaml",
- "org.yaml.snakeyaml.constructor.Constructor$ConstructScalar",
- "org.yaml.snakeyaml.scanner.SimpleKey",
- "org.yaml.snakeyaml.resolver.Resolver$1",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentIterator",
- "org.yaml.snakeyaml.emitter.Emitter$ExpectStreamStart",
- "org.yaml.snakeyaml.tokens.DirectiveToken",
- "org.yaml.snakeyaml.representer.Represent",
- "org.yaml.snakeyaml.events.StreamEndEvent",
- "org.yaml.snakeyaml.tokens.Token$ID",
- "org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentEnd",
- "org.yaml.snakeyaml.nodes.Tag",
- "org.yaml.snakeyaml.util.ArrayStack",
- "org.yaml.snakeyaml.representer.SafeRepresenter$RepresentString",
- "org.yaml.snakeyaml.events.ImplicitTuple",
- "org.yaml.snakeyaml.scanner.Scanner",
- "org.yaml.snakeyaml.emitter.Emitter$ExpectFirstDocumentStart",
- "org.yaml.snakeyaml.events.NodeEvent",
- "org.yaml.snakeyaml.emitter.Emitter",
- "org.yaml.snakeyaml.reader.StreamReader",
- "org.yaml.snakeyaml.representer.Representer",
- "org.yaml.snakeyaml.emitter.Emitter$ExpectDocumentEnd",
- "org.yaml.snakeyaml.events.ScalarEvent"
- );
- }
-
- private static void resetClasses() {
- org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(YamlEditorESTestscaffolding.class.getClassLoader());
-
- org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
- "org.yaml.snakeyaml.constructor.SafeConstructor",
- "org.yaml.snakeyaml.nodes.NodeId",
- "org.yaml.snakeyaml.external.com.google.gdata.util.common.base.UnicodeEscaper",
- "org.yaml.snakeyaml.external.com.google.gdata.util.common.base.PercentEscaper",
- "org.yaml.snakeyaml.util.UriEncoder",
- "org.yaml.snakeyaml.nodes.Tag",
- "org.yaml.snakeyaml.representer.SafeRepresenter",
- "org.yaml.snakeyaml.DumperOptions$FlowStyle",
- "org.yaml.snakeyaml.representer.BaseRepresenter$1",
- "org.yaml.snakeyaml.DumperOptions$ScalarStyle",
- "org.yaml.snakeyaml.DumperOptions$LineBreak",
- "org.yaml.snakeyaml.resolver.Resolver",
- "org.yaml.snakeyaml.introspector.BeanAccess",
- "org.yaml.snakeyaml.reader.StreamReader",
- "org.yaml.snakeyaml.reader.UnicodeReader",
- "org.yaml.snakeyaml.error.YAMLException",
- "org.yaml.snakeyaml.reader.ReaderException",
- "org.yaml.snakeyaml.emitter.Emitter",
- "org.yaml.snakeyaml.serializer.Serializer$1",
- "org.yaml.snakeyaml.resolver.Resolver$1",
- "org.yaml.snakeyaml.scanner.Constant",
- "org.yaml.snakeyaml.introspector.PropertyUtils$1",
- "org.yaml.snakeyaml.parser.ParserImpl",
- "org.yaml.snakeyaml.scanner.ScannerImpl",
- "org.yaml.snakeyaml.events.Event$ID",
- "org.yaml.snakeyaml.tokens.Token$ID",
- "org.yaml.snakeyaml.error.MarkedYAMLException",
- "org.yaml.snakeyaml.scanner.ScannerException",
- "org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder",
- "org.yaml.snakeyaml.parser.ParserException",
- "org.openecomp.mso.asdc.util.YamlEditor"
- );
- }
-}