diff options
Diffstat (limited to 'common/src/test/java/org/openecomp/mso/properties')
12 files changed, 0 insertions, 1405 deletions
diff --git a/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java b/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java deleted file mode 100644 index 535d929807..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Mon Nov 14 09:09:20 GMT 2016 - */ - -package org.openecomp.mso.properties; - -import static org.evosuite.runtime.EvoAssertions.verifyException; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.io.FileNotFoundException; - -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class AbstractMsoPropertiesESTest extends AbstractMsoPropertiesESTestscaffolding { - - @Test(timeout = 4000) - public void test00() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - String string0 = msoJavaProperties0.toString(); - assertEquals("Config file null(Timer:0mins):\n\n\n", string0); - } - - @Test(timeout = 4000) - public void test01() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - msoJavaProperties1.propertiesFileName = "+"; - msoJavaProperties1.getPropertiesFileName(); - assertEquals(0, msoJavaProperties1.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test02() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - msoJavaProperties1.propertiesFileName = ""; - msoJavaProperties1.getPropertiesFileName(); - assertEquals(0, msoJavaProperties1.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test03() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.automaticRefreshInMinutes = (-1447); - int int0 = msoJavaProperties0.getAutomaticRefreshInMinutes(); - assertEquals((-1447), int0); - } - - @Test(timeout = 4000) - public void test04() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.equals(msoJavaProperties0); - assertEquals(0, msoJavaProperties0.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test05() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.equals("X<0P%qxWR fu\""); - assertEquals(0, msoJavaProperties0.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test06() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = (MsoJavaProperties)msoJavaProperties0.clone(); - assertEquals(0, msoJavaProperties1.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test07() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.automaticRefreshInMinutes = (-1447); - MsoJavaProperties msoJavaProperties1 = (MsoJavaProperties)msoJavaProperties0.clone(); - assertTrue(msoJavaProperties1.equals((Object)msoJavaProperties0)); - } - - /** - * TODO: fails when run using maven, but succeeds when run using eclipse - * @throws Throwable - */ - @Ignore - @Test(timeout = 4000) - public void test08() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - // Undeclared exception! - try { - msoJavaProperties0.reloadPropertiesFile(); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test09() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.propertiesFileName = "ASDC_ARTIFACT_ALREADY_DEPLOYED"; - try { - msoJavaProperties0.reloadPropertiesFile(); - fail("Expecting exception: FileNotFoundException"); - - } catch(FileNotFoundException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test10() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - try { - msoJavaProperties0.loadPropertiesFile("Trying to reset value handler for type ["); - fail("Expecting exception: FileNotFoundException"); - - } catch(FileNotFoundException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test11() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.getPropertiesFileName(); - assertEquals(0, msoJavaProperties0.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test12() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - int int0 = msoJavaProperties0.getAutomaticRefreshInMinutes(); - assertEquals(0, int0); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTestscaffolding.java deleted file mode 100644 index 4224f01dc0..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTestscaffolding.java +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Scaffolding file used to store all the setups needed to run - * tests automatically generated by EvoSuite - * Mon Nov 14 09:09:20 GMT 2016 - */ - -package org.openecomp.mso.properties; - -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 AbstractMsoPropertiesESTestscaffolding { - - @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.properties.AbstractMsoProperties"; - 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(AbstractMsoPropertiesESTestscaffolding.class.getClassLoader() , - "org.openecomp.mso.properties.AbstractMsoProperties", - "org.openecomp.mso.logger.MsoLogger", - "org.openecomp.mso.logger.MessageEnum", - "com.att.eelf.i18n.EELFResolvableErrorEnum", - "org.openecomp.mso.logger.MsoLogger$ResponseCode", - "org.openecomp.mso.entity.MsoRequest", - "org.openecomp.mso.logger.MsoLogger$StatusCode", - "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES", - "com.att.eelf.configuration.EELFManager", - "org.openecomp.mso.logger.MsoLogger$ErrorCode", - "com.att.eelf.configuration.EELFLogger", - "com.att.eelf.i18n.EELFMsgs", - "com.att.eelf.configuration.EELFLogger$Level", - "org.openecomp.mso.properties.MsoJavaProperties", - "org.openecomp.mso.logger.MsoLogger$Catalog", - "com.att.eelf.configuration.SLF4jWrapper", - "com.att.eelf.i18n.EELFResourceManager" - ); - } - - private static void resetClasses() { - org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(AbstractMsoPropertiesESTestscaffolding.class.getClassLoader()); - - org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( - "org.openecomp.mso.logger.MsoLogger$Catalog", - "org.codehaus.jackson.map.introspect.AnnotatedClass", - "org.codehaus.jackson.map.introspect.BasicClassIntrospector", - "org.codehaus.jackson.annotate.JsonAutoDetect$Visibility", - "org.codehaus.jackson.annotate.JsonMethod", - "org.codehaus.jackson.map.introspect.VisibilityChecker$Std", - "org.codehaus.jackson.map.ObjectMapper", - "org.codehaus.jackson.JsonParser$Feature", - "org.codehaus.jackson.JsonGenerator$Feature", - "org.codehaus.jackson.JsonFactory", - "org.codehaus.jackson.sym.CharsToNameCanonicalizer", - "org.codehaus.jackson.sym.BytesToNameCanonicalizer", - "org.codehaus.jackson.map.type.TypeFactory", - "org.openecomp.mso.utils.CryptoUtils", - "org.openecomp.mso.logger.MsoLogger", - "com.att.eelf.i18n.EELFResourceManager", - "com.att.eelf.i18n.EELFMsgs", - "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES", - "com.att.eelf.configuration.EELFLogger$Level", - "com.att.eelf.configuration.EELFManager", - "org.openecomp.mso.logger.MessageEnum", - "org.openecomp.mso.properties.AbstractMsoProperties" - ); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoJavaPropertiesESTest.java b/common/src/test/java/org/openecomp/mso/properties/MsoJavaPropertiesESTest.java deleted file mode 100644 index d64f63fb2c..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoJavaPropertiesESTest.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Thu Nov 10 08:35:35 GMT 2016 - */ - -package org.openecomp.mso.properties; - -import static org.evosuite.runtime.EvoAssertions.verifyException; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNotSame; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.io.FileNotFoundException; - -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.evosuite.runtime.PrivateAccess; -import org.evosuite.runtime.testdata.FileSystemHandling; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -import org.openecomp.mso.logger.MsoLogger; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class MsoJavaPropertiesESTest extends MsoJavaPropertiesESTestscaffolding { - - @Test(timeout = 4000) - public void test00() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.setProperty("", "J6"); - msoJavaProperties0.hashCode(); - } - - @Test(timeout = 4000) - public void test02() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - String string0 = msoJavaProperties0.getProperty("IK#uRP]", (String) null); - assertNull(string0); - } - - @Test(timeout = 4000) - public void test03() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - String string0 = msoJavaProperties0.getProperty("", ""); - assertNotNull(string0); - assertEquals("", string0); - } - - @Test(timeout = 4000) - public void test04() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - int int0 = msoJavaProperties0.getIntProperty("RA_VNF_NOT_EXIST", (-1417)); - assertEquals((-1417), int0); - } - - @Test(timeout = 4000) - public void test05() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - String string0 = msoJavaProperties0.getEncryptedProperty("", "", ""); - assertEquals("", string0); - assertNotNull(string0); - } - - @Test(timeout = 4000) - public void test06() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.automaticRefreshInMinutes = 1821; - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - assertNotSame(msoJavaProperties1, msoJavaProperties0); - assertEquals(1821, msoJavaProperties1.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test07() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.automaticRefreshInMinutes = (-78); - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - assertNotSame(msoJavaProperties1, msoJavaProperties0); - assertEquals(-78, msoJavaProperties1.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test08() throws Throwable { - FileSystemHandling fileSystemHandling0 = new FileSystemHandling(); - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - PrivateAccess.setVariable((Class<MsoJavaProperties>) MsoJavaProperties.class, msoJavaProperties0, "msoProperties", (Object) null); - msoJavaProperties0.hashCode(); - msoJavaProperties0.hashCode(); - // Undeclared exception! - try { - msoJavaProperties0.size(); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.openecomp.mso.properties.MsoJavaProperties", e); - } - } - - @Test(timeout = 4000) - public void test09() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - // Undeclared exception! - try { - msoJavaProperties0.setProperty((String) null, "+UaYo-~&{QxdaN(c"); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - } - } - - @Test(timeout = 4000) - public void test11() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - msoJavaProperties1.propertiesFileName = ""; - try { - msoJavaProperties1.reloadPropertiesFile(); - fail("Expecting exception: FileNotFoundException"); - - } catch(FileNotFoundException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - /** - * TODO: fails when run using maven, but succeeds when run using eclipse - */ - @Ignore - @Test(timeout = 4000) - public void test12() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - // Undeclared exception! - try { - msoJavaProperties0.loadPropertiesFile((String) null); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test13() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - try { - msoJavaProperties0.loadPropertiesFile(""); - fail("Expecting exception: FileNotFoundException"); - - } catch(FileNotFoundException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test14() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - // Undeclared exception! - try { - msoJavaProperties0.getIntProperty((String) null, 0); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - } - } - - @Test(timeout = 4000) - public void test15() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.setProperty("APIH_READ_VNFOUTPUT_CLOB_EXCEPTION", ""); - // Undeclared exception! - try { - msoJavaProperties0.getEncryptedProperty("APIH_READ_VNFOUTPUT_CLOB_EXCEPTION", "", "k$&Fq}"); - fail("Expecting exception: NumberFormatException"); - - } catch(NumberFormatException e) { - // - // For input string: \"k$\" - // - verifyException("java.lang.NumberFormatException", e); - } - } - - @Test(timeout = 4000) - public void test16() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - msoJavaProperties1.clone(); - msoJavaProperties0.hashCode(); - MsoJavaProperties msoJavaProperties2 = msoJavaProperties1.clone(); - PrivateAccess.setVariable((Class<MsoJavaProperties>) MsoJavaProperties.class, msoJavaProperties0, "msoProperties", (Object) null); - msoJavaProperties1.equals(msoJavaProperties2); - MsoLogger msoLogger0 = AbstractMsoProperties.LOGGER; - // Undeclared exception! - try { - msoJavaProperties0.clone(); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("java.util.Hashtable", e); - } - } - - @Test(timeout = 4000) - public void test18() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - int int0 = msoJavaProperties0.getIntProperty("", 0); - assertEquals(0, int0); - } - - @Test(timeout = 4000) - public void test19() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.setProperty("-6;qct1", ""); - String string0 = msoJavaProperties0.toString(); - assertEquals("Config file null(Timer:0mins):\n-6;qct1=\n\n\n", string0); - } - - @Test(timeout = 4000) - public void test20() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - boolean boolean0 = msoJavaProperties0.equals("APIH_READ_VNFOUTPUT_CLOB_EXCEPTION"); - assertFalse(boolean0); - } - - @Test(timeout = 4000) - public void test21() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - boolean boolean0 = msoJavaProperties0.equals((Object) null); - assertFalse(boolean0); - } - - @Test(timeout = 4000) - public void test22() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - boolean boolean0 = msoJavaProperties0.equals(msoJavaProperties0); - assertTrue(boolean0); - } - - @Test(timeout = 4000) - public void test24() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.setProperty("APIH_READ_VNFOUTPUT_CLOB_EXCEPTION", ""); - // Undeclared exception! - try { - msoJavaProperties0.getEncryptedProperty("APIH_READ_VNFOUTPUT_CLOB_EXCEPTION", ".", ""); - fail("Expecting exception: IllegalArgumentException"); - - } catch(IllegalArgumentException e) { - // - // Empty key - // - verifyException("javax.crypto.spec.SecretKeySpec", e); - } - } - - @Test(timeout = 4000) - public void test25() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - String string0 = msoJavaProperties0.getEncryptedProperty("YhmJSc|~L0$,?/oh", (String) null, "YhmJSc|~L0$,?/oh"); - assertNull(string0); - } - - @Test(timeout = 4000) - public void test26() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.setProperty("M;WrYY%E,;sa&4F", "M;WrYY%E,;sa&4F"); - boolean boolean0 = msoJavaProperties0.getBooleanProperty("M;WrYY%E,;sa&4F", false); - assertFalse(boolean0); - } - - @Test(timeout = 4000) - public void test27() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - boolean boolean0 = msoJavaProperties0.getBooleanProperty("", true); - assertTrue(boolean0); - } - - @Test(timeout = 4000) - public void test28() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.setProperty("M;WrYY%E,;sa&4F", "M;WrYY%E,;sa&4F"); - int int0 = msoJavaProperties0.getIntProperty("M;WrYY%E,;sa&4F", 0); - assertEquals(0, int0); - } - - @Test(timeout = 4000) - public void test29() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.setProperty("", "J6"); - String string0 = msoJavaProperties0.getProperty("", "mso.properties.reload.time.minutes"); - assertNotNull(string0); - assertEquals("J6", string0); - } - /** - * TODO: fails when run using maven, but succeeds when run using eclipse - */ - @Ignore - @Test(timeout = 4000) - public void test30() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - // Undeclared exception! - try { - msoJavaProperties0.reloadPropertiesFile(); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test31() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - assertTrue(msoJavaProperties1.equals((Object)msoJavaProperties0)); - - msoJavaProperties0.setProperty("", ""); - boolean boolean0 = msoJavaProperties0.equals(msoJavaProperties1); - assertFalse(boolean0); - assertFalse(msoJavaProperties1.equals((Object)msoJavaProperties0)); - } - - @Test(timeout = 4000) - public void test32() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - int int0 = msoJavaProperties0.size(); - assertEquals(0, int0); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoJavaPropertiesESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/properties/MsoJavaPropertiesESTestscaffolding.java deleted file mode 100644 index da13dc1d3d..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoJavaPropertiesESTestscaffolding.java +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Scaffolding file used to store all the setups needed to run - * tests automatically generated by EvoSuite - * Mon Nov 14 07:59:01 GMT 2016 - */ - -package org.openecomp.mso.properties; - -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 MsoJavaPropertiesESTestscaffolding { - - @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.properties.MsoJavaProperties"; - 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(MsoJavaPropertiesESTestscaffolding.class.getClassLoader() , - "org.openecomp.mso.properties.AbstractMsoProperties", - "org.openecomp.mso.logger.MsoLogger", - "org.openecomp.mso.logger.MessageEnum", - "com.att.eelf.i18n.EELFResolvableErrorEnum", - "org.openecomp.mso.logger.MsoLogger$ResponseCode", - "org.openecomp.mso.utils.CryptoUtils", - "org.openecomp.mso.entity.MsoRequest", - "org.openecomp.mso.logger.MsoLogger$StatusCode", - "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES", - "com.att.eelf.configuration.EELFManager", - "org.openecomp.mso.logger.MsoLogger$ErrorCode", - "com.att.eelf.configuration.EELFLogger", - "com.att.eelf.i18n.EELFMsgs", - "com.att.eelf.configuration.EELFLogger$Level", - "org.openecomp.mso.properties.MsoJavaProperties", - "org.openecomp.mso.logger.MsoLogger$Catalog", - "com.att.eelf.configuration.SLF4jWrapper", - "com.att.eelf.i18n.EELFResourceManager$1", - "com.att.eelf.i18n.EELFResourceManager" - ); - } - - private static void resetClasses() { - org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(MsoJavaPropertiesESTestscaffolding.class.getClassLoader()); - - org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( - "org.openecomp.mso.logger.MsoLogger$Catalog", - "org.openecomp.mso.logger.MsoLogger", - "com.att.eelf.i18n.EELFResourceManager", - "com.att.eelf.i18n.EELFMsgs", - "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES", - "com.att.eelf.configuration.EELFLogger$Level", - "com.att.eelf.configuration.EELFManager", - "org.openecomp.mso.logger.MessageEnum", - "org.openecomp.mso.properties.AbstractMsoProperties", - "org.openecomp.mso.utils.CryptoUtils" - ); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoJsonPropertiesESTest.java b/common/src/test/java/org/openecomp/mso/properties/MsoJsonPropertiesESTest.java deleted file mode 100644 index 0243c13c7f..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoJsonPropertiesESTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Mon Nov 14 09:04:39 GMT 2016 - */ - -package org.openecomp.mso.properties; - -import static org.evosuite.runtime.EvoAssertions.verifyException; -import static org.junit.Assert.fail; - -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class MsoJsonPropertiesESTest { - - @Ignore - @Test(timeout = 4000) - public void test0() throws Throwable { - MsoJsonProperties msoJsonProperties0 = null; - try { - msoJsonProperties0 = new MsoJsonProperties(); - fail("Expecting exception: VerifyError"); - - } catch(VerifyError e) { - // - // (class: org/codehaus/jackson/map/MapperConfig, method: <clinit> signature: ()V) Bad type in putfield/putstatic - // - verifyException("org.codehaus.jackson.map.ObjectMapper", e); - } - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesExceptionESTest.java b/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesExceptionESTest.java deleted file mode 100644 index c53dd85fb0..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesExceptionESTest.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Mon Nov 14 09:10:06 GMT 2016 - */ - -package org.openecomp.mso.properties; - -import org.junit.Test; -import static org.junit.Assert.*; - -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.junit.runner.RunWith; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class MsoPropertiesExceptionESTest extends MsoPropertiesExceptionESTestscaffolding { - - @Test(timeout = 4000) - public void test0() throws Throwable { - MsoPropertiesException msoPropertiesException0 = new MsoPropertiesException(""); - MsoPropertiesException msoPropertiesException1 = new MsoPropertiesException("l6G(", (Throwable) msoPropertiesException0); - assertFalse(msoPropertiesException1.equals((Object)msoPropertiesException0)); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesExceptionESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesExceptionESTestscaffolding.java deleted file mode 100644 index 379956310b..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesExceptionESTestscaffolding.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Scaffolding file used to store all the setups needed to run - * tests automatically generated by EvoSuite - * Mon Nov 14 09:10:06 GMT 2016 - */ - -package org.openecomp.mso.properties; - -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 MsoPropertiesExceptionESTestscaffolding { - - @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.properties.MsoPropertiesException"; - 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(MsoPropertiesExceptionESTestscaffolding.class.getClassLoader() , - "org.openecomp.mso.properties.MsoPropertiesException" - ); - } - - private static void resetClasses() { - org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(MsoPropertiesExceptionESTestscaffolding.class.getClassLoader()); - - org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( - "org.openecomp.mso.properties.MsoPropertiesException" - ); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesFactoryESTest.java b/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesFactoryESTest.java deleted file mode 100644 index 7ab574569c..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesFactoryESTest.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Mon Nov 14 09:02:51 GMT 2016 - */ - -package org.openecomp.mso.properties; - -import org.junit.Test; -import static org.junit.Assert.*; -import static org.evosuite.runtime.EvoAssertions.*; - -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.evosuite.runtime.PrivateAccess; -import org.junit.runner.RunWith; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class MsoPropertiesFactoryESTest { - - @Test(timeout = 4000) - public void test0() throws Throwable { - MsoPropertiesFactory msoPropertiesFactory0 = new MsoPropertiesFactory(); - // Undeclared exception! - try { - msoPropertiesFactory0.changeMsoPropertiesFilePath((String) null, "Unable to load the MSO properties file because format is not recognized (only .json or .properties): "); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - } - } - - @Test(timeout = 4000) - public void test1() throws Throwable { - MsoPropertiesFactory msoPropertiesFactory0 = new MsoPropertiesFactory(); - msoPropertiesFactory0.removeAllMsoProperties(); - } - - @Test(timeout = 4000) - public void test2() throws Throwable { - MsoPropertiesFactory msoPropertiesFactory0 = new MsoPropertiesFactory(); - try { - msoPropertiesFactory0.getMsoJavaProperties("iz/`I"); - fail("Expecting exception: Exception"); - - } catch(Exception e) { - // - // Mso properties not found in cache:iz/`I - // - verifyException("org.openecomp.mso.properties.MsoPropertiesFactory", e); - } - } - - @Test(timeout = 4000) - public void test3() throws Throwable { - MsoPropertiesFactory msoPropertiesFactory0 = new MsoPropertiesFactory(); - MsoPropertiesParameters msoPropertiesParameters0 = new MsoPropertiesParameters(); - try { - PrivateAccess.callMethod((Class<MsoPropertiesFactory>) MsoPropertiesFactory.class, msoPropertiesFactory0, "createObjectType", (Object) msoPropertiesParameters0, (Class<?>) MsoPropertiesParameters.class, (Object) ":8nnlF[sGvCub6J", (Class<?>) String.class); - fail("Expecting exception: Exception"); - - } catch(Exception e) { - // - // Unable to load the MSO properties file because format is not recognized (only .json or .properties): :8nnlF[sGvCub6J - // - verifyException("org.openecomp.mso.properties.MsoPropertiesFactory", e); - } - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesParametersESTest.java b/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesParametersESTest.java deleted file mode 100644 index 9579b3b367..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesParametersESTest.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Mon Nov 14 09:09:37 GMT 2016 - */ - -package org.openecomp.mso.properties; - -import org.junit.Test; -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.junit.runner.RunWith; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class MsoPropertiesParametersESTest extends MsoPropertiesParametersESTestscaffolding { - - @Test(timeout = 4000) - public void test0() throws Throwable { - MsoPropertiesParameters msoPropertiesParameters0 = new MsoPropertiesParameters(); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesParametersESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesParametersESTestscaffolding.java deleted file mode 100644 index fec0b9ecf1..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoPropertiesParametersESTestscaffolding.java +++ /dev/null @@ -1,129 +0,0 @@ -/** - * Scaffolding file used to store all the setups needed to run - * tests automatically generated by EvoSuite - * Mon Nov 14 09:09:37 GMT 2016 - */ - -package org.openecomp.mso.properties; - -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 MsoPropertiesParametersESTestscaffolding { - - @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.properties.MsoPropertiesParameters"; - 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(MsoPropertiesParametersESTestscaffolding.class.getClassLoader() , - "org.openecomp.mso.properties.MsoPropertiesParameters" - ); - } - - private static void resetClasses() { - org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(MsoPropertiesParametersESTestscaffolding.class.getClassLoader()); - - org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( - "org.openecomp.mso.logger.MsoLogger$Catalog", - "org.openecomp.mso.logger.MsoLogger", - "com.att.eelf.i18n.EELFResourceManager", - "com.att.eelf.i18n.EELFMsgs", - "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES", - "org.apache.xerces.jaxp.SAXParserFactoryImpl", - "org.apache.xerces.jaxp.SAXParserImpl", - "org.apache.xerces.parsers.XMLParser", - "org.apache.xerces.parsers.AbstractSAXParser", - "org.apache.xerces.parsers.SAXParser", - "org.apache.xerces.parsers.ObjectFactory", - "org.apache.xerces.util.ParserConfigurationSettings", - "org.apache.xerces.parsers.XML11Configuration", - "org.apache.xerces.parsers.XIncludeAwareParserConfiguration", - "org.apache.xerces.util.SymbolTable", - "org.apache.xerces.impl.XMLEntityManager", - "org.apache.xerces.util.AugmentationsImpl$SmallContainer", - "org.apache.xerces.impl.XMLEntityManager$ByteBufferPool", - "org.apache.xerces.impl.XMLEntityManager$CharacterBufferPool", - "org.apache.xerces.impl.XMLEntityScanner$1", - "org.apache.xerces.impl.XMLEntityScanner", - "org.apache.xerces.impl.XMLErrorReporter", - "org.apache.xerces.impl.XMLScanner", - "org.apache.xerces.impl.XMLDocumentFragmentScannerImpl", - "org.apache.xerces.impl.XMLDocumentScannerImpl", - "org.apache.xerces.util.XMLStringBuffer", - "org.apache.xerces.util.XMLAttributesImpl", - "org.apache.xerces.impl.XMLDTDScannerImpl", - "org.apache.xerces.impl.dtd.XMLDTDProcessor", - "org.apache.xerces.impl.dtd.XMLDTDValidator", - "org.apache.xerces.impl.validation.ValidationState", - "org.apache.xerces.impl.dtd.XMLElementDecl", - "org.apache.xerces.impl.dtd.XMLSimpleType", - "org.apache.xerces.impl.dv.DTDDVFactory", - "org.apache.xerces.impl.dv.ObjectFactory", - "org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl", - "org.apache.xerces.impl.XMLVersionDetector", - "org.apache.xerces.impl.msg.XMLMessageFormatter", - "org.apache.xerces.impl.io.UTF8Reader", - "org.apache.xerces.util.XMLSymbols", - "org.apache.xerces.xni.NamespaceContext", - "org.apache.xerces.util.XMLChar", - "org.apache.xerces.impl.Constants", - "com.att.eelf.configuration.EELFLogger$Level", - "com.att.eelf.configuration.EELFManager", - "org.openecomp.mso.logger.MessageEnum", - "org.openecomp.mso.properties.AbstractMsoProperties" - ); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoPropertyInitializerESTest.java b/common/src/test/java/org/openecomp/mso/properties/MsoPropertyInitializerESTest.java deleted file mode 100644 index a7efa76b1b..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoPropertyInitializerESTest.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Mon Nov 14 08:01:07 GMT 2016 - */ - -package org.openecomp.mso.properties; - -import org.junit.Test; -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.junit.runner.RunWith; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class MsoPropertyInitializerESTest extends MsoPropertyInitializerESTestscaffolding { - - @Test(timeout = 4000) - public void test0() throws Throwable { - MsoPropertyInitializer msoPropertyInitializer0 = new MsoPropertyInitializer(); - } -} diff --git a/common/src/test/java/org/openecomp/mso/properties/MsoPropertyInitializerESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/properties/MsoPropertyInitializerESTestscaffolding.java deleted file mode 100644 index 9a056fb576..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/MsoPropertyInitializerESTestscaffolding.java +++ /dev/null @@ -1,284 +0,0 @@ -/** - * Scaffolding file used to store all the setups needed to run - * tests automatically generated by EvoSuite - * Mon Nov 14 08:01:07 GMT 2016 - */ - -package org.openecomp.mso.properties; - -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 MsoPropertyInitializerESTestscaffolding { - - @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.properties.MsoPropertyInitializer"; - 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(MsoPropertyInitializerESTestscaffolding.class.getClassLoader() , - "org.openecomp.mso.properties.AbstractMsoProperties", - "org.apache.xerces.xni.parser.XMLDTDContentModelFilter", - "org.apache.xerces.xs.PSVIProvider", - "org.apache.xerces.impl.XMLEntityManager$ByteBufferPool", - "org.apache.xerces.impl.dtd.XMLEntityDecl", - "org.apache.xerces.xs.ItemPSVI", - "org.apache.xerces.xni.parser.XMLEntityResolver", - "org.apache.xerces.impl.dtd.XMLNSDTDValidator", - "org.apache.xerces.impl.XMLDTDScannerImpl", - "org.apache.xerces.parsers.ObjectFactory", - "org.apache.xerces.xni.parser.XMLConfigurationException", - "org.apache.xerces.impl.XML11NSDocumentScannerImpl", - "org.apache.xerces.impl.XMLEntityManager$CharacterBufferPool", - "org.apache.xerces.parsers.SAXParser", - "com.att.eelf.i18n.EELFResolvableErrorEnum", - "org.apache.xerces.xni.XMLResourceIdentifier", - "org.apache.xerces.impl.XMLEntityManager$RewindableInputStream", - "org.apache.xerces.impl.XMLEntityManager", - "org.apache.xerces.impl.dtd.XMLDTDDescription", - "org.apache.xerces.xni.parser.XMLInputSource", - "com.att.eelf.i18n.EELFMsgs", - "org.apache.xerces.xni.parser.XMLComponentManager", - "com.att.eelf.configuration.EELFLogger$Level", - "org.apache.xerces.impl.io.UTF8Reader", - "org.apache.xerces.impl.dv.InvalidDatatypeValueException", - "org.apache.xerces.jaxp.UnparsedEntityHandler", - "org.apache.xerces.parsers.AbstractXMLDocumentParser", - "org.apache.xerces.impl.XMLScanner", - "org.apache.xerces.impl.dtd.XMLSimpleType", - "org.apache.xerces.impl.XML11DocumentScannerImpl", - "org.apache.xerces.xni.parser.XMLParseException", - "org.apache.xerces.util.AugmentationsImpl$AugmentationsItemsContainer", - "org.apache.xerces.impl.XMLEntityScanner", - "org.apache.xerces.util.URI$MalformedURIException", - "org.apache.xerces.util.XMLChar", - "org.apache.xerces.impl.XMLNSDocumentScannerImpl", - "org.apache.xerces.impl.XML11DTDScannerImpl", - "org.apache.xerces.util.URI", - "org.apache.xerces.xni.parser.XMLDocumentFilter", - "org.apache.xerces.xni.parser.XMLDTDSource", - "org.apache.xerces.impl.dtd.XMLElementDecl", - "org.apache.xerces.impl.dtd.XMLAttributeDecl", - "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES", - "org.apache.xerces.xni.grammars.Grammar", - "org.apache.xerces.parsers.XMLParser", - "org.apache.xerces.impl.dtd.models.ContentModelValidator", - "com.att.eelf.configuration.EELFLogger", - "org.apache.xerces.xni.grammars.XMLGrammarLoader", - "org.apache.xerces.xni.XMLDocumentHandler", - "org.openecomp.mso.properties.MsoJavaProperties", - "org.apache.xerces.util.SymbolTable", - "org.apache.xerces.impl.io.UCSReader", - "org.apache.xerces.impl.XMLEntityManager$CharacterBuffer", - "org.apache.xerces.impl.io.Latin1Reader", - "org.apache.xerces.impl.dv.ValidationContext", - "org.apache.xerces.impl.dtd.XMLDTDValidator", - "org.apache.xerces.impl.dtd.XML11NSDTDValidator", - "org.apache.xerces.impl.validation.ValidationState", - "org.apache.xerces.impl.XMLEntityManager$Entity", - "org.apache.xerces.util.XMLResourceIdentifierImpl", - "org.apache.xerces.util.AugmentationsImpl", - "org.apache.xerces.impl.dv.ObjectFactory", - "org.apache.xerces.impl.dv.DatatypeValidator", - "org.apache.xerces.xni.NamespaceContext", - "org.apache.xerces.impl.dtd.XMLDTDLoader", - "org.apache.xerces.jaxp.SAXParserImpl", - "org.apache.xerces.util.XMLSymbols", - "org.apache.xerces.parsers.ObjectFactory$ConfigurationError", - "org.apache.xerces.xni.grammars.XMLGrammarDescription", - "org.apache.xerces.xni.parser.XMLErrorHandler", - "org.apache.xerces.impl.io.ASCIIReader", - "org.apache.xerces.util.MessageFormatter", - "org.openecomp.mso.properties.MsoPropertiesParameters", - "org.apache.xerces.impl.dtd.XMLDTDProcessor", - "org.apache.xerces.impl.XMLDocumentFragmentScannerImpl", - "org.apache.xerces.xni.parser.XMLDTDScanner", - "org.openecomp.mso.logger.MsoLogger$ErrorCode", - "org.apache.xerces.xni.XMLAttributes", - "org.apache.xerces.impl.io.MalformedByteSequenceException", - "org.apache.xerces.impl.Constants$ArrayEnumeration", - "org.apache.xerces.impl.XML11EntityScanner", - "org.apache.xerces.impl.dtd.DTDGrammar", - "org.apache.xerces.impl.dv.DTDDVFactory", - "com.att.eelf.configuration.SLF4jWrapper", - "org.openecomp.mso.properties.MsoPropertiesException", - "org.apache.xerces.impl.validation.ValidationManager", - "org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl", - "org.apache.xerces.xni.XNIException", - "org.apache.xerces.impl.dtd.XMLContentSpec", - "org.openecomp.mso.logger.MsoLogger", - "org.apache.xerces.xs.AttributePSVI", - "org.apache.xerces.impl.dtd.DTDGrammarBucket", - "org.apache.xerces.impl.msg.XMLMessageFormatter", - "org.apache.xerces.xni.parser.XMLDocumentScanner", - "org.apache.xerces.impl.XMLVersionDetector", - "org.apache.xerces.impl.XMLDocumentScannerImpl", - "org.apache.xerces.xni.parser.XMLPullParserConfiguration", - "org.apache.xerces.xni.parser.XMLDocumentSource", - "org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Dispatcher", - "org.openecomp.mso.properties.MsoPropertiesFactory", - "org.apache.xerces.xni.XMLDTDContentModelHandler", - "org.apache.xerces.impl.xs.XMLSchemaValidator", - "org.openecomp.mso.logger.MsoLogger$Catalog", - "org.apache.xerces.xni.grammars.XMLDTDDescription", - "org.apache.xerces.util.AugmentationsImpl$SmallContainer", - "org.apache.xerces.impl.XMLErrorReporter", - "org.apache.xerces.xni.QName", - "org.apache.xerces.jaxp.TeeXMLDocumentFilterImpl", - "org.apache.xerces.util.XMLAttributesImpl", - "org.apache.xerces.impl.Constants", - "org.apache.xerces.util.XMLStringBuffer", - "org.apache.xerces.impl.XMLEntityManager$InternalEntity", - "org.apache.xerces.jaxp.JAXPConstants", - "org.openecomp.mso.properties.MsoPropertiesParameters$MsoPropertiesType", - "org.apache.xerces.impl.RevalidationHandler", - "org.apache.xerces.xni.parser.XMLParserConfiguration", - "org.apache.xerces.xni.XMLString", - "org.apache.xerces.impl.dv.DVFactoryException", - "org.apache.xerces.impl.dv.DatatypeException", - "org.apache.xerces.parsers.XML11Configurable", - "org.apache.xerces.util.AugmentationsImpl$LargeContainer", - "org.apache.xerces.impl.dtd.BalancedDTDGrammar", - "org.apache.xerces.parsers.XIncludeAwareParserConfiguration", - "org.apache.xerces.xni.XMLDTDHandler", - "org.apache.xerces.impl.dtd.XML11DTDProcessor", - "org.apache.xerces.parsers.XML11Configuration", - "org.apache.xerces.impl.dtd.XMLDTDValidatorFilter", - "org.apache.xerces.impl.xs.identity.FieldActivator", - "org.apache.xerces.impl.XMLEntityScanner$1", - "com.att.eelf.i18n.EELFResourceManager", - "org.apache.xerces.jaxp.SAXParserFactoryImpl", - "org.apache.xerces.xs.ElementPSVI", - "org.apache.xerces.parsers.AbstractSAXParser", - "org.apache.xerces.xni.parser.XMLDTDFilter", - "org.apache.xerces.xni.parser.XMLDTDContentModelSource", - "org.openecomp.mso.logger.MessageEnum", - "org.openecomp.mso.logger.MsoLogger$ResponseCode", - "org.openecomp.mso.properties.MsoJsonProperties", - "org.openecomp.mso.entity.MsoRequest", - "org.openecomp.mso.properties.MsoPropertyInitializer", - "org.openecomp.mso.logger.MsoLogger$StatusCode", - "org.apache.xerces.xni.XMLLocator", - "com.att.eelf.configuration.EELFManager", - "org.apache.xerces.impl.validation.EntityState", - "org.apache.xerces.impl.XMLEntityManager$ExternalEntity", - "org.apache.xerces.util.ParserConfigurationSettings", - "org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser", - "org.apache.xerces.xni.Augmentations", - "org.apache.xerces.impl.XMLEntityHandler", - "org.apache.xerces.impl.dv.ObjectFactory$ConfigurationError", - "org.apache.xerces.xni.parser.XMLComponent", - "com.att.eelf.i18n.EELFResourceManager$1", - "org.apache.xerces.impl.dtd.XML11DTDValidator", - "org.apache.xerces.impl.XMLEntityManager$ScannedEntity", - "org.apache.xerces.jaxp.JAXPValidatorComponent" - ); - } - - private static void resetClasses() { - org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(MsoPropertyInitializerESTestscaffolding.class.getClassLoader()); - - org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( - "com.att.eelf.i18n.EELFResourceManager", - "org.openecomp.mso.logger.MessageEnum", - "org.openecomp.mso.logger.MsoLogger$Catalog", - "org.openecomp.mso.logger.MsoLogger$ErrorCode", - "org.openecomp.mso.logger.MsoLogger", - "com.att.eelf.i18n.EELFMsgs", - "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES", - "org.apache.xerces.jaxp.SAXParserFactoryImpl", - "org.apache.xerces.jaxp.SAXParserImpl", - "org.apache.xerces.parsers.XMLParser", - "org.apache.xerces.parsers.AbstractSAXParser", - "org.apache.xerces.parsers.SAXParser", - "org.apache.xerces.parsers.ObjectFactory", - "org.apache.xerces.util.ParserConfigurationSettings", - "org.apache.xerces.parsers.XML11Configuration", - "org.apache.xerces.parsers.XIncludeAwareParserConfiguration", - "org.apache.xerces.util.SymbolTable", - "org.apache.xerces.impl.XMLEntityManager", - "org.apache.xerces.util.AugmentationsImpl$SmallContainer", - "org.apache.xerces.impl.XMLEntityManager$ByteBufferPool", - "org.apache.xerces.impl.XMLEntityManager$CharacterBufferPool", - "org.apache.xerces.impl.XMLEntityScanner$1", - "org.apache.xerces.impl.XMLEntityScanner", - "org.apache.xerces.impl.XMLErrorReporter", - "org.apache.xerces.impl.XMLScanner", - "org.apache.xerces.impl.XMLDocumentFragmentScannerImpl", - "org.apache.xerces.impl.XMLDocumentScannerImpl", - "org.apache.xerces.util.XMLStringBuffer", - "org.apache.xerces.util.XMLAttributesImpl", - "org.apache.xerces.impl.XMLDTDScannerImpl", - "org.apache.xerces.impl.dtd.XMLDTDProcessor", - "org.apache.xerces.impl.dtd.XMLDTDValidator", - "org.apache.xerces.impl.validation.ValidationState", - "org.apache.xerces.impl.dtd.XMLElementDecl", - "org.apache.xerces.impl.dtd.XMLSimpleType", - "org.apache.xerces.impl.dv.DTDDVFactory", - "org.apache.xerces.impl.dv.ObjectFactory", - "org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl", - "org.apache.xerces.impl.XMLVersionDetector", - "org.apache.xerces.impl.msg.XMLMessageFormatter", - "org.apache.xerces.impl.io.UTF8Reader", - "org.apache.xerces.util.XMLSymbols", - "org.apache.xerces.xni.NamespaceContext", - "org.apache.xerces.util.XMLChar", - "org.apache.xerces.impl.Constants", - "com.att.eelf.configuration.EELFLogger$Level", - "com.att.eelf.configuration.EELFManager", - "org.openecomp.mso.properties.MsoPropertiesFactory" - ); - } -} |