aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-vnf-adapter-async-client
diff options
context:
space:
mode:
authorChrisC <cc697w@intl.att.com>2017-01-31 11:40:03 +0100
committerChrisC <cc697w@intl.att.com>2017-01-31 12:59:33 +0100
commit025301d08b061482c1f046d562bf017c8cbcfe8d (patch)
tree68a2a549736c9bf0f7cd4e71c76e40ef7e2606f2 /adapters/mso-vnf-adapter-async-client
parent2754ad52f833278a5c925bd788a16d1dce16a598 (diff)
Initial OpenECOMP MSO commit
Change-Id: Ia6a7574859480717402cc2f22534d9973a78fa6d Signed-off-by: ChrisC <cc697w@intl.att.com>
Diffstat (limited to 'adapters/mso-vnf-adapter-async-client')
-rw-r--r--adapters/mso-vnf-adapter-async-client/README.md0
-rw-r--r--adapters/mso-vnf-adapter-async-client/WebContent/META-INF/MANIFEST.MF3
-rw-r--r--adapters/mso-vnf-adapter-async-client/pom.xml90
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/main/resources/VnfAdapterNotify.wsdl218
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/CreateVnfNotificationESTest.java225
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/CreateVnfNotificationESTestscaffolding.java83
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/DeleteVnfNotificationESTest.java109
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/DeleteVnfNotificationESTestscaffolding.java79
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoExceptionCategoryESTest.java97
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoExceptionCategoryESTestscaffolding.java83
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoRequestESTest.java70
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoRequestESTestscaffolding.java78
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/ObjectFactoryESTest.java142
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/ObjectFactoryESTestscaffolding.java98
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/QueryVnfNotificationESTest.java224
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/QueryVnfNotificationESTestscaffolding.java82
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/RollbackVnfNotificationESTest.java100
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/RollbackVnfNotificationESTestscaffolding.java79
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/UpdateVnfNotificationESTest.java181
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/UpdateVnfNotificationESTestscaffolding.java83
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfRollbackESTest.java132
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfRollbackESTestscaffolding.java79
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfStatusESTest.java91
-rw-r--r--adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfStatusESTestscaffolding.java83
24 files changed, 2509 insertions, 0 deletions
diff --git a/adapters/mso-vnf-adapter-async-client/README.md b/adapters/mso-vnf-adapter-async-client/README.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/README.md
diff --git a/adapters/mso-vnf-adapter-async-client/WebContent/META-INF/MANIFEST.MF b/adapters/mso-vnf-adapter-async-client/WebContent/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..254272e
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/WebContent/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
diff --git a/adapters/mso-vnf-adapter-async-client/pom.xml b/adapters/mso-vnf-adapter-async-client/pom.xml
new file mode 100644
index 0000000..fc10f1c
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/pom.xml
@@ -0,0 +1,90 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.openecomp.mso</groupId>
+ <artifactId>adapters</artifactId>
+ <version>0.0.4-SNAPSHOT</version>
+ </parent>
+ <groupId>org.openecomp.mso.adapters</groupId>
+ <artifactId>mso-vnf-adapter-async-client</artifactId>
+ <packaging>jar</packaging>
+ <name>mso-vnf-adapter-async-client</name>
+ <description>MSO VNF Adapter Async Client</description>
+
+ <build>
+ <finalName>${project.artifactId}-${project.version}</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <classesDirectory>target/classes</classesDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.jvnet.jax-ws-commons</groupId>
+ <artifactId>jaxws-maven-plugin</artifactId>
+ <version>2.3</version>
+ <executions>
+ <execution>
+ <id>generate-stubs</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>wsimport</goal>
+ </goals>
+ <configuration>
+ <vmArgs>
+ <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
+ </vmArgs>
+ <wsdlDirectory>src/main/resources</wsdlDirectory>
+ <wsdlFiles>
+ <wsdlFile>VnfAdapterNotify.wsdl</wsdlFile>
+ </wsdlFiles>
+ <wsdlLocation>/VnfAdapterNotify.wsdl</wsdlLocation>
+ <packageName>org.openecomp.mso.adapters.vnf.async.client</packageName>
+ <xnocompile>false</xnocompile>
+ <keep>true</keep>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <!--This plugin's configuration is used to store Eclipse m2e settings
+ only. It has no influence on the Maven build itself. -->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>
+ org.jvnet.jax-ws-commons
+ </groupId>
+ <artifactId>
+ jaxws-maven-plugin
+ </artifactId>
+ <versionRange>
+ [2.3,)
+ </versionRange>
+ <goals>
+ <goal>wsimport</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
diff --git a/adapters/mso-vnf-adapter-async-client/src/main/resources/VnfAdapterNotify.wsdl b/adapters/mso-vnf-adapter-async-client/src/main/resources/VnfAdapterNotify.wsdl
new file mode 100644
index 0000000..aecef0d
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/main/resources/VnfAdapterNotify.wsdl
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.7-b01 svn-revision#13316. -->
+<definitions targetNamespace="http://com.att.mso/vnfNotify" name="vnfAdapterNotify" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:tns="http://com.att.mso/vnfNotify" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <types>
+ <xs:schema version="1.0" targetNamespace="http://com.att.mso/vnfNotify" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="createVnfNotification" type="tns:createVnfNotification"/>
+
+ <xs:element name="updateVnfNotification" type="tns:updateVnfNotification"/>
+
+ <xs:element name="deleteVnfNotification" type="tns:deleteVnfNotification"/>
+
+ <xs:element name="queryVnfNotification" type="tns:queryVnfNotification"/>
+
+ <xs:element name="rollbackVnfNotification" type="tns:rollbackVnfNotification"/>
+
+ <xs:complexType name="queryVnfNotification">
+ <xs:sequence>
+ <xs:element name="messageId" type="xs:string"/>
+ <xs:element name="completed" type="xs:boolean"/>
+ <xs:element name="exception" type="tns:msoExceptionCategory" minOccurs="0"/>
+ <xs:element name="errorMessage" type="xs:string" minOccurs="0"/>
+ <xs:element name="vnfExists" type="xs:boolean" minOccurs="0"/>
+ <xs:element name="vnfId" type="xs:string" minOccurs="0"/>
+ <xs:element name="status" type="tns:vnfStatus" minOccurs="0"/>
+ <xs:element name="outputs" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="entry" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="key" minOccurs="0" type="xs:string"/>
+ <xs:element name="value" minOccurs="0" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="deleteVnfNotification">
+ <xs:sequence>
+ <xs:element name="messageId" type="xs:string"/>
+ <xs:element name="completed" type="xs:boolean"/>
+ <xs:element name="exception" type="tns:msoExceptionCategory" minOccurs="0"/>
+ <xs:element name="errorMessage" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="rollbackVnfNotification">
+ <xs:sequence>
+ <xs:element name="messageId" type="xs:string"/>
+ <xs:element name="completed" type="xs:boolean"/>
+ <xs:element name="exception" type="tns:msoExceptionCategory" minOccurs="0"/>
+ <xs:element name="errorMessage" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="createVnfNotification">
+ <xs:sequence>
+ <xs:element name="messageId" type="xs:string"/>
+ <xs:element name="completed" type="xs:boolean"/>
+ <xs:element name="exception" type="tns:msoExceptionCategory" minOccurs="0"/>
+ <xs:element name="errorMessage" type="xs:string" minOccurs="0"/>
+ <xs:element name="vnfId" type="xs:string" minOccurs="0"/>
+ <xs:element name="outputs" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="entry" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="key" minOccurs="0" type="xs:string"/>
+ <xs:element name="value" minOccurs="0" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="rollback" type="tns:vnfRollback" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="updateVnfNotification">
+ <xs:sequence>
+ <xs:element name="messageId" type="xs:string"/>
+ <xs:element name="completed" type="xs:boolean"/>
+ <xs:element name="exception" type="tns:msoExceptionCategory" minOccurs="0"/>
+ <xs:element name="errorMessage" type="xs:string" minOccurs="0"/>
+ <xs:element name="outputs" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="entry" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="key" minOccurs="0" type="xs:string"/>
+ <xs:element name="value" minOccurs="0" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="rollback" type="tns:vnfRollback" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="vnfRollback">
+ <xs:sequence>
+ <xs:element name="cloudSiteId" type="xs:string" minOccurs="0"/>
+ <xs:element name="msoRequest" type="tns:msoRequest" minOccurs="0"/>
+ <xs:element name="tenantCreated" type="xs:boolean"/>
+ <xs:element name="tenantId" type="xs:string" minOccurs="0"/>
+ <xs:element name="vnfCreated" type="xs:boolean"/>
+ <xs:element name="vnfId" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="msoRequest">
+ <xs:sequence>
+ <xs:element name="requestId" type="xs:string" minOccurs="0"/>
+ <xs:element name="serviceInstanceId" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:simpleType name="msoExceptionCategory">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="OPENSTACK"/>
+ <xs:enumeration value="IO"/>
+ <xs:enumeration value="INTERNAL"/>
+ <xs:enumeration value="USERDATA"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="vnfStatus">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="ACTIVE"/>
+ <xs:enumeration value="FAILED"/>
+ <xs:enumeration value="NOTFOUND"/>
+ <xs:enumeration value="UNKNOWN"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
+ </types>
+ <message name="rollbackVnfNotification">
+ <part name="parameters" element="tns:rollbackVnfNotification"/>
+ </message>
+ <message name="queryVnfNotification">
+ <part name="parameters" element="tns:queryVnfNotification"/>
+ </message>
+ <message name="createVnfNotification">
+ <part name="parameters" element="tns:createVnfNotification"/>
+ </message>
+ <message name="updateVnfNotification">
+ <part name="parameters" element="tns:updateVnfNotification"/>
+ </message>
+ <message name="deleteVnfNotification">
+ <part name="parameters" element="tns:deleteVnfNotification"/>
+ </message>
+ <portType name="vnfAdapterNotify">
+ <operation name="rollbackVnfNotification">
+ <input wsam:Action="http://com.att.mso/notify/adapterNotify/rollbackVnfNotificationRequest" message="tns:rollbackVnfNotification"/>
+ </operation>
+ <operation name="queryVnfNotification">
+ <input wsam:Action="http://com.att.mso/notify/adapterNotify/queryVnfNotificationRequest" message="tns:queryVnfNotification"/>
+ </operation>
+ <operation name="createVnfNotification">
+ <input wsam:Action="http://com.att.mso/notify/adapterNotify/createVnfNotificationRequest" message="tns:createVnfNotification"/>
+ </operation>
+ <operation name="updateVnfNotification">
+ <input wsam:Action="http://com.att.mso/notify/adapterNotify/updateVnfNotificationRequest" message="tns:updateVnfNotification"/>
+ </operation>
+ <operation name="deleteVnfNotification">
+ <input wsam:Action="http://com.att.mso/notify/adapterNotify/deleteVnfNotificationRequest" message="tns:deleteVnfNotification"/>
+ </operation>
+ </portType>
+ <binding name="MsoVnfAdapterAsyncImplPortBinding" type="tns:vnfAdapterNotify">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <operation name="rollbackVnfNotification">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ <operation name="queryVnfNotification">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ <operation name="createVnfNotification">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ <operation name="updateVnfNotification">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ <operation name="deleteVnfNotification">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ </binding>
+ <service name="vnfAdapterNotify">
+ <port name="MsoVnfAdapterAsyncImplPort" binding="tns:MsoVnfAdapterAsyncImplPortBinding">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </port>
+ </service>
+</definitions>
+
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/CreateVnfNotificationESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/CreateVnfNotificationESTest.java
new file mode 100644
index 0000000..bd72cac
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/CreateVnfNotificationESTest.java
@@ -0,0 +1,225 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:47:44 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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.junit.runner.RunWith;
+
+@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
+public class CreateVnfNotificationESTest extends CreateVnfNotificationESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test00() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.completed = true;
+ boolean boolean0 = createVnfNotification0.isCompleted();
+ assertTrue(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test01() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.vnfId = "hxb7d^";
+ String string0 = createVnfNotification0.getVnfId();
+ assertEquals("hxb7d^", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test02() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.vnfId = "";
+ String string0 = createVnfNotification0.getVnfId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test03() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.setVnfCreated(true);
+ createVnfNotification0.setRollback(vnfRollback0);
+ VnfRollback vnfRollback1 = createVnfNotification0.getRollback();
+ assertSame(vnfRollback1, vnfRollback0);
+ }
+
+ @Test(timeout = 4000)
+ public void test04() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ VnfRollback vnfRollback0 = new VnfRollback();
+ createVnfNotification0.rollback = vnfRollback0;
+ VnfRollback vnfRollback1 = createVnfNotification0.getRollback();
+ assertFalse(vnfRollback1.isVnfCreated());
+ }
+
+ @Test(timeout = 4000)
+ public void test05() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ CreateVnfNotification.Outputs createVnfNotification_Outputs0 = new CreateVnfNotification.Outputs();
+ createVnfNotification0.outputs = createVnfNotification_Outputs0;
+ CreateVnfNotification.Outputs createVnfNotification_Outputs1 = createVnfNotification0.getOutputs();
+ assertSame(createVnfNotification_Outputs1, createVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test06() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.messageId = "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory";
+ String string0 = createVnfNotification0.getMessageId();
+ assertEquals("org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test07() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
+ createVnfNotification0.exception = msoExceptionCategory0;
+ MsoExceptionCategory msoExceptionCategory1 = createVnfNotification0.getException();
+ assertEquals(MsoExceptionCategory.OPENSTACK, msoExceptionCategory1);
+ }
+
+ @Test(timeout = 4000)
+ public void test08() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.errorMessage = "=(,wm";
+ String string0 = createVnfNotification0.getErrorMessage();
+ assertEquals("=(,wm", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test09() throws Throwable {
+ CreateVnfNotification.Outputs createVnfNotification_Outputs0 = new CreateVnfNotification.Outputs();
+ createVnfNotification_Outputs0.getEntry();
+ List<CreateVnfNotification.Outputs.Entry> list0 = createVnfNotification_Outputs0.getEntry();
+ assertTrue(list0.isEmpty());
+ }
+
+ @Test(timeout = 4000)
+ public void test10() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ CreateVnfNotification.Outputs createVnfNotification_Outputs0 = new CreateVnfNotification.Outputs();
+ createVnfNotification0.setOutputs(createVnfNotification_Outputs0);
+ assertNull(createVnfNotification0.getErrorMessage());
+ }
+
+ @Test(timeout = 4000)
+ public void test11() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ VnfRollback vnfRollback0 = createVnfNotification0.getRollback();
+ assertNull(vnfRollback0);
+ }
+
+ @Test(timeout = 4000)
+ public void test12() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
+ createVnfNotification0.setException(msoExceptionCategory0);
+ assertFalse(createVnfNotification0.isCompleted());
+ }
+
+ @Test(timeout = 4000)
+ public void test13() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ String string0 = createVnfNotification0.getErrorMessage();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test14() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ CreateVnfNotification.Outputs createVnfNotification_Outputs0 = createVnfNotification0.getOutputs();
+ assertNull(createVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test15() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.getException();
+ }
+
+ @Test(timeout = 4000)
+ public void test16() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.setCompleted(false);
+ assertFalse(createVnfNotification0.isCompleted());
+ }
+
+ @Test(timeout = 4000)
+ public void test17() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ String string0 = createVnfNotification0.getMessageId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test18() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.setVnfId("N");
+ assertNull(createVnfNotification0.getException());
+ }
+
+ @Test(timeout = 4000)
+ public void test19() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.setErrorMessage("");
+ String string0 = createVnfNotification0.getErrorMessage();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test20() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ String string0 = createVnfNotification0.getVnfId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test21() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ createVnfNotification0.setMessageId("");
+ String string0 = createVnfNotification0.getMessageId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test22() throws Throwable {
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ boolean boolean0 = createVnfNotification0.isCompleted();
+ assertFalse(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test23() throws Throwable {
+ CreateVnfNotification.Outputs.Entry createVnfNotification_Outputs_Entry0 = new CreateVnfNotification.Outputs.Entry();
+ createVnfNotification_Outputs_Entry0.setValue("`)_fe1");
+ assertNull(createVnfNotification_Outputs_Entry0.getKey());
+ }
+
+ @Test(timeout = 4000)
+ public void test24() throws Throwable {
+ CreateVnfNotification.Outputs.Entry createVnfNotification_Outputs_Entry0 = new CreateVnfNotification.Outputs.Entry();
+ createVnfNotification_Outputs_Entry0.setKey("");
+ assertEquals("", createVnfNotification_Outputs_Entry0.getKey());
+ }
+
+ @Test(timeout = 4000)
+ public void test25() throws Throwable {
+ CreateVnfNotification.Outputs.Entry createVnfNotification_Outputs_Entry0 = new CreateVnfNotification.Outputs.Entry();
+ String string0 = createVnfNotification_Outputs_Entry0.getValue();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test26() throws Throwable {
+ CreateVnfNotification.Outputs.Entry createVnfNotification_Outputs_Entry0 = new CreateVnfNotification.Outputs.Entry();
+ String string0 = createVnfNotification_Outputs_Entry0.getKey();
+ assertNull(string0);
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/CreateVnfNotificationESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/CreateVnfNotificationESTestscaffolding.java
new file mode 100644
index 0000000..ff2e368
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/CreateVnfNotificationESTestscaffolding.java
@@ -0,0 +1,83 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:47:44 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 CreateVnfNotificationESTestscaffolding {
+
+ @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.adapters.vnf.async.client.CreateVnfNotification";
+ 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(CreateVnfNotificationESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.CreateVnfNotification$Outputs$Entry",
+ "org.openecomp.mso.adapters.vnf.async.client.MsoRequest",
+ "org.openecomp.mso.adapters.vnf.async.client.CreateVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.CreateVnfNotification$Outputs",
+ "org.openecomp.mso.adapters.vnf.async.client.VnfRollback",
+ "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory"
+ );
+ }
+
+ private static void resetClasses() {
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/DeleteVnfNotificationESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/DeleteVnfNotificationESTest.java
new file mode 100644
index 0000000..0d42b35
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/DeleteVnfNotificationESTest.java
@@ -0,0 +1,109 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:48:02 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 DeleteVnfNotificationESTest extends DeleteVnfNotificationESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test00() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ deleteVnfNotification0.setCompleted(true);
+ boolean boolean0 = deleteVnfNotification0.isCompleted();
+ assertTrue(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test01() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ deleteVnfNotification0.messageId = "H\"7~I/-7S[";
+ String string0 = deleteVnfNotification0.getMessageId();
+ assertEquals("H\"7~I/-7S[", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test02() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ deleteVnfNotification0.messageId = "";
+ String string0 = deleteVnfNotification0.getMessageId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test03() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.USERDATA;
+ deleteVnfNotification0.exception = msoExceptionCategory0;
+ MsoExceptionCategory msoExceptionCategory1 = deleteVnfNotification0.getException();
+ assertEquals(MsoExceptionCategory.USERDATA, msoExceptionCategory1);
+ }
+
+ @Test(timeout = 4000)
+ public void test04() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ deleteVnfNotification0.errorMessage = "";
+ deleteVnfNotification0.errorMessage = "H\"7~I/-7S[";
+ String string0 = deleteVnfNotification0.getErrorMessage();
+ assertEquals("H\"7~I/-7S[", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test05() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ deleteVnfNotification0.setErrorMessage("");
+ String string0 = deleteVnfNotification0.getErrorMessage();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test06() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ boolean boolean0 = deleteVnfNotification0.isCompleted();
+ assertFalse(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test07() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ deleteVnfNotification0.getException();
+ }
+
+ @Test(timeout = 4000)
+ public void test08() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ String string0 = deleteVnfNotification0.getErrorMessage();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test09() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ String string0 = deleteVnfNotification0.getMessageId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test10() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ deleteVnfNotification0.setMessageId("Jl^?zBSSPj<c<rl");
+ assertEquals("Jl^?zBSSPj<c<rl", deleteVnfNotification0.getMessageId());
+ }
+
+ @Test(timeout = 4000)
+ public void test11() throws Throwable {
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ MsoExceptionCategory msoExceptionCategory0 = deleteVnfNotification0.exception;
+ deleteVnfNotification0.setException(msoExceptionCategory0);
+ assertNull(deleteVnfNotification0.getErrorMessage());
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/DeleteVnfNotificationESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/DeleteVnfNotificationESTestscaffolding.java
new file mode 100644
index 0000000..ea624cf
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/DeleteVnfNotificationESTestscaffolding.java
@@ -0,0 +1,79 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:48:02 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 DeleteVnfNotificationESTestscaffolding {
+
+ @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.adapters.vnf.async.client.DeleteVnfNotification";
+ 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(DeleteVnfNotificationESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.DeleteVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory"
+ );
+ }
+
+ private static void resetClasses() {
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoExceptionCategoryESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoExceptionCategoryESTest.java
new file mode 100644
index 0000000..74b074c
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoExceptionCategoryESTest.java
@@ -0,0 +1,97 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:52:03 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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.junit.runner.RunWith;
+
+@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
+public class MsoExceptionCategoryESTest extends MsoExceptionCategoryESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test0() throws Throwable {
+ MsoExceptionCategory[] msoExceptionCategoryArray0 = MsoExceptionCategory.values();
+ assertNotNull(msoExceptionCategoryArray0);
+ }
+
+ @Test(timeout = 4000)
+ public void test1() throws Throwable {
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.valueOf("INTERNAL");
+ assertEquals(MsoExceptionCategory.INTERNAL, msoExceptionCategory0);
+ }
+
+ @Test(timeout = 4000)
+ public void test2() throws Throwable {
+ // Undeclared exception!
+ try {
+ MsoExceptionCategory.valueOf((String) null);
+ fail("Expecting exception: NullPointerException");
+
+ } catch(NullPointerException e) {
+ //
+ // Name is null
+ //
+ verifyException("java.lang.Enum", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test3() throws Throwable {
+ // Undeclared exception!
+ try {
+ MsoExceptionCategory.valueOf("sm%");
+ fail("Expecting exception: IllegalArgumentException");
+
+ } catch(IllegalArgumentException e) {
+ //
+ // No enum constant org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory.sm%
+ //
+ verifyException("java.lang.Enum", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test4() throws Throwable {
+ // Undeclared exception!
+ try {
+ MsoExceptionCategory.fromValue((String) null);
+ fail("Expecting exception: NullPointerException");
+
+ } catch(NullPointerException e) {
+ //
+ // Name is null
+ //
+ verifyException("java.lang.Enum", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test5() throws Throwable {
+ // Undeclared exception!
+ try {
+ MsoExceptionCategory.fromValue("'E'J4$ovJ-=|?p<o5");
+ fail("Expecting exception: IllegalArgumentException");
+
+ } catch(IllegalArgumentException e) {
+ //
+ // No enum constant org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory.'E'J4$ovJ-=|?p<o5
+ //
+ verifyException("java.lang.Enum", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test6() throws Throwable {
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.IO;
+ String string0 = msoExceptionCategory0.value();
+ assertEquals("IO", string0);
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoExceptionCategoryESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoExceptionCategoryESTestscaffolding.java
new file mode 100644
index 0000000..8b4298b
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoExceptionCategoryESTestscaffolding.java
@@ -0,0 +1,83 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:52:03 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 MsoExceptionCategoryESTestscaffolding {
+
+ @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.adapters.vnf.async.client.MsoExceptionCategory";
+ 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(MsoExceptionCategoryESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory"
+ );
+ }
+
+ private static void resetClasses() {
+ org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(MsoExceptionCategoryESTestscaffolding.class.getClassLoader());
+
+ org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
+ "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory"
+ );
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoRequestESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoRequestESTest.java
new file mode 100644
index 0000000..7a1583e
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoRequestESTest.java
@@ -0,0 +1,70 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:46:30 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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("1lbEy=v({)?8!~ gb2");
+ String string0 = msoRequest0.getServiceInstanceId();
+ assertEquals("1lbEy=v({)?8!~ gb2", 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();
+ msoRequest0.requestId = "<;cSWuoV*]74";
+ String string0 = msoRequest0.getRequestId();
+ assertEquals("<;cSWuoV*]74", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test3() throws Throwable {
+ MsoRequest msoRequest0 = new MsoRequest();
+ msoRequest0.requestId = "";
+ String string0 = msoRequest0.getRequestId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test4() throws Throwable {
+ MsoRequest msoRequest0 = new MsoRequest();
+ msoRequest0.setRequestId((String) null);
+ assertNull(msoRequest0.getServiceInstanceId());
+ }
+
+ @Test(timeout = 4000)
+ public void test5() throws Throwable {
+ MsoRequest msoRequest0 = new MsoRequest();
+ String string0 = msoRequest0.getServiceInstanceId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test6() throws Throwable {
+ MsoRequest msoRequest0 = new MsoRequest();
+ String string0 = msoRequest0.getRequestId();
+ assertNull(string0);
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoRequestESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoRequestESTestscaffolding.java
new file mode 100644
index 0000000..c758057
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/MsoRequestESTestscaffolding.java
@@ -0,0 +1,78 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:46:30 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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.adapters.vnf.async.client.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.adapters.vnf.async.client.MsoRequest"
+ );
+ }
+
+ private static void resetClasses() {
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/ObjectFactoryESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/ObjectFactoryESTest.java
new file mode 100644
index 0000000..ecfd66d
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/ObjectFactoryESTest.java
@@ -0,0 +1,142 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:50:08 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+import javax.xml.bind.JAXBElement;
+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 ObjectFactoryESTest extends ObjectFactoryESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test00() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ CreateVnfNotification createVnfNotification0 = objectFactory0.createCreateVnfNotification();
+ assertNull(createVnfNotification0.getErrorMessage());
+ }
+
+ @Test(timeout = 4000)
+ public void test01() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ JAXBElement<UpdateVnfNotification> jAXBElement0 = objectFactory0.createUpdateVnfNotification(updateVnfNotification0);
+ assertNotNull(jAXBElement0);
+ }
+
+ @Test(timeout = 4000)
+ public void test02() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ QueryVnfNotification queryVnfNotification0 = objectFactory0.createQueryVnfNotification();
+ assertNull(queryVnfNotification0.getException());
+ }
+
+ @Test(timeout = 4000)
+ public void test03() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ MsoRequest msoRequest0 = objectFactory0.createMsoRequest();
+ assertNull(msoRequest0.getServiceInstanceId());
+ }
+
+ @Test(timeout = 4000)
+ public void test04() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ CreateVnfNotification createVnfNotification0 = new CreateVnfNotification();
+ JAXBElement<CreateVnfNotification> jAXBElement0 = objectFactory0.createCreateVnfNotification(createVnfNotification0);
+ assertNotNull(jAXBElement0);
+ }
+
+ @Test(timeout = 4000)
+ public void test05() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ VnfRollback vnfRollback0 = objectFactory0.createVnfRollback();
+ assertNull(vnfRollback0.getTenantId());
+ }
+
+ @Test(timeout = 4000)
+ public void test06() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ DeleteVnfNotification deleteVnfNotification0 = new DeleteVnfNotification();
+ JAXBElement<DeleteVnfNotification> jAXBElement0 = objectFactory0.createDeleteVnfNotification(deleteVnfNotification0);
+ assertNotNull(jAXBElement0);
+ }
+
+ @Test(timeout = 4000)
+ public void test07() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ UpdateVnfNotification.Outputs.Entry updateVnfNotification_Outputs_Entry0 = objectFactory0.createUpdateVnfNotificationOutputsEntry();
+ assertNull(updateVnfNotification_Outputs_Entry0.getValue());
+ }
+
+ @Test(timeout = 4000)
+ public void test08() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ CreateVnfNotification.Outputs createVnfNotification_Outputs0 = objectFactory0.createCreateVnfNotificationOutputs();
+ assertNotNull(createVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test09() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ UpdateVnfNotification updateVnfNotification0 = objectFactory0.createUpdateVnfNotification();
+ assertNull(updateVnfNotification0.getMessageId());
+ }
+
+ @Test(timeout = 4000)
+ public void test10() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ UpdateVnfNotification.Outputs updateVnfNotification_Outputs0 = objectFactory0.createUpdateVnfNotificationOutputs();
+ assertNotNull(updateVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test11() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ CreateVnfNotification.Outputs.Entry createVnfNotification_Outputs_Entry0 = objectFactory0.createCreateVnfNotificationOutputsEntry();
+ assertNull(createVnfNotification_Outputs_Entry0.getKey());
+ }
+
+ @Test(timeout = 4000)
+ public void test12() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ DeleteVnfNotification deleteVnfNotification0 = objectFactory0.createDeleteVnfNotification();
+ assertNull(deleteVnfNotification0.getErrorMessage());
+ }
+
+ @Test(timeout = 4000)
+ public void test13() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ QueryVnfNotification.Outputs queryVnfNotification_Outputs0 = objectFactory0.createQueryVnfNotificationOutputs();
+ assertNotNull(queryVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test14() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ RollbackVnfNotification rollbackVnfNotification0 = objectFactory0.createRollbackVnfNotification();
+ JAXBElement<RollbackVnfNotification> jAXBElement0 = objectFactory0.createRollbackVnfNotification(rollbackVnfNotification0);
+ assertNotNull(jAXBElement0);
+ }
+
+ @Test(timeout = 4000)
+ public void test15() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ JAXBElement<QueryVnfNotification> jAXBElement0 = objectFactory0.createQueryVnfNotification(queryVnfNotification0);
+ assertNotNull(jAXBElement0);
+ }
+
+ @Test(timeout = 4000)
+ public void test16() throws Throwable {
+ ObjectFactory objectFactory0 = new ObjectFactory();
+ QueryVnfNotification.Outputs.Entry queryVnfNotification_Outputs_Entry0 = objectFactory0.createQueryVnfNotificationOutputsEntry();
+ assertNull(queryVnfNotification_Outputs_Entry0.getValue());
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/ObjectFactoryESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/ObjectFactoryESTestscaffolding.java
new file mode 100644
index 0000000..4482069
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/ObjectFactoryESTestscaffolding.java
@@ -0,0 +1,98 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:50:08 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 ObjectFactoryESTestscaffolding {
+
+ @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.adapters.vnf.async.client.ObjectFactory";
+ 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(ObjectFactoryESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.MsoRequest",
+ "org.openecomp.mso.adapters.vnf.async.client.RollbackVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.QueryVnfNotification$Outputs$Entry",
+ "org.openecomp.mso.adapters.vnf.async.client.UpdateVnfNotification$Outputs$Entry",
+ "org.openecomp.mso.adapters.vnf.async.client.CreateVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.DeleteVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.VnfStatus",
+ "org.openecomp.mso.adapters.vnf.async.client.CreateVnfNotification$Outputs",
+ "org.openecomp.mso.adapters.vnf.async.client.UpdateVnfNotification$Outputs",
+ "org.openecomp.mso.adapters.vnf.async.client.QueryVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.CreateVnfNotification$Outputs$Entry",
+ "org.openecomp.mso.adapters.vnf.async.client.QueryVnfNotification$Outputs",
+ "org.openecomp.mso.adapters.vnf.async.client.ObjectFactory",
+ "org.openecomp.mso.adapters.vnf.async.client.VnfRollback",
+ "org.openecomp.mso.adapters.vnf.async.client.UpdateVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory"
+ );
+ }
+
+ private static void resetClasses() {
+ org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(ObjectFactoryESTestscaffolding.class.getClassLoader());
+
+ org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
+ "org.openecomp.mso.adapters.vnf.async.client.ObjectFactory"
+ );
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/QueryVnfNotificationESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/QueryVnfNotificationESTest.java
new file mode 100644
index 0000000..f658251
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/QueryVnfNotificationESTest.java
@@ -0,0 +1,224 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:49:18 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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.junit.runner.RunWith;
+
+@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
+public class QueryVnfNotificationESTest extends QueryVnfNotificationESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test00() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ Boolean boolean0 = Boolean.valueOf("`97");
+ queryVnfNotification0.setVnfExists(boolean0);
+ Boolean boolean1 = queryVnfNotification0.isVnfExists();
+ assertFalse(boolean1);
+ }
+
+ @Test(timeout = 4000)
+ public void test01() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.completed = true;
+ boolean boolean0 = queryVnfNotification0.isCompleted();
+ assertTrue(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test02() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.setVnfId("");
+ String string0 = queryVnfNotification0.getVnfId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test03() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ VnfStatus vnfStatus0 = VnfStatus.FAILED;
+ queryVnfNotification0.status = vnfStatus0;
+ VnfStatus vnfStatus1 = queryVnfNotification0.getStatus();
+ assertSame(vnfStatus1, vnfStatus0);
+ }
+
+ @Test(timeout = 4000)
+ public void test04() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ QueryVnfNotification.Outputs queryVnfNotification_Outputs0 = new QueryVnfNotification.Outputs();
+ queryVnfNotification0.setOutputs(queryVnfNotification_Outputs0);
+ QueryVnfNotification.Outputs queryVnfNotification_Outputs1 = queryVnfNotification0.getOutputs();
+ assertSame(queryVnfNotification_Outputs1, queryVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test05() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.messageId = "FAILED";
+ String string0 = queryVnfNotification0.getMessageId();
+ assertEquals("FAILED", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test06() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.INTERNAL;
+ queryVnfNotification0.setException(msoExceptionCategory0);
+ MsoExceptionCategory msoExceptionCategory1 = queryVnfNotification0.getException();
+ assertEquals(MsoExceptionCategory.INTERNAL, msoExceptionCategory1);
+ }
+
+ @Test(timeout = 4000)
+ public void test07() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.errorMessage = "Jk{*#{!k";
+ String string0 = queryVnfNotification0.getErrorMessage();
+ assertEquals("Jk{*#{!k", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test08() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ String string0 = queryVnfNotification0.getMessageId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test09() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.setMessageId("");
+ String string0 = queryVnfNotification0.getMessageId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test10() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.setCompleted(true);
+ assertTrue(queryVnfNotification0.isCompleted());
+ }
+
+ @Test(timeout = 4000)
+ public void test11() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.setVnfId("M:E`?t");
+ String string0 = queryVnfNotification0.getVnfId();
+ assertEquals("M:E`?t", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test12() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ String string0 = queryVnfNotification0.getVnfId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test13() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ boolean boolean0 = queryVnfNotification0.isCompleted();
+ assertFalse(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test14() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.getStatus();
+ }
+
+ @Test(timeout = 4000)
+ public void test15() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.setErrorMessage("");
+ String string0 = queryVnfNotification0.getErrorMessage();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test16() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ VnfStatus vnfStatus0 = VnfStatus.NOTFOUND;
+ queryVnfNotification0.setStatus(vnfStatus0);
+ assertFalse(queryVnfNotification0.isCompleted());
+ }
+
+ @Test(timeout = 4000)
+ public void test17() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ Boolean boolean0 = queryVnfNotification0.isVnfExists();
+ assertNull(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test18() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ queryVnfNotification0.getException();
+ }
+
+ @Test(timeout = 4000)
+ public void test19() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ QueryVnfNotification.Outputs queryVnfNotification_Outputs0 = queryVnfNotification0.getOutputs();
+ assertNull(queryVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test20() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ String string0 = queryVnfNotification0.getErrorMessage();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test21() throws Throwable {
+ QueryVnfNotification queryVnfNotification0 = new QueryVnfNotification();
+ Boolean boolean0 = new Boolean(true);
+ queryVnfNotification0.setVnfExists(boolean0);
+ Boolean boolean1 = queryVnfNotification0.isVnfExists();
+ assertTrue(boolean1);
+ }
+
+ @Test(timeout = 4000)
+ public void test22() throws Throwable {
+ QueryVnfNotification.Outputs queryVnfNotification_Outputs0 = new QueryVnfNotification.Outputs();
+ List<QueryVnfNotification.Outputs.Entry> list0 = queryVnfNotification_Outputs0.getEntry();
+ List<QueryVnfNotification.Outputs.Entry> list1 = queryVnfNotification_Outputs0.getEntry();
+ assertSame(list1, list0);
+ }
+
+ @Test(timeout = 4000)
+ public void test23() throws Throwable {
+ QueryVnfNotification.Outputs.Entry queryVnfNotification_Outputs_Entry0 = new QueryVnfNotification.Outputs.Entry();
+ String string0 = queryVnfNotification_Outputs_Entry0.getKey();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test24() throws Throwable {
+ QueryVnfNotification.Outputs.Entry queryVnfNotification_Outputs_Entry0 = new QueryVnfNotification.Outputs.Entry();
+ queryVnfNotification_Outputs_Entry0.setValue("{[VrUC");
+ assertNull(queryVnfNotification_Outputs_Entry0.getKey());
+ }
+
+ @Test(timeout = 4000)
+ public void test25() throws Throwable {
+ QueryVnfNotification.Outputs.Entry queryVnfNotification_Outputs_Entry0 = new QueryVnfNotification.Outputs.Entry();
+ String string0 = queryVnfNotification_Outputs_Entry0.getValue();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test26() throws Throwable {
+ QueryVnfNotification.Outputs.Entry queryVnfNotification_Outputs_Entry0 = new QueryVnfNotification.Outputs.Entry();
+ queryVnfNotification_Outputs_Entry0.setKey("");
+ assertNull(queryVnfNotification_Outputs_Entry0.getValue());
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/QueryVnfNotificationESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/QueryVnfNotificationESTestscaffolding.java
new file mode 100644
index 0000000..1c1a774
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/QueryVnfNotificationESTestscaffolding.java
@@ -0,0 +1,82 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:49:18 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 QueryVnfNotificationESTestscaffolding {
+
+ @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.adapters.vnf.async.client.QueryVnfNotification";
+ 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(QueryVnfNotificationESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.QueryVnfNotification$Outputs$Entry",
+ "org.openecomp.mso.adapters.vnf.async.client.VnfStatus",
+ "org.openecomp.mso.adapters.vnf.async.client.QueryVnfNotification$Outputs",
+ "org.openecomp.mso.adapters.vnf.async.client.QueryVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory"
+ );
+ }
+
+ private static void resetClasses() {
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/RollbackVnfNotificationESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/RollbackVnfNotificationESTest.java
new file mode 100644
index 0000000..02203ac
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/RollbackVnfNotificationESTest.java
@@ -0,0 +1,100 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:46:51 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 RollbackVnfNotificationESTest extends RollbackVnfNotificationESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test00() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ rollbackVnfNotification0.setMessageId(":HW@8Kxo`M[S:7>");
+ String string0 = rollbackVnfNotification0.getMessageId();
+ assertNotNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test01() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ rollbackVnfNotification0.errorMessage = "INTERNAL";
+ String string0 = rollbackVnfNotification0.getErrorMessage();
+ assertEquals("INTERNAL", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test02() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ rollbackVnfNotification0.errorMessage = "";
+ String string0 = rollbackVnfNotification0.getErrorMessage();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test03() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ rollbackVnfNotification0.getException();
+ }
+
+ @Test(timeout = 4000)
+ public void test04() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ rollbackVnfNotification0.setMessageId("");
+ String string0 = rollbackVnfNotification0.getMessageId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test05() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ String string0 = rollbackVnfNotification0.getErrorMessage();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test06() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.INTERNAL;
+ rollbackVnfNotification0.setException(msoExceptionCategory0);
+ MsoExceptionCategory msoExceptionCategory1 = rollbackVnfNotification0.getException();
+ assertSame(msoExceptionCategory1, msoExceptionCategory0);
+ }
+
+ @Test(timeout = 4000)
+ public void test07() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ rollbackVnfNotification0.setErrorMessage("");
+ assertEquals("", rollbackVnfNotification0.getErrorMessage());
+ }
+
+ @Test(timeout = 4000)
+ public void test08() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ String string0 = rollbackVnfNotification0.getMessageId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test09() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ boolean boolean0 = rollbackVnfNotification0.isCompleted();
+ assertFalse(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test10() throws Throwable {
+ RollbackVnfNotification rollbackVnfNotification0 = new RollbackVnfNotification();
+ rollbackVnfNotification0.setCompleted(true);
+ boolean boolean0 = rollbackVnfNotification0.isCompleted();
+ assertTrue(boolean0);
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/RollbackVnfNotificationESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/RollbackVnfNotificationESTestscaffolding.java
new file mode 100644
index 0000000..8d91d5c
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/RollbackVnfNotificationESTestscaffolding.java
@@ -0,0 +1,79 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:46:51 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 RollbackVnfNotificationESTestscaffolding {
+
+ @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.adapters.vnf.async.client.RollbackVnfNotification";
+ 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(RollbackVnfNotificationESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.RollbackVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory"
+ );
+ }
+
+ private static void resetClasses() {
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/UpdateVnfNotificationESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/UpdateVnfNotificationESTest.java
new file mode 100644
index 0000000..e71d416
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/UpdateVnfNotificationESTest.java
@@ -0,0 +1,181 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:51:15 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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.junit.runner.RunWith;
+
+@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
+public class UpdateVnfNotificationESTest extends UpdateVnfNotificationESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test00() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.tenantCreated = true;
+ updateVnfNotification0.setRollback(vnfRollback0);
+ VnfRollback vnfRollback1 = updateVnfNotification0.getRollback();
+ assertNull(vnfRollback1.getTenantId());
+ }
+
+ @Test(timeout = 4000)
+ public void test01() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ VnfRollback vnfRollback0 = new VnfRollback();
+ updateVnfNotification0.rollback = vnfRollback0;
+ VnfRollback vnfRollback1 = updateVnfNotification0.getRollback();
+ assertFalse(vnfRollback1.isTenantCreated());
+ }
+
+ @Test(timeout = 4000)
+ public void test02() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ UpdateVnfNotification.Outputs updateVnfNotification_Outputs0 = new UpdateVnfNotification.Outputs();
+ updateVnfNotification0.setOutputs(updateVnfNotification_Outputs0);
+ UpdateVnfNotification.Outputs updateVnfNotification_Outputs1 = updateVnfNotification0.getOutputs();
+ assertSame(updateVnfNotification_Outputs1, updateVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test03() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ updateVnfNotification0.messageId = ":_rGAeg9'Jf17.p+,m";
+ String string0 = updateVnfNotification0.getMessageId();
+ assertEquals(":_rGAeg9'Jf17.p+,m", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test04() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ updateVnfNotification0.setMessageId("");
+ String string0 = updateVnfNotification0.getMessageId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test05() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.IO;
+ updateVnfNotification0.exception = msoExceptionCategory0;
+ MsoExceptionCategory msoExceptionCategory1 = updateVnfNotification0.getException();
+ assertEquals(MsoExceptionCategory.IO, msoExceptionCategory1);
+ }
+
+ @Test(timeout = 4000)
+ public void test06() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ updateVnfNotification0.errorMessage = null;
+ updateVnfNotification0.errorMessage = "";
+ String string0 = updateVnfNotification0.getErrorMessage();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test07() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ VnfRollback vnfRollback0 = updateVnfNotification0.getRollback();
+ assertNull(vnfRollback0);
+ }
+
+ @Test(timeout = 4000)
+ public void test08() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ boolean boolean0 = updateVnfNotification0.isCompleted();
+ assertFalse(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test09() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ updateVnfNotification0.getException();
+ }
+
+ @Test(timeout = 4000)
+ public void test10() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ String string0 = updateVnfNotification0.getMessageId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test11() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.IO;
+ updateVnfNotification0.setException(msoExceptionCategory0);
+ assertEquals(MsoExceptionCategory.IO, updateVnfNotification0.getException());
+ }
+
+ @Test(timeout = 4000)
+ public void test12() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ updateVnfNotification0.setCompleted(true);
+ boolean boolean0 = updateVnfNotification0.isCompleted();
+ assertTrue(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test13() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ UpdateVnfNotification.Outputs updateVnfNotification_Outputs0 = updateVnfNotification0.getOutputs();
+ assertNull(updateVnfNotification_Outputs0);
+ }
+
+ @Test(timeout = 4000)
+ public void test14() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ updateVnfNotification0.setErrorMessage("m.m)#ZJF);)x*\"HQ8WB");
+ String string0 = updateVnfNotification0.getErrorMessage();
+ assertEquals("m.m)#ZJF);)x*\"HQ8WB", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test15() throws Throwable {
+ UpdateVnfNotification updateVnfNotification0 = new UpdateVnfNotification();
+ String string0 = updateVnfNotification0.getErrorMessage();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test16() throws Throwable {
+ UpdateVnfNotification.Outputs updateVnfNotification_Outputs0 = new UpdateVnfNotification.Outputs();
+ List<UpdateVnfNotification.Outputs.Entry> list0 = updateVnfNotification_Outputs0.getEntry();
+ List<UpdateVnfNotification.Outputs.Entry> list1 = updateVnfNotification_Outputs0.getEntry();
+ assertSame(list1, list0);
+ }
+
+ @Test(timeout = 4000)
+ public void test17() throws Throwable {
+ UpdateVnfNotification.Outputs.Entry updateVnfNotification_Outputs_Entry0 = new UpdateVnfNotification.Outputs.Entry();
+ updateVnfNotification_Outputs_Entry0.setKey(",");
+ assertEquals(",", updateVnfNotification_Outputs_Entry0.getKey());
+ }
+
+ @Test(timeout = 4000)
+ public void test18() throws Throwable {
+ UpdateVnfNotification.Outputs.Entry updateVnfNotification_Outputs_Entry0 = new UpdateVnfNotification.Outputs.Entry();
+ String string0 = updateVnfNotification_Outputs_Entry0.getValue();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test19() throws Throwable {
+ UpdateVnfNotification.Outputs.Entry updateVnfNotification_Outputs_Entry0 = new UpdateVnfNotification.Outputs.Entry();
+ updateVnfNotification_Outputs_Entry0.setValue("IO");
+ assertNull(updateVnfNotification_Outputs_Entry0.getKey());
+ }
+
+ @Test(timeout = 4000)
+ public void test20() throws Throwable {
+ UpdateVnfNotification.Outputs.Entry updateVnfNotification_Outputs_Entry0 = new UpdateVnfNotification.Outputs.Entry();
+ String string0 = updateVnfNotification_Outputs_Entry0.getKey();
+ assertNull(string0);
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/UpdateVnfNotificationESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/UpdateVnfNotificationESTestscaffolding.java
new file mode 100644
index 0000000..6517163
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/UpdateVnfNotificationESTestscaffolding.java
@@ -0,0 +1,83 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:51:15 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 UpdateVnfNotificationESTestscaffolding {
+
+ @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.adapters.vnf.async.client.UpdateVnfNotification";
+ 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(UpdateVnfNotificationESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.MsoRequest",
+ "org.openecomp.mso.adapters.vnf.async.client.UpdateVnfNotification$Outputs$Entry",
+ "org.openecomp.mso.adapters.vnf.async.client.UpdateVnfNotification$Outputs",
+ "org.openecomp.mso.adapters.vnf.async.client.VnfRollback",
+ "org.openecomp.mso.adapters.vnf.async.client.UpdateVnfNotification",
+ "org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory"
+ );
+ }
+
+ private static void resetClasses() {
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfRollbackESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfRollbackESTest.java
new file mode 100644
index 0000000..7ac55f0
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfRollbackESTest.java
@@ -0,0 +1,132 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:50:26 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 VnfRollbackESTest extends VnfRollbackESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test00() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.setVnfId("12&$HOD'rH:!tJy");
+ String string0 = vnfRollback0.getVnfId();
+ assertEquals("12&$HOD'rH:!tJy", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test01() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.vnfId = "";
+ String string0 = vnfRollback0.getVnfId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test02() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.tenantId = "=x@lXzB:nqB-5F9";
+ String string0 = vnfRollback0.getTenantId();
+ assertEquals("=x@lXzB:nqB-5F9", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test03() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ MsoRequest msoRequest0 = new MsoRequest();
+ vnfRollback0.setMsoRequest(msoRequest0);
+ MsoRequest msoRequest1 = vnfRollback0.getMsoRequest();
+ assertNull(msoRequest1.getServiceInstanceId());
+ }
+
+ @Test(timeout = 4000)
+ public void test04() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.setCloudSiteId("/8Qc+9]");
+ String string0 = vnfRollback0.getCloudSiteId();
+ assertEquals("/8Qc+9]", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test05() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.setTenantCreated(true);
+ boolean boolean0 = vnfRollback0.isTenantCreated();
+ assertTrue(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test06() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ boolean boolean0 = vnfRollback0.isTenantCreated();
+ assertFalse(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test07() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ String string0 = vnfRollback0.getVnfId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test08() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ MsoRequest msoRequest0 = vnfRollback0.getMsoRequest();
+ assertNull(msoRequest0);
+ }
+
+ @Test(timeout = 4000)
+ public void test09() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.setVnfCreated(true);
+ boolean boolean0 = vnfRollback0.isVnfCreated();
+ assertTrue(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test10() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ boolean boolean0 = vnfRollback0.isVnfCreated();
+ assertFalse(boolean0);
+ }
+
+ @Test(timeout = 4000)
+ public void test11() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.setCloudSiteId("");
+ String string0 = vnfRollback0.getCloudSiteId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test12() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ vnfRollback0.setTenantId("");
+ String string0 = vnfRollback0.getTenantId();
+ assertEquals("", string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test13() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ String string0 = vnfRollback0.getCloudSiteId();
+ assertNull(string0);
+ }
+
+ @Test(timeout = 4000)
+ public void test14() throws Throwable {
+ VnfRollback vnfRollback0 = new VnfRollback();
+ String string0 = vnfRollback0.getTenantId();
+ assertNull(string0);
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfRollbackESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfRollbackESTestscaffolding.java
new file mode 100644
index 0000000..10defa4
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfRollbackESTestscaffolding.java
@@ -0,0 +1,79 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:50:26 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 VnfRollbackESTestscaffolding {
+
+ @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.adapters.vnf.async.client.VnfRollback";
+ 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(VnfRollbackESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.MsoRequest",
+ "org.openecomp.mso.adapters.vnf.async.client.VnfRollback"
+ );
+ }
+
+ private static void resetClasses() {
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfStatusESTest.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfStatusESTest.java
new file mode 100644
index 0000000..2f40d5e
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfStatusESTest.java
@@ -0,0 +1,91 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 10:48:53 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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.junit.runner.RunWith;
+
+@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
+public class VnfStatusESTest extends VnfStatusESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test0() throws Throwable {
+ VnfStatus[] vnfStatusArray0 = VnfStatus.values();
+ assertNotNull(vnfStatusArray0);
+ }
+
+ @Test(timeout = 4000)
+ public void test2() throws Throwable {
+ // Undeclared exception!
+ try {
+ VnfStatus.valueOf((String) null);
+ fail("Expecting exception: NullPointerException");
+
+ } catch(NullPointerException e) {
+ //
+ // Name is null
+ //
+ verifyException("java.lang.Enum", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test3() throws Throwable {
+ // Undeclared exception!
+ try {
+ VnfStatus.valueOf("");
+ fail("Expecting exception: IllegalArgumentException");
+
+ } catch(IllegalArgumentException e) {
+ //
+ // No enum constant org.openecomp.mso.adapters.vnf.async.client.VnfStatus.
+ //
+ verifyException("java.lang.Enum", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test4() throws Throwable {
+ // Undeclared exception!
+ try {
+ VnfStatus.fromValue((String) null);
+ fail("Expecting exception: NullPointerException");
+
+ } catch(NullPointerException e) {
+ //
+ // Name is null
+ //
+ verifyException("java.lang.Enum", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test5() throws Throwable {
+ // Undeclared exception!
+ try {
+ VnfStatus.fromValue("");
+ fail("Expecting exception: IllegalArgumentException");
+
+ } catch(IllegalArgumentException e) {
+ //
+ // No enum constant org.openecomp.mso.adapters.vnf.async.client.VnfStatus.
+ //
+ verifyException("java.lang.Enum", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test7() throws Throwable {
+ VnfStatus vnfStatus0 = VnfStatus.NOTFOUND;
+ String string0 = vnfStatus0.value();
+ assertEquals("NOTFOUND", string0);
+ }
+}
diff --git a/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfStatusESTestscaffolding.java b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfStatusESTestscaffolding.java
new file mode 100644
index 0000000..7875037
--- /dev/null
+++ b/adapters/mso-vnf-adapter-async-client/src/test/java/org/openecomp/mso/adapters/vnf/async/client/VnfStatusESTestscaffolding.java
@@ -0,0 +1,83 @@
+/**
+ * Scaffolding file used to store all the setups needed to run
+ * tests automatically generated by EvoSuite
+ * Mon Nov 14 10:48:53 GMT 2016
+ */
+
+package org.openecomp.mso.adapters.vnf.async.client;
+
+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 VnfStatusESTestscaffolding {
+
+ @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.adapters.vnf.async.client.VnfStatus";
+ 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(VnfStatusESTestscaffolding.class.getClassLoader() ,
+ "org.openecomp.mso.adapters.vnf.async.client.VnfStatus"
+ );
+ }
+
+ private static void resetClasses() {
+ org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(VnfStatusESTestscaffolding.class.getClassLoader());
+
+ org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
+ "org.openecomp.mso.adapters.vnf.async.client.VnfStatus"
+ );
+ }
+}