diff options
author | 2017-09-08 13:27:46 -0400 | |
---|---|---|
committer | 2017-09-08 13:32:24 -0400 | |
commit | 62cd6aaaf74aa91ee0037c0e155c8e7284f07567 (patch) | |
tree | 68c0c53c9156f5aa3c6b3599ac940770f986633d /mso-catalog-db/src/test/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolderESTest.java | |
parent | fa1a211d28a912892fcd888569df033900eb01ee (diff) |
1710 Rebase - Second Attempt
This commit rebases changes from openecomp-mso/internal-staging-1710 up to and including this codecloud commit:
54483fc6606ddb1591a2e9da61bff8712325f924
Wed Sep 6 18:12:56 2017 -0400
Rebasing was done on a branch on top of this commit in so/master in ONAP:
93fbdfbe46104f8859d4754040f979cb7997c157
Thu Sep 7 16:42:59 2017 +0000
Change-Id: I4ad9abf40da32bf5bdca43e868b8fa2dbcd9dc59
Issue-id: SO-107
Signed-off-by: Arthur Martella <amartell@research.att.com>
Diffstat (limited to 'mso-catalog-db/src/test/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolderESTest.java')
-rw-r--r-- | mso-catalog-db/src/test/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolderESTest.java | 261 |
1 files changed, 0 insertions, 261 deletions
diff --git a/mso-catalog-db/src/test/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolderESTest.java b/mso-catalog-db/src/test/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolderESTest.java deleted file mode 100644 index eafc69906f..0000000000 --- a/mso-catalog-db/src/test/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolderESTest.java +++ /dev/null @@ -1,261 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Tue Feb 21 15:49:25 GMT 2017 - */ - -package org.openecomp.mso.db.catalog.beans; - -import org.junit.Test; -import static org.junit.Assert.*; -import static org.evosuite.shaded.org.mockito.Mockito.*; -import static org.evosuite.runtime.EvoAssertions.*; -import java.util.ArrayList; -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.evosuite.runtime.PrivateAccess; -import org.evosuite.runtime.ViolatedAssumptionAnswer; -import org.junit.runner.RunWith; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class ServiceMacroHolderESTest extends ServiceMacroHolderESTestscaffolding { - - @Test(timeout = 4000) - public void test00() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - serviceMacroHolder0.setVnfResources((ArrayList<VnfResource>) null); - ArrayList<VnfResource> arrayList0 = serviceMacroHolder0.getVnfResources(); - assertNull(arrayList0); - } - - @Test(timeout = 4000) - public void test01() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - VnfResource vnfResource0 = new VnfResource(); - serviceMacroHolder0.addVnfResource(vnfResource0); - ArrayList<VnfResource> arrayList0 = serviceMacroHolder0.getVnfResources(); - assertEquals(1, arrayList0.size()); - } - - @Test(timeout = 4000) - public void test02() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - Service service0 = serviceMacroHolder0.getService(); - assertNull(service0); - } - - @Test(timeout = 4000) - public void test03() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - service0.setId(1124); - Service service1 = serviceMacroHolder0.getService(); - assertNull(service1.getServiceNameVersionId()); - } - - @Test(timeout = 4000) - public void test04() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - service0.setId((-760)); - Service service1 = serviceMacroHolder0.getService(); - assertNull(service1.getServiceNameVersionId()); - } - - @Test(timeout = 4000) - public void test05() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - NetworkResourceCustomization networkResourceCustomization0 = new NetworkResourceCustomization(); - serviceMacroHolder0.addNetworkResourceCustomization(networkResourceCustomization0); - ArrayList<NetworkResourceCustomization> arrayList0 = serviceMacroHolder0.getNetworkResourceCustomization(); - assertFalse(arrayList0.isEmpty()); - } - - @Test(timeout = 4000) - public void test06() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - serviceMacroHolder0.setAllottedResourceCustomization((ArrayList<AllottedResourceCustomization>) null); - ArrayList<AllottedResourceCustomization> arrayList0 = serviceMacroHolder0.getAllottedResourceCustomization(); - assertNull(arrayList0); - } - - @Test(timeout = 4000) - public void test07() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - AllottedResourceCustomization allottedResourceCustomization0 = new AllottedResourceCustomization(); - serviceMacroHolder0.addAllottedResourceCustomization(allottedResourceCustomization0); - ArrayList<AllottedResourceCustomization> arrayList0 = serviceMacroHolder0.getAllottedResourceCustomization(); - assertFalse(arrayList0.isEmpty()); - } - - @Test(timeout = 4000) - public void test08() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - serviceMacroHolder0.setAllottedResourceCustomization((ArrayList<AllottedResourceCustomization>) null); - String string0 = serviceMacroHolder0.toString(); - assertEquals("ServicePlus: service: nullnone", string0); - } - - @Test(timeout = 4000) - public void test09() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - serviceMacroHolder0.setNetworkResourceCustomization((ArrayList<NetworkResourceCustomization>) null); - String string0 = serviceMacroHolder0.toString(); - assertEquals("ServicePlus: service: nullnone", string0); - } - - @Test(timeout = 4000) - public void test10() throws Throwable { - Service service0 = mock(Service.class, new ViolatedAssumptionAnswer()); - doReturn((String) null).when(service0).toString(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - ArrayList<Object> arrayList0 = new ArrayList<Object>(); - arrayList0.add((Object) serviceMacroHolder0); - PrivateAccess.setVariable((Class<ServiceMacroHolder>) ServiceMacroHolder.class, serviceMacroHolder0, "vnfResources", (Object) arrayList0); - // Undeclared exception! - try { - serviceMacroHolder0.toString(); - fail("Expecting exception: ClassCastException"); - - } catch(ClassCastException e) { - // - // org.openecomp.mso.db.catalog.beans.ServiceMacroHolder cannot be cast to org.openecomp.mso.db.catalog.beans.VnfResource - // - verifyException("org.openecomp.mso.db.catalog.beans.ServiceMacroHolder", e); - } - } - - @Test(timeout = 4000) - public void test11() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - serviceMacroHolder0.setVnfResources((ArrayList<VnfResource>) null); - String string0 = serviceMacroHolder0.toString(); - assertEquals("ServicePlus: service: nullnone", string0); - } - - @Test(timeout = 4000) - public void test12() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - // Undeclared exception! - try { - serviceMacroHolder0.toString(); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.openecomp.mso.db.catalog.beans.Service", e); - } - } - - @Test(timeout = 4000) - public void test13() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - AllottedResourceCustomization allottedResourceCustomization0 = new AllottedResourceCustomization(); - serviceMacroHolder0.addAllottedResourceCustomization(allottedResourceCustomization0); - String string0 = serviceMacroHolder0.toString(); - assertEquals("ServicePlus: service: nullnoneAllottedResourceCustomizations:ARC[0]: modelName=null,modelVersion=null,version=null,modelUuid=null,modelInvariantUuid=null,modelCustomizationUuid=null,modelInstanceName=null,description=null,modelInstanceName=null,created=null", string0); - } - - @Test(timeout = 4000) - public void test14() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - NetworkResourceCustomization networkResourceCustomization0 = new NetworkResourceCustomization(); - serviceMacroHolder0.addNetworkResourceCustomization(networkResourceCustomization0); - String string0 = serviceMacroHolder0.toString(); - assertEquals("ServicePlus: service: nullnoneNetworkResourceCustomizations:NRC[0]: modelName=nullmodelUuid=nullmodelUuid=nullmodelInvariantUuid=nullmodelVersion=nullmodelCustomizationUuid=nullmodelInstanceName=nullnetworkResourceId=0networkType=null", string0); - } - - @Test(timeout = 4000) - public void test15() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - NetworkResourceCustomization networkResourceCustomization0 = new NetworkResourceCustomization(); - serviceMacroHolder0.setNetworkResourceCustomization((ArrayList<NetworkResourceCustomization>) null); - serviceMacroHolder0.addNetworkResourceCustomization(networkResourceCustomization0); - assertNull(networkResourceCustomization0.getModelInstanceName()); - } - - @Test(timeout = 4000) - public void test16() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - serviceMacroHolder0.setVnfResources((ArrayList<VnfResource>) null); - VnfResource vnfResource0 = new VnfResource(); - serviceMacroHolder0.addVnfResource(vnfResource0); - assertNull(vnfResource0.getModelCustomizationUuid()); - } - - @Test(timeout = 4000) - public void test17() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - VnfResource vnfResource0 = new VnfResource(); - serviceMacroHolder0.addVnfResource(vnfResource0); - String string0 = serviceMacroHolder0.toString(); - assertEquals("ServicePlus: service: nullVnfResources: , vnfResource[0]:VNF=null,version=null,mode=null,template=null,envtId=null,asdcUuid=null,aicVersionMin=null,aicVersionMax=null,modelInvariantUuid=null,modelVersion=null,modelCustomizationName=null,modelName=null,serviceModelInvariantUUID=null,modelCustomizationUuid=nullVfModules: NONE", string0); - } - - @Test(timeout = 4000) - public void test18() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - serviceMacroHolder0.addVnfResource((VnfResource) null); - } - - @Test(timeout = 4000) - public void test19() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - serviceMacroHolder0.setNetworkResourceCustomization((ArrayList<NetworkResourceCustomization>) null); - ArrayList<NetworkResourceCustomization> arrayList0 = serviceMacroHolder0.getNetworkResourceCustomization(); - assertNull(arrayList0); - } - - @Test(timeout = 4000) - public void test20() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - Service service1 = serviceMacroHolder0.getService(); - assertNull(service1.getModelInvariantUUID()); - } - - @Test(timeout = 4000) - public void test21() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - ArrayList<NetworkResourceCustomization> arrayList0 = serviceMacroHolder0.getNetworkResourceCustomization(); - assertEquals(0, arrayList0.size()); - } - - @Test(timeout = 4000) - public void test22() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - serviceMacroHolder0.setAllottedResourceCustomization((ArrayList<AllottedResourceCustomization>) null); - AllottedResourceCustomization allottedResourceCustomization0 = new AllottedResourceCustomization(); - serviceMacroHolder0.addAllottedResourceCustomization(allottedResourceCustomization0); - assertNull(allottedResourceCustomization0.getVersion()); - } - - @Test(timeout = 4000) - public void test23() throws Throwable { - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(); - Service service0 = new Service(); - serviceMacroHolder0.setService(service0); - assertNull(service0.getModelInvariantUUID()); - } - - @Test(timeout = 4000) - public void test24() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - ArrayList<AllottedResourceCustomization> arrayList0 = serviceMacroHolder0.getAllottedResourceCustomization(); - assertEquals(0, arrayList0.size()); - } - - @Test(timeout = 4000) - public void test25() throws Throwable { - Service service0 = new Service(); - ServiceMacroHolder serviceMacroHolder0 = new ServiceMacroHolder(service0); - ArrayList<VnfResource> arrayList0 = serviceMacroHolder0.getVnfResources(); - assertTrue(arrayList0.isEmpty()); - } -} |