From 62cd6aaaf74aa91ee0037c0e155c8e7284f07567 Mon Sep 17 00:00:00 2001 From: Arthur Martella Date: Fri, 8 Sep 2017 13:27:46 -0400 Subject: 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 --- .../asdc/installer/BigDecimalVersionESTest.java | 138 --------------------- 1 file changed, 138 deletions(-) delete mode 100644 asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/BigDecimalVersionESTest.java (limited to 'asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/BigDecimalVersionESTest.java') diff --git a/asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/BigDecimalVersionESTest.java b/asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/BigDecimalVersionESTest.java deleted file mode 100644 index 4675f05477..0000000000 --- a/asdc-controller/src/test/java/org/openecomp/mso/asdc/installer/BigDecimalVersionESTest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Fri Nov 25 13:37:47 GMT 2016 - */ - -package org.openecomp.mso.asdc.installer; - -import org.junit.Test; -import static org.junit.Assert.*; -import static org.evosuite.runtime.EvoAssertions.*; - -import java.math.BigDecimal; -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 BigDecimalVersionESTest extends BigDecimalVersionESTestscaffolding { - - @Test(timeout = 4000) - public void test00() throws Throwable { - String string0 = BigDecimalVersion.castAndCheckNotificationVersionToString("9"); - assertEquals("9", string0); - } - - @Test(timeout = 4000) - public void test01() throws Throwable { - BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("0"); - assertEquals(0, bigDecimal0.shortValue()); - } - - @Test(timeout = 4000) - public void test02() throws Throwable { - BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("9"); - assertEquals(9, bigDecimal0.byteValue()); - } - - @Test(timeout = 4000) - public void test03() throws Throwable { - BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("-1"); - assertEquals(-1, bigDecimal0.byteValue()); - } - - @Test(timeout = 4000) - public void test04() throws Throwable { - // Undeclared exception! - try { - BigDecimalVersion.castAndCheckNotificationVersionToString("fgt+&6@pL9`5EE}.!.,"); - fail("Expecting exception: NumberFormatException"); - - } catch(NumberFormatException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("java.math.BigDecimal", e); - } - } - - @Test(timeout = 4000) - public void test05() throws Throwable { - // Undeclared exception! - try { - BigDecimalVersion.castAndCheckNotificationVersionToString((String) null); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e); - } - } - - @Test(timeout = 4000) - public void test06() throws Throwable { - // Undeclared exception! - try { - BigDecimalVersion.castAndCheckNotificationVersion((String) null); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e); - } - } - - @Test(timeout = 4000) - public void test07() throws Throwable { - // Undeclared exception! - try { - BigDecimalVersion.castAndCheckNotificationVersion("."); - fail("Expecting exception: ArrayIndexOutOfBoundsException"); - - } catch(ArrayIndexOutOfBoundsException e) { - // - // 0 - // - verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e); - } - } - - @Test(timeout = 4000) - public void test08() throws Throwable { - // Undeclared exception! - try { - BigDecimalVersion.castAndCheckNotificationVersion("Mf**K`5E.~Fu.,q"); - fail("Expecting exception: NumberFormatException"); - - } catch(NumberFormatException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("java.math.BigDecimal", e); - } - } - - @Test(timeout = 4000) - public void test09() throws Throwable { - BigDecimalVersion bigDecimalVersion0 = new BigDecimalVersion(); - } - - @Test(timeout = 4000) - public void test10() throws Throwable { - // Undeclared exception! - try { - BigDecimalVersion.castAndCheckNotificationVersionToString("."); - fail("Expecting exception: ArrayIndexOutOfBoundsException"); - - } catch(ArrayIndexOutOfBoundsException e) { - // - // 0 - // - verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e); - } - } -} -- cgit 1.2.3-korg