aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/test/java
diff options
context:
space:
mode:
authorArthur Martella <amartell@research.att.com>2017-09-08 13:27:46 -0400
committerArthur Martella <amartell@research.att.com>2017-09-08 13:32:24 -0400
commit62cd6aaaf74aa91ee0037c0e155c8e7284f07567 (patch)
tree68c0c53c9156f5aa3c6b3599ac940770f986633d /common/src/test/java
parentfa1a211d28a912892fcd888569df033900eb01ee (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 'common/src/test/java')
-rw-r--r--common/src/test/java/org/openecomp/mso/adapter_utils/tests/MsoPropertiesFactoryTest.java4
-rw-r--r--common/src/test/java/org/openecomp/mso/entity/MsoRequestESTest.java65
-rw-r--r--common/src/test/java/org/openecomp/mso/entity/MsoRequestESTestscaffolding.java78
-rw-r--r--common/src/test/java/org/openecomp/mso/logger/LogFilterESTest.java191
-rw-r--r--common/src/test/java/org/openecomp/mso/logger/LogFilterESTestscaffolding.java78
-rw-r--r--common/src/test/java/org/openecomp/mso/logger/MsoAlarmLoggerESTestscaffolding.java90
-rw-r--r--common/src/test/java/org/openecomp/mso/logger/MsoLogInitializerESTest.java37
-rw-r--r--common/src/test/java/org/openecomp/mso/logger/MsoLogInitializerESTestscaffolding.java145
-rw-r--r--common/src/test/java/org/openecomp/mso/logger/MsoLoggingServletESTest.java34
-rw-r--r--common/src/test/java/org/openecomp/mso/logger/MsoLoggingServletESTestscaffolding.java337
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java151
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTestscaffolding.java120
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoJavaPropertiesESTest.java358
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoJavaPropertiesESTestscaffolding.java110
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoJsonPropertiesESTest.java35
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoPropertiesExceptionESTest.java24
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoPropertiesExceptionESTestscaffolding.java83
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoPropertiesFactoryESTest.java71
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoPropertiesParametersESTest.java20
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoPropertiesParametersESTestscaffolding.java129
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoPropertyInitializerESTest.java20
-rw-r--r--common/src/test/java/org/openecomp/mso/properties/MsoPropertyInitializerESTestscaffolding.java284
-rw-r--r--common/src/test/java/org/openecomp/mso/utils/CheckResultsESTest.java124
-rw-r--r--common/src/test/java/org/openecomp/mso/utils/CheckResultsESTestscaffolding.java79
-rw-r--r--common/src/test/java/org/openecomp/mso/utils/CryptoUtilsESTest.java177
-rw-r--r--common/src/test/java/org/openecomp/mso/utils/CryptoUtilsESTestscaffolding.java83
-rw-r--r--common/src/test/java/org/openecomp/mso/utils/UUIDCheckerESTest.java34
-rw-r--r--common/src/test/java/org/openecomp/mso/utils/UUIDCheckerESTestscaffolding.java94
28 files changed, 2 insertions, 3053 deletions
diff --git a/common/src/test/java/org/openecomp/mso/adapter_utils/tests/MsoPropertiesFactoryTest.java b/common/src/test/java/org/openecomp/mso/adapter_utils/tests/MsoPropertiesFactoryTest.java
index b0290b088e..9a85797111 100644
--- a/common/src/test/java/org/openecomp/mso/adapter_utils/tests/MsoPropertiesFactoryTest.java
+++ b/common/src/test/java/org/openecomp/mso/adapter_utils/tests/MsoPropertiesFactoryTest.java
@@ -28,17 +28,17 @@ import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import org.codehaus.jackson.JsonNode;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
-
import org.openecomp.mso.properties.MsoJavaProperties;
import org.openecomp.mso.properties.MsoJsonProperties;
import org.openecomp.mso.properties.MsoPropertiesException;
import org.openecomp.mso.properties.MsoPropertiesFactory;
+import com.fasterxml.jackson.databind.JsonNode;
+
/**
* This class implements test methods of the MsoPropertiesFactory features.
*
diff --git a/common/src/test/java/org/openecomp/mso/entity/MsoRequestESTest.java b/common/src/test/java/org/openecomp/mso/entity/MsoRequestESTest.java
deleted file mode 100644
index a4fe1d361b..0000000000
--- a/common/src/test/java/org/openecomp/mso/entity/MsoRequestESTest.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Mon Nov 14 09:09:00 GMT 2016
- */
-
-package org.openecomp.mso.entity;
-
-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 MsoRequestESTest extends MsoRequestESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test0() throws Throwable {
- MsoRequest msoRequest0 = new MsoRequest();
- msoRequest0.setServiceInstanceId("B1!G~O TIP1Auoc}pE");
- String string0 = msoRequest0.getServiceInstanceId();
- assertEquals("B1!G~O TIP1Auoc}pE", string0);
- }
-
- @Test(timeout = 4000)
- public void test1() throws Throwable {
- MsoRequest msoRequest0 = new MsoRequest();
- msoRequest0.setServiceInstanceId("");
- String string0 = msoRequest0.getServiceInstanceId();
- assertEquals("", string0);
- }
-
- @Test(timeout = 4000)
- public void test2() throws Throwable {
- MsoRequest msoRequest0 = new MsoRequest();
- String string0 = msoRequest0.getRequestId();
- assertNull(string0);
- }
-
- @Test(timeout = 4000)
- public void test3() throws Throwable {
- MsoRequest msoRequest0 = new MsoRequest("'SJ", "XUQ4Vd$ppTT4");
- assertEquals("'SJ", msoRequest0.getRequestId());
-
- msoRequest0.setRequestId("");
- msoRequest0.getRequestId();
- assertEquals("XUQ4Vd$ppTT4", msoRequest0.getServiceInstanceId());
- }
-
- @Test(timeout = 4000)
- public void test4() throws Throwable {
- MsoRequest msoRequest0 = new MsoRequest("'SJ", "XUQ4Vd$ppTT4");
- String string0 = msoRequest0.getRequestId();
- assertEquals("XUQ4Vd$ppTT4", msoRequest0.getServiceInstanceId());
- assertEquals("'SJ", string0);
- }
-
- @Test(timeout = 4000)
- public void test5() throws Throwable {
- MsoRequest msoRequest0 = new MsoRequest();
- String string0 = msoRequest0.getServiceInstanceId();
- assertNull(string0);
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/entity/MsoRequestESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/entity/MsoRequestESTestscaffolding.java
deleted file mode 100644
index 9ac7ad816d..0000000000
--- a/common/src/test/java/org/openecomp/mso/entity/MsoRequestESTestscaffolding.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Mon Nov 14 09:09:00 GMT 2016
- */
-
-package org.openecomp.mso.entity;
-
-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 MsoRequestESTestscaffolding {
-
- @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.entity.MsoRequest";
- 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(MsoRequestESTestscaffolding.class.getClassLoader() ,
- "org.openecomp.mso.entity.MsoRequest"
- );
- }
-
- private static void resetClasses() {
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/logger/LogFilterESTest.java b/common/src/test/java/org/openecomp/mso/logger/LogFilterESTest.java
deleted file mode 100644
index 22936857c6..0000000000
--- a/common/src/test/java/org/openecomp/mso/logger/LogFilterESTest.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Mon Nov 14 09:08:24 GMT 2016
- */
-
-package org.openecomp.mso.logger;
-
-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.security.Principal;
-import javax.servlet.AsyncContext;
-import javax.servlet.FilterChain;
-import javax.servlet.FilterConfig;
-import javax.servlet.ServletRequest;
-import javax.servlet.ServletResponse;
-import javax.servlet.ServletResponseWrapper;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletRequestWrapper;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpServletResponseWrapper;
-import org.evosuite.runtime.EvoRunner;
-import org.evosuite.runtime.EvoRunnerParameters;
-import org.evosuite.runtime.ViolatedAssumptionAnswer;
-import org.junit.runner.RunWith;
-
-@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
-public class LogFilterESTest extends LogFilterESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test0() throws Throwable {
- LogFilter logFilter0 = new LogFilter();
- FilterChain filterChain0 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- // Undeclared exception!
- try {
- logFilter0.doFilter((ServletRequest) null, (ServletResponse) null, filterChain0);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.logger.LogFilter", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test1() throws Throwable {
- LogFilter logFilter0 = new LogFilter();
- ServletRequest servletRequest0 = mock(ServletRequest.class, new ViolatedAssumptionAnswer());
- ServletResponse servletResponse0 = mock(ServletResponse.class, new ViolatedAssumptionAnswer());
- FilterChain filterChain0 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- // Undeclared exception!
- try {
- logFilter0.doFilter(servletRequest0, servletResponse0, filterChain0);
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // $javax.servlet.ServletRequest$$EnhancerByMockitoWithCGLIB$$d677bdba cannot be cast to javax.servlet.http.HttpServletRequest
- //
- verifyException("org.openecomp.mso.logger.LogFilter", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test2() throws Throwable {
- LogFilter logFilter0 = new LogFilter();
- FilterConfig filterConfig0 = mock(FilterConfig.class, new ViolatedAssumptionAnswer());
- logFilter0.init(filterConfig0);
- ServletRequest servletRequest0 = mock(ServletRequest.class, new ViolatedAssumptionAnswer());
- ServletResponse servletResponse0 = mock(ServletResponse.class, new ViolatedAssumptionAnswer());
- FilterChain filterChain0 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- // Undeclared exception!
- try {
- logFilter0.doFilter(servletRequest0, servletResponse0, filterChain0);
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // $javax.servlet.ServletRequest$$EnhancerByMockitoWithCGLIB$$d677bdba cannot be cast to javax.servlet.http.HttpServletRequest
- //
- verifyException("org.openecomp.mso.logger.LogFilter", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test3() throws Throwable {
- LogFilter logFilter0 = new LogFilter();
- FilterConfig filterConfig0 = mock(FilterConfig.class, new ViolatedAssumptionAnswer());
- logFilter0.init(filterConfig0);
- ServletRequest servletRequest0 = null;
- ServletResponse servletResponse0 = mock(ServletResponse.class, new ViolatedAssumptionAnswer());
- ServletResponse servletResponse1 = mock(ServletResponse.class, new ViolatedAssumptionAnswer());
- FilterChain filterChain0 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- // Undeclared exception!
- try {
- logFilter0.doFilter((ServletRequest) null, servletResponse1, filterChain0);
- fail("Expecting exception: ClassCastException");
-
- } catch(ClassCastException e) {
- //
- // $javax.servlet.ServletResponse$$EnhancerByMockitoWithCGLIB$$b9bd7b44 cannot be cast to javax.servlet.http.HttpServletResponse
- //
- verifyException("org.openecomp.mso.logger.LogFilter", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test4() throws Throwable {
- LogFilter logFilter0 = new LogFilter();
- logFilter0.destroy();
- HttpServletRequest httpServletRequest0 = mock(HttpServletRequest.class, new ViolatedAssumptionAnswer());
- HttpServletRequestWrapper httpServletRequestWrapper0 = new HttpServletRequestWrapper(httpServletRequest0);
- ServletResponse servletResponse0 = null;
- ServletResponseWrapper servletResponseWrapper0 = null;
- try {
- servletResponseWrapper0 = new ServletResponseWrapper((ServletResponse) null);
- fail("Expecting exception: IllegalArgumentException");
-
- } catch(IllegalArgumentException e) {
- //
- // Response cannot be null
- //
- verifyException("javax.servlet.ServletResponseWrapper", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test5() throws Throwable {
- LogFilter logFilter0 = new LogFilter();
- HttpServletRequest httpServletRequest0 = mock(HttpServletRequest.class, new ViolatedAssumptionAnswer());
- doReturn((String) null, (String) null, (String) null, (String) null, (String) null).when(httpServletRequest0).getRemoteAddr();
- doReturn((AsyncContext) null).when(httpServletRequest0).startAsync(any(javax.servlet.ServletRequest.class) , any(javax.servlet.ServletResponse.class));
- doReturn((Principal) null, (Principal) null, (Principal) null, (Principal) null, (Principal) null).when(httpServletRequest0).getUserPrincipal();
- HttpServletRequestWrapper httpServletRequestWrapper0 = new HttpServletRequestWrapper(httpServletRequest0);
- ServletRequest servletRequest0 = httpServletRequestWrapper0.getRequest();
- HttpServletResponse httpServletResponse0 = mock(HttpServletResponse.class, new ViolatedAssumptionAnswer());
- doReturn((String) null).when(httpServletResponse0).getCharacterEncoding();
- HttpServletResponseWrapper httpServletResponseWrapper0 = new HttpServletResponseWrapper(httpServletResponse0);
- FilterChain filterChain0 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- logFilter0.doFilter(servletRequest0, httpServletResponseWrapper0, filterChain0);
- logFilter0.destroy();
- LogFilter logFilter1 = new LogFilter();
- HttpServletResponseWrapper httpServletResponseWrapper1 = new HttpServletResponseWrapper((HttpServletResponse) httpServletResponseWrapper0);
- FilterChain filterChain1 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- logFilter0.doFilter(servletRequest0, httpServletResponseWrapper0, filterChain1);
- FilterChain filterChain2 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- logFilter1.doFilter(servletRequest0, httpServletResponseWrapper1, filterChain2);
- HttpServletResponseWrapper httpServletResponseWrapper2 = (HttpServletResponseWrapper)httpServletResponseWrapper1.getResponse();
- httpServletResponseWrapper1.getCharacterEncoding();
- httpServletResponseWrapper1.flushBuffer();
- httpServletRequestWrapper0.startAsync(servletRequest0, (ServletResponse) httpServletResponseWrapper1);
- FilterChain filterChain3 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- logFilter1.doFilter(servletRequest0, httpServletResponseWrapper2, filterChain3);
- FilterChain filterChain4 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- FilterChain filterChain5 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- logFilter1.doFilter(httpServletRequestWrapper0, httpServletResponseWrapper1, filterChain5);
- logFilter1.doFilter(servletRequest0, httpServletResponseWrapper0, filterChain4);
- logFilter0.destroy();
- FilterConfig filterConfig0 = mock(FilterConfig.class, new ViolatedAssumptionAnswer());
- logFilter1.init(filterConfig0);
- LogFilter logFilter2 = new LogFilter();
- FilterConfig filterConfig1 = mock(FilterConfig.class, new ViolatedAssumptionAnswer());
- logFilter1.init(filterConfig1);
- logFilter0.destroy();
- assertFalse(logFilter0.equals((Object)logFilter1));
- }
-
- @Test(timeout = 4000)
- public void test6() throws Throwable {
- LogFilter logFilter0 = new LogFilter();
- Principal principal0 = mock(Principal.class, new ViolatedAssumptionAnswer());
- doReturn((String) null).when(principal0).getName();
- HttpServletRequest httpServletRequest0 = mock(HttpServletRequest.class, new ViolatedAssumptionAnswer());
- doReturn("$PJ-hW?").when(httpServletRequest0).getRemoteAddr();
- doReturn(principal0).when(httpServletRequest0).getUserPrincipal();
- HttpServletRequestWrapper httpServletRequestWrapper0 = new HttpServletRequestWrapper(httpServletRequest0);
- ServletRequest servletRequest0 = httpServletRequestWrapper0.getRequest();
- HttpServletResponse httpServletResponse0 = mock(HttpServletResponse.class, new ViolatedAssumptionAnswer());
- HttpServletResponseWrapper httpServletResponseWrapper0 = new HttpServletResponseWrapper(httpServletResponse0);
- ServletResponse servletResponse0 = httpServletResponseWrapper0.getResponse();
- FilterChain filterChain0 = mock(FilterChain.class, new ViolatedAssumptionAnswer());
- logFilter0.doFilter(servletRequest0, servletResponse0, filterChain0);
- FilterConfig filterConfig0 = mock(FilterConfig.class, new ViolatedAssumptionAnswer());
- logFilter0.init(filterConfig0);
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/logger/LogFilterESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/logger/LogFilterESTestscaffolding.java
deleted file mode 100644
index 50487634d4..0000000000
--- a/common/src/test/java/org/openecomp/mso/logger/LogFilterESTestscaffolding.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Mon Nov 14 09:08:24 GMT 2016
- */
-
-package org.openecomp.mso.logger;
-
-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 LogFilterESTestscaffolding {
-
- @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.logger.LogFilter";
- 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(LogFilterESTestscaffolding.class.getClassLoader() ,
- "org.openecomp.mso.logger.LogFilter"
- );
- }
-
- private static void resetClasses() {
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/logger/MsoAlarmLoggerESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/logger/MsoAlarmLoggerESTestscaffolding.java
deleted file mode 100644
index 320b7557b7..0000000000
--- a/common/src/test/java/org/openecomp/mso/logger/MsoAlarmLoggerESTestscaffolding.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Mon Nov 14 09:05:53 GMT 2016
- */
-
-package org.openecomp.mso.logger;
-
-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 java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-
-@EvoSuiteClassExclude
-public class MsoAlarmLoggerESTestscaffolding {
-
- @org.junit.Rule
- public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
-
- protected static ExecutorService executor;
-
- 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.logger.MsoAlarmLogger";
- 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();
- executor = Executors.newCachedThreadPool();
- org.evosuite.runtime.classhandling.JDKClassResetter.init();
- initializeClasses();
- org.evosuite.runtime.Runtime.getInstance().resetRuntime();
- }
-
- @AfterClass
- public static void clearEvoSuiteFramework(){
- Sandbox.resetDefaultSecurityManager();
- executor.shutdownNow();
- 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(MsoAlarmLoggerESTestscaffolding.class.getClassLoader() ,
- "org.openecomp.mso.logger.MsoAlarmLogger"
- );
- }
-
- private static void resetClasses() {
- org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(MsoAlarmLoggerESTestscaffolding.class.getClassLoader());
-
- org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
- "org.openecomp.mso.logger.MsoAlarmLogger"
- );
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/logger/MsoLogInitializerESTest.java b/common/src/test/java/org/openecomp/mso/logger/MsoLogInitializerESTest.java
deleted file mode 100644
index 97058d5df3..0000000000
--- a/common/src/test/java/org/openecomp/mso/logger/MsoLogInitializerESTest.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Mon Nov 14 09:06:06 GMT 2016
- */
-
-package org.openecomp.mso.logger;
-
-import org.junit.Test;
-import static org.junit.Assert.*;
-import static org.evosuite.shaded.org.mockito.Mockito.*;
-
-import javax.servlet.ServletContext;
-import javax.servlet.ServletContextEvent;
-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;
-
-@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
-public class MsoLogInitializerESTest extends MsoLogInitializerESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test0() throws Throwable {
- MsoLogInitializer msoLogInitializer0 = new MsoLogInitializer();
- ServletContextEvent servletContextEvent0 = mock(ServletContextEvent.class, new ViolatedAssumptionAnswer());
- doReturn((ServletContext) null).when(servletContextEvent0).getServletContext();
- msoLogInitializer0.contextInitialized(servletContextEvent0);
- }
-
- @Test(timeout = 4000)
- public void test1() throws Throwable {
- MsoLogInitializer msoLogInitializer0 = new MsoLogInitializer();
- Boolean boolean0 = (Boolean)PrivateAccess.callMethod((Class<MsoLogInitializer>) MsoLogInitializer.class, msoLogInitializer0, "fileIsReadable", (Object) "", (Class<?>) String.class);
- assertTrue(boolean0);
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/logger/MsoLogInitializerESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/logger/MsoLogInitializerESTestscaffolding.java
deleted file mode 100644
index c0139549fb..0000000000
--- a/common/src/test/java/org/openecomp/mso/logger/MsoLogInitializerESTestscaffolding.java
+++ /dev/null
@@ -1,145 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Mon Nov 14 09:06:06 GMT 2016
- */
-
-package org.openecomp.mso.logger;
-
-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 MsoLogInitializerESTestscaffolding {
-
- @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.logger.MsoLogInitializer";
- 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(MsoLogInitializerESTestscaffolding.class.getClassLoader() ,
- "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.logger.MsoLogger$Catalog",
- "com.att.eelf.configuration.SLF4jWrapper",
- "org.openecomp.mso.logger.MsoLogInitializer",
- "com.att.eelf.i18n.EELFResourceManager"
- );
- }
-
- private static void resetClasses() {
- org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(MsoLogInitializerESTestscaffolding.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.MsoLogInitializer",
- "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"
- );
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/logger/MsoLoggingServletESTest.java b/common/src/test/java/org/openecomp/mso/logger/MsoLoggingServletESTest.java
deleted file mode 100644
index 2761f647bc..0000000000
--- a/common/src/test/java/org/openecomp/mso/logger/MsoLoggingServletESTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Mon Nov 14 09:04:06 GMT 2016
- */
-
-package org.openecomp.mso.logger;
-
-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 MsoLoggingServletESTest extends MsoLoggingServletESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test0() throws Throwable {
- MsoLoggingServlet msoLoggingServlet0 = new MsoLoggingServlet();
- try {
- PrivateAccess.callMethod((Class<MsoLoggingServlet>) MsoLoggingServlet.class, msoLoggingServlet0, "isMsoLogger", (Object) null, (Class<?>) String.class);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.logger.MsoLoggingServlet", e);
- }
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/logger/MsoLoggingServletESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/logger/MsoLoggingServletESTestscaffolding.java
deleted file mode 100644
index be6c378ccc..0000000000
--- a/common/src/test/java/org/openecomp/mso/logger/MsoLoggingServletESTestscaffolding.java
+++ /dev/null
@@ -1,337 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Mon Nov 14 09:04:06 GMT 2016
- */
-
-package org.openecomp.mso.logger;
-
-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 MsoLoggingServletESTestscaffolding {
-
- @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.logger.MsoLoggingServlet";
- 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(MsoLoggingServletESTestscaffolding.class.getClassLoader() ,
- "org.jboss.resteasy.spi.StringConverter",
- "org.apache.xerces.impl.XMLEntityManager$CharacterBufferPool",
- "org.apache.xerces.xni.XMLResourceIdentifier",
- "org.apache.xerces.impl.XMLEntityManager",
- "org.apache.xerces.impl.dtd.XMLDTDDescription",
- "com.att.eelf.i18n.EELFMsgs",
- "org.jboss.resteasy.util.ThreadLocalStack",
- "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.dv.dtd.NOTATIONDatatypeValidator",
- "org.apache.xerces.xni.parser.XMLParseException",
- "org.apache.xerces.impl.XMLEntityScanner",
- "org.apache.xerces.util.URI$MalformedURIException",
- "org.apache.xerces.impl.XMLNSDocumentScannerImpl",
- "org.jboss.resteasy.core.interception.JaxrsInterceptorRegistry",
- "org.apache.xerces.impl.dtd.models.CMAny",
- "org.apache.xerces.util.URI",
- "org.apache.xerces.xni.parser.XMLDocumentFilter",
- "org.apache.xerces.xni.parser.XMLDTDSource",
- "org.apache.xerces.impl.dtd.XMLAttributeDecl",
- "org.apache.xerces.parsers.XMLParser",
- "org.jboss.resteasy.spi.ResteasyProviderFactory",
- "org.apache.xerces.util.SymbolTable",
- "org.apache.xerces.impl.io.Latin1Reader",
- "org.apache.xerces.impl.dv.ValidationContext",
- "org.jboss.resteasy.spi.BadRequestException",
- "org.apache.xerces.impl.dtd.XMLDTDValidator",
- "org.apache.xerces.impl.dtd.XML11NSDTDValidator",
- "org.openecomp.mso.logger.MsoLoggingServlet",
- "org.apache.xerces.util.AugmentationsImpl",
- "org.jboss.resteasy.core.interception.ReaderInterceptorRegistry",
- "org.apache.xerces.impl.dv.ObjectFactory",
- "org.jboss.resteasy.client.exception.mapper.ClientExceptionMapper",
- "org.apache.xerces.impl.dv.DatatypeValidator",
- "org.jboss.resteasy.spi.InjectorFactory",
- "org.jboss.resteasy.core.interception.LegacyPrecedence",
- "org.apache.xerces.jaxp.SAXParserImpl",
- "org.apache.xerces.xni.grammars.XMLGrammarDescription",
- "org.jboss.resteasy.plugins.delegates.NewCookieHeaderDelegate",
- "org.apache.xerces.xni.parser.XMLErrorHandler",
- "org.apache.xerces.util.MessageFormatter",
- "org.apache.xerces.impl.XMLEntityManager$1",
- "org.apache.xerces.xni.parser.XMLDTDScanner",
- "org.openecomp.mso.logger.MsoLogger$ErrorCode",
- "org.apache.xerces.xni.XMLAttributes",
- "org.apache.xerces.impl.dv.dtd.StringDatatypeValidator",
- "org.apache.xerces.impl.io.MalformedByteSequenceException",
- "org.apache.xerces.impl.Constants$ArrayEnumeration",
- "org.jboss.resteasy.core.interception.WriterInterceptorRegistry",
- "org.apache.xerces.impl.dv.DTDDVFactory",
- "org.apache.xerces.impl.dv.dtd.IDDatatypeValidator",
- "org.apache.xerces.impl.validation.ValidationManager",
- "org.apache.xerces.xni.XNIException",
- "org.apache.xerces.impl.dtd.models.CMNode",
- "org.apache.xerces.xni.parser.XMLDocumentSource",
- "org.apache.xerces.xni.XMLDTDContentModelHandler",
- "org.jboss.resteasy.spi.StringParameterUnmarshaller",
- "org.jboss.resteasy.core.MediaTypeMap",
- "org.openecomp.mso.logger.MsoLogger$Catalog",
- "org.apache.xerces.util.AugmentationsImpl$SmallContainer",
- "org.apache.xerces.impl.XMLErrorReporter",
- "org.jboss.resteasy.specimpl.ResteasyUriBuilder",
- "org.apache.xerces.impl.Constants",
- "org.apache.xerces.util.XMLStringBuffer",
- "org.apache.xerces.jaxp.JAXPConstants",
- "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.parsers.XIncludeAwareParserConfiguration",
- "org.jboss.resteasy.logging.Logger$LoggerType",
- "org.apache.xerces.impl.xs.identity.FieldActivator",
- "org.apache.xerces.impl.XMLEntityScanner$1",
- "org.apache.xerces.jaxp.SAXParserFactoryImpl",
- "org.jboss.resteasy.util.CaseInsensitiveMap$CaseInsensitiveComparator",
- "org.apache.xerces.xs.ElementPSVI",
- "org.apache.xerces.parsers.AbstractSAXParser",
- "org.jboss.resteasy.spi.LoggableFailure",
- "org.apache.xerces.xni.parser.XMLDTDFilter",
- "org.apache.xerces.xni.parser.XMLDTDContentModelSource",
- "org.openecomp.mso.entity.MsoRequest",
- "org.apache.xerces.xni.XMLLocator",
- "org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser",
- "org.apache.xerces.xni.Augmentations",
- "org.apache.xerces.impl.XMLEntityHandler",
- "org.jboss.resteasy.util.CaseInsensitiveMap$1",
- "org.jboss.resteasy.specimpl.BuiltResponse",
- "org.jboss.resteasy.core.Headers",
- "org.apache.xerces.xni.parser.XMLComponent",
- "org.apache.xerces.impl.dv.dtd.ListDatatypeValidator",
- "org.jboss.resteasy.spi.Failure",
- "org.apache.xerces.impl.XMLEntityManager$ScannedEntity",
- "org.apache.xerces.jaxp.JAXPValidatorComponent",
- "org.apache.xerces.xni.parser.XMLDTDContentModelFilter",
- "org.apache.xerces.xs.PSVIProvider",
- "org.apache.xerces.impl.XMLEntityManager$ByteBufferPool",
- "org.jboss.resteasy.specimpl.ResponseBuilderImpl",
- "org.jboss.resteasy.core.interception.ClientResponseFilterRegistry",
- "org.apache.xerces.impl.dtd.XMLEntityDecl",
- "org.apache.xerces.xs.ItemPSVI",
- "org.jboss.resteasy.specimpl.MultivaluedTreeMap",
- "org.apache.xerces.impl.dv.dtd.ENTITYDatatypeValidator",
- "org.apache.xerces.xni.parser.XMLEntityResolver",
- "org.jboss.resteasy.client.core.ClientErrorInterceptor",
- "org.apache.xerces.impl.dtd.XMLNSDTDValidator",
- "org.apache.xerces.impl.XMLDTDScannerImpl",
- "org.apache.xerces.impl.dv.dtd.NMTOKENDatatypeValidator",
- "org.apache.xerces.parsers.ObjectFactory",
- "org.jboss.resteasy.spi.ResteasyProviderFactory$SortedKey",
- "org.apache.xerces.xni.parser.XMLConfigurationException",
- "org.apache.xerces.impl.XML11NSDocumentScannerImpl",
- "org.apache.xerces.parsers.SAXParser",
- "com.att.eelf.i18n.EELFResolvableErrorEnum",
- "org.apache.xerces.impl.XMLEntityManager$RewindableInputStream",
- "org.jboss.resteasy.core.interception.ContainerRequestFilterRegistry",
- "org.jboss.resteasy.specimpl.VariantListBuilderImpl",
- "org.apache.xerces.xni.parser.XMLInputSource",
- "org.apache.xerces.xni.parser.XMLComponentManager",
- "com.att.eelf.configuration.EELFLogger$Level",
- "org.jboss.resteasy.core.interception.JaxrsInterceptorRegistry$InterceptorFactory",
- "org.apache.xerces.impl.io.UTF8Reader",
- "org.apache.xerces.impl.dtd.XMLSimpleType",
- "org.apache.xerces.impl.XML11DocumentScannerImpl",
- "org.apache.xerces.util.AugmentationsImpl$AugmentationsItemsContainer",
- "org.apache.xerces.util.XMLChar",
- "org.apache.xerces.impl.XML11DTDScannerImpl",
- "org.apache.xerces.impl.dtd.XMLElementDecl",
- "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES",
- "org.apache.xerces.xni.grammars.Grammar",
- "org.apache.xerces.impl.dtd.models.ContentModelValidator",
- "com.att.eelf.configuration.EELFLogger",
- "org.apache.xerces.xni.grammars.XMLGrammarLoader",
- "org.apache.xerces.xni.XMLDocumentHandler",
- "org.apache.xerces.impl.io.UCSReader",
- "org.apache.xerces.impl.XMLEntityManager$CharacterBuffer",
- "org.apache.xerces.impl.validation.ValidationState",
- "org.apache.xerces.impl.XMLEntityManager$Entity",
- "org.jboss.resteasy.spi.HttpRequest",
- "org.apache.xerces.util.XMLResourceIdentifierImpl",
- "org.jboss.resteasy.logging.Logger",
- "org.jboss.resteasy.spi.ConstructorInjector",
- "org.apache.xerces.xni.NamespaceContext",
- "org.apache.xerces.impl.dtd.XMLDTDLoader",
- "org.jboss.resteasy.util.CaseInsensitiveMap",
- "org.apache.xerces.util.XMLSymbols",
- "org.apache.xerces.parsers.ObjectFactory$ConfigurationError",
- "org.jboss.resteasy.core.interception.ContainerResponseFilterRegistry",
- "org.apache.xerces.impl.io.ASCIIReader",
- "org.jboss.resteasy.core.interception.InterceptorRegistry",
- "org.apache.xerces.impl.dtd.XMLDTDProcessor",
- "org.apache.xerces.impl.XMLDocumentFragmentScannerImpl",
- "org.apache.xerces.impl.XML11EntityScanner",
- "org.apache.xerces.impl.dtd.DTDGrammar",
- "org.apache.xerces.impl.dv.dtd.IDREFDatatypeValidator",
- "com.att.eelf.configuration.SLF4jWrapper",
- "org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl",
- "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.impl.XMLDocumentFragmentScannerImpl$Dispatcher",
- "org.apache.xerces.impl.xs.XMLSchemaValidator",
- "org.apache.xerces.xni.grammars.XMLDTDDescription",
- "org.jboss.resteasy.logging.impl.Slf4jLogger",
- "org.apache.xerces.xni.QName",
- "org.apache.xerces.jaxp.TeeXMLDocumentFilterImpl",
- "org.apache.xerces.util.XMLAttributesImpl",
- "org.apache.xerces.impl.XMLEntityManager$InternalEntity",
- "org.apache.xerces.impl.RevalidationHandler",
- "org.jboss.resteasy.spi.HeaderValueProcessor",
- "org.apache.xerces.util.AugmentationsImpl$LargeContainer",
- "org.apache.xerces.impl.dtd.BalancedDTDGrammar",
- "org.apache.xerces.xni.XMLDTDHandler",
- "org.apache.xerces.impl.dtd.XML11DTDProcessor",
- "org.apache.xerces.parsers.XML11Configuration",
- "org.apache.xerces.impl.dtd.XMLDTDValidatorFilter",
- "com.att.eelf.i18n.EELFResourceManager",
- "org.jboss.resteasy.plugins.delegates.MediaTypeHeaderDelegate",
- "org.jboss.resteasy.core.MediaTypeMap$Typed",
- "org.openecomp.mso.logger.MessageEnum",
- "org.openecomp.mso.logger.MsoLogger$ResponseCode",
- "org.openecomp.mso.logger.MsoLogger$StatusCode",
- "com.att.eelf.configuration.EELFManager",
- "org.jboss.resteasy.spi.HttpResponse",
- "org.apache.xerces.impl.validation.EntityState",
- "org.apache.xerces.impl.XMLEntityManager$ExternalEntity",
- "org.apache.xerces.util.ParserConfigurationSettings",
- "org.apache.xerces.impl.dv.ObjectFactory$ConfigurationError",
- "com.att.eelf.i18n.EELFResourceManager$1",
- "org.apache.xerces.impl.dtd.XML11DTDValidator"
- );
- }
-
- private static void resetClasses() {
- org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(MsoLoggingServletESTestscaffolding.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",
- "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.jboss.resteasy.logging.Logger$LoggerType",
- "org.jboss.resteasy.logging.Logger",
- "org.jboss.resteasy.spi.ResteasyProviderFactory",
- "org.jboss.resteasy.core.MediaTypeMap",
- "org.jboss.resteasy.core.interception.LegacyPrecedence",
- "org.jboss.resteasy.plugins.delegates.MediaTypeHeaderDelegate",
- "org.jboss.resteasy.plugins.delegates.NewCookieHeaderDelegate",
- "org.jboss.resteasy.specimpl.MultivaluedTreeMap",
- "org.jboss.resteasy.util.CaseInsensitiveMap$CaseInsensitiveComparator",
- "org.jboss.resteasy.util.CaseInsensitiveMap",
- "org.jboss.resteasy.core.Headers",
- "org.openecomp.mso.logger.MsoLoggingServlet"
- );
- }
-}
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"
- );
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/utils/CheckResultsESTest.java b/common/src/test/java/org/openecomp/mso/utils/CheckResultsESTest.java
deleted file mode 100644
index 212fe95407..0000000000
--- a/common/src/test/java/org/openecomp/mso/utils/CheckResultsESTest.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Mon Nov 14 08:02:57 GMT 2016
- */
-
-package org.openecomp.mso.utils;
-
-import org.junit.Test;
-import static org.junit.Assert.*;
-
-import java.util.List;
-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 CheckResultsESTest extends CheckResultsESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test00() throws Throwable {
- CheckResults checkResults0 = new CheckResults();
- checkResults0.addHostCheckResult("GP<QUZyf\"vf-sD", (-1), "");
- }
-
- @Test(timeout = 4000)
- public void test01() throws Throwable {
- CheckResults checkResults0 = new CheckResults();
- PrivateAccess.setVariable((Class<CheckResults>) CheckResults.class, checkResults0, "results", (Object) null);
- List<CheckResults.CheckResult> list0 = checkResults0.getResults();
- assertNull(list0);
- }
-
- @Test(timeout = 4000)
- public void test02() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- checkResults_CheckResult0.setOutput("xp");
- assertEquals(0, checkResults_CheckResult0.getState());
- }
-
- @Test(timeout = 4000)
- public void test03() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- checkResults_CheckResult0.setType("2");
- assertEquals(0, checkResults_CheckResult0.getState());
- }
-
- @Test(timeout = 4000)
- public void test04() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- checkResults_CheckResult0.setState(1);
- assertEquals(1, checkResults_CheckResult0.getState());
- }
-
- @Test(timeout = 4000)
- public void test05() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- checkResults_CheckResult0.setServicename("9~");
- assertEquals(0, checkResults_CheckResult0.getState());
- }
-
- @Test(timeout = 4000)
- public void test06() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- checkResults_CheckResult0.setHostname((String) null);
- assertNull(checkResults_CheckResult0.getServicename());
- }
-
- @Test(timeout = 4000)
- public void test07() throws Throwable {
- CheckResults checkResults0 = new CheckResults();
- checkResults0.addHostCheckResult("GP<QUZyf\"vf-sD", 0, "GP<QUZyf\"vf-sD");
- List<CheckResults.CheckResult> list0 = checkResults0.getResults();
- assertEquals(1, list0.size());
- }
-
- @Test(timeout = 4000)
- public void test08() throws Throwable {
- CheckResults checkResults0 = new CheckResults();
- List<CheckResults.CheckResult> list0 = checkResults0.getResults();
- assertTrue(list0.isEmpty());
- }
-
- @Test(timeout = 4000)
- public void test09() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- String string0 = checkResults_CheckResult0.getServicename();
- assertNull(string0);
- }
-
- @Test(timeout = 4000)
- public void test10() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- int int0 = checkResults_CheckResult0.getState();
- assertEquals(0, int0);
- }
-
- @Test(timeout = 4000)
- public void test11() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- String string0 = checkResults_CheckResult0.getHostname();
- assertNull(string0);
- }
-
- @Test(timeout = 4000)
- public void test12() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- String string0 = checkResults_CheckResult0.getType();
- assertNull(string0);
- }
-
- @Test(timeout = 4000)
- public void test13() throws Throwable {
- CheckResults checkResults0 = new CheckResults();
- checkResults0.addServiceCheckResult("", "Ifp73+/", 0, " ");
- }
-
- @Test(timeout = 4000)
- public void test14() throws Throwable {
- CheckResults.CheckResult checkResults_CheckResult0 = new CheckResults.CheckResult();
- String string0 = checkResults_CheckResult0.getOutput();
- assertNull(string0);
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/utils/CheckResultsESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/utils/CheckResultsESTestscaffolding.java
deleted file mode 100644
index a4fea268c1..0000000000
--- a/common/src/test/java/org/openecomp/mso/utils/CheckResultsESTestscaffolding.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Mon Nov 14 08:02:57 GMT 2016
- */
-
-package org.openecomp.mso.utils;
-
-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 CheckResultsESTestscaffolding {
-
- @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.utils.CheckResults";
- 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(CheckResultsESTestscaffolding.class.getClassLoader() ,
- "org.openecomp.mso.utils.CheckResults$CheckResult",
- "org.openecomp.mso.utils.CheckResults"
- );
- }
-
- private static void resetClasses() {
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/utils/CryptoUtilsESTest.java b/common/src/test/java/org/openecomp/mso/utils/CryptoUtilsESTest.java
deleted file mode 100644
index 59e8cec92d..0000000000
--- a/common/src/test/java/org/openecomp/mso/utils/CryptoUtilsESTest.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Mon Nov 14 09:07:10 GMT 2016
- */
-
-package org.openecomp.mso.utils;
-
-import org.junit.Test;
-import static org.junit.Assert.*;
-import static org.evosuite.runtime.EvoAssertions.*;
-
-import javax.crypto.BadPaddingException;
-import javax.crypto.IllegalBlockSizeException;
-import java.security.InvalidKeyException;
-
-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 CryptoUtilsESTest extends CryptoUtilsESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test00() throws Throwable {
- CryptoUtils.decrypt("E08682BE5F2B18A6E8437A15B110D418E08682BE5F2B18A6E8437A15B110D4180143DB63EE66B0CDFF9F69917680151E", "00000000000000000000000000000000");
- }
-
- @Test(timeout = 4000)
- public void test01() throws Throwable {
- byte[] byteArray0 = new byte[0];
- CryptoUtils.byteArrayToHexString(byteArray0);
- }
-
- @Test(timeout = 4000)
- public void test02() throws Throwable {
- // Undeclared exception!
- try {
- CryptoUtils.encrypt("AES", "w^p&|^Cvs@K.@@");
- fail("Expecting exception: NumberFormatException");
-
- } catch(NumberFormatException e) {
- //
- // For input string: \"w^\"
- //
- verifyException("java.lang.NumberFormatException", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test03() throws Throwable {
- // Undeclared exception!
- try {
- CryptoUtils.encrypt((String) null, "B2000000000000000000000000000000");
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.utils.CryptoUtils", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test04() throws Throwable {
- try {
- CryptoUtils.decrypt("B20000000000000000000000000000000000000000000000", "B20000000000000000000000000000000000000000000000");
- fail("Expecting exception: IllegalBlockSizeException");
-
- } catch(IllegalBlockSizeException | InvalidKeyException e) {
- }
- }
-
- @Test(timeout = 4000)
- public void test05() throws Throwable {
- try {
- CryptoUtils.decrypt("0000C200000000000000000000000000", "0000C200000000000000000000000000");
- fail("Expecting exception: BadPaddingException");
-
- } catch(BadPaddingException e) {
- }
- }
-
- @Test(timeout = 4000)
- public void test06() throws Throwable {
- // Undeclared exception!
- try {
- CryptoUtils.decrypt("s.", "s.");
- fail("Expecting exception: NumberFormatException");
-
- } catch(NumberFormatException e) {
- //
- // For input string: \"s.\"
- //
- verifyException("java.lang.NumberFormatException", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test07() throws Throwable {
- // Undeclared exception!
- try {
- CryptoUtils.decrypt("", "");
- fail("Expecting exception: IllegalArgumentException");
-
- } catch(IllegalArgumentException e) {
- //
- // Empty key
- //
- verifyException("javax.crypto.spec.SecretKeySpec", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test08() throws Throwable {
- // Undeclared exception!
- try {
- CryptoUtils.byteArrayToHexString((byte[]) null);
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.utils.CryptoUtils", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test09() throws Throwable {
- byte[] byteArray0 = new byte[16];
- byteArray0[0] = (byte) (-78);
- String string0 = CryptoUtils.byteArrayToHexString(byteArray0);
- assertEquals("B2000000000000000000000000000000", string0);
- }
-
- @Test(timeout = 4000)
- public void test10() throws Throwable {
- String string0 = CryptoUtils.encrypt("00000000000000000000000000000000", "00000000000000000000000000000000");
- assertEquals("E08682BE5F2B18A6E8437A15B110D418E08682BE5F2B18A6E8437A15B110D4180143DB63EE66B0CDFF9F69917680151E", string0);
- }
-
- @Test(timeout = 4000)
- public void test11() throws Throwable {
- // Undeclared exception!
- try {
- CryptoUtils.encrypt("", "");
- fail("Expecting exception: IllegalArgumentException");
-
- } catch(IllegalArgumentException e) {
- //
- // Empty key
- //
- verifyException("javax.crypto.spec.SecretKeySpec", e);
- }
- }
-
- @Test(timeout = 4000)
- public void test12() throws Throwable {
- CryptoUtils cryptoUtils0 = new CryptoUtils();
- }
-
- @Test(timeout = 4000)
- public void test13() throws Throwable {
- // Undeclared exception!
- try {
- CryptoUtils.decrypt((String) null, "00000000000000000000000000000000");
- fail("Expecting exception: NullPointerException");
-
- } catch(NullPointerException e) {
- //
- // no message in exception (getMessage() returned null)
- //
- verifyException("org.openecomp.mso.utils.CryptoUtils", e);
- }
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/utils/CryptoUtilsESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/utils/CryptoUtilsESTestscaffolding.java
deleted file mode 100644
index 09574153c7..0000000000
--- a/common/src/test/java/org/openecomp/mso/utils/CryptoUtilsESTestscaffolding.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:07:10 GMT 2016
- */
-
-package org.openecomp.mso.utils;
-
-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 CryptoUtilsESTestscaffolding {
-
- @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.utils.CryptoUtils";
- 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(CryptoUtilsESTestscaffolding.class.getClassLoader() ,
- "org.openecomp.mso.utils.CryptoUtils"
- );
- }
-
- private static void resetClasses() {
- org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(CryptoUtilsESTestscaffolding.class.getClassLoader());
-
- org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
- "org.openecomp.mso.utils.CryptoUtils"
- );
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/utils/UUIDCheckerESTest.java b/common/src/test/java/org/openecomp/mso/utils/UUIDCheckerESTest.java
deleted file mode 100644
index fa8517e3db..0000000000
--- a/common/src/test/java/org/openecomp/mso/utils/UUIDCheckerESTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * This file was automatically generated by EvoSuite
- * Mon Nov 14 08:02:03 GMT 2016
- */
-
-package org.openecomp.mso.utils;
-
-import org.junit.Test;
-import static org.junit.Assert.*;
-import static org.evosuite.shaded.org.mockito.Mockito.*;
-
-import org.openecomp.mso.logger.MsoLogger;
-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;
-
-@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
-public class UUIDCheckerESTest extends UUIDCheckerESTestscaffolding {
-
- @Test(timeout = 4000)
- public void test0() throws Throwable {
- MsoLogger msoLogger0 = mock(MsoLogger.class, new ViolatedAssumptionAnswer());
- String string0 = UUIDChecker.generateServiceInstanceID(msoLogger0);
- assertEquals("00000000-0100-4000-8200-000003000000", string0);
- }
-
- @Test(timeout = 4000)
- public void test1() throws Throwable {
- UUIDChecker uUIDChecker0 = (UUIDChecker)PrivateAccess.callDefaultConstructorOfTheClassUnderTest();
- assertNotNull(uUIDChecker0);
- }
-}
diff --git a/common/src/test/java/org/openecomp/mso/utils/UUIDCheckerESTestscaffolding.java b/common/src/test/java/org/openecomp/mso/utils/UUIDCheckerESTestscaffolding.java
deleted file mode 100644
index 15397cb165..0000000000
--- a/common/src/test/java/org/openecomp/mso/utils/UUIDCheckerESTestscaffolding.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/**
- * Scaffolding file used to store all the setups needed to run
- * tests automatically generated by EvoSuite
- * Mon Nov 14 08:02:03 GMT 2016
- */
-
-package org.openecomp.mso.utils;
-
-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 UUIDCheckerESTestscaffolding {
-
- @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.utils.UUIDChecker";
- 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(UUIDCheckerESTestscaffolding.class.getClassLoader() ,
- "org.openecomp.mso.logger.MsoLogger",
- "org.openecomp.mso.logger.MessageEnum",
- "com.att.eelf.i18n.EELFResolvableErrorEnum",
- "org.openecomp.mso.logger.MsoLogger$ResponseCode",
- "org.openecomp.mso.logger.MsoLogger$Catalog",
- "org.openecomp.mso.entity.MsoRequest",
- "org.openecomp.mso.logger.MsoLogger$StatusCode",
- "com.att.eelf.i18n.EELFResourceManager",
- "org.openecomp.mso.logger.MsoLogger$ErrorCode",
- "org.openecomp.mso.utils.UUIDChecker"
- );
- }
-
- private static void resetClasses() {
- org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(UUIDCheckerESTestscaffolding.class.getClassLoader());
-
- org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
- "com.att.eelf.i18n.EELFResourceManager",
- "org.openecomp.mso.logger.MessageEnum",
- "org.openecomp.mso.logger.MsoLogger"
- );
- }
-}