diff options
author | 2017-09-08 13:27:46 -0400 | |
---|---|---|
committer | 2017-09-08 13:32:24 -0400 | |
commit | 62cd6aaaf74aa91ee0037c0e155c8e7284f07567 (patch) | |
tree | 68c0c53c9156f5aa3c6b3599ac940770f986633d /asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTestscaffolding.java | |
parent | fa1a211d28a912892fcd888569df033900eb01ee (diff) |
1710 Rebase - Second Attempt
This commit rebases changes from openecomp-mso/internal-staging-1710 up to and including this codecloud commit:
54483fc6606ddb1591a2e9da61bff8712325f924
Wed Sep 6 18:12:56 2017 -0400
Rebasing was done on a branch on top of this commit in so/master in ONAP:
93fbdfbe46104f8859d4754040f979cb7997c157
Thu Sep 7 16:42:59 2017 +0000
Change-Id: I4ad9abf40da32bf5bdca43e868b8fa2dbcd9dc59
Issue-id: SO-107
Signed-off-by: Arthur Martella <amartell@research.att.com>
Diffstat (limited to 'asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTestscaffolding.java')
-rw-r--r-- | asdc-controller/src/test/java/org/openecomp/mso/asdc/util/YamlEditorESTestscaffolding.java | 255 |
1 files changed, 0 insertions, 255 deletions
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" - ); - } -} |