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 --- .../properties/AbstractMsoPropertiesESTest.java | 151 --------------------- 1 file changed, 151 deletions(-) delete mode 100644 common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java (limited to 'common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java') diff --git a/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java b/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java deleted file mode 100644 index 535d929807..0000000000 --- a/common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * This file was automatically generated by EvoSuite - * Mon Nov 14 09:09:20 GMT 2016 - */ - -package org.openecomp.mso.properties; - -import static org.evosuite.runtime.EvoAssertions.verifyException; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.io.FileNotFoundException; - -import org.evosuite.runtime.EvoRunner; -import org.evosuite.runtime.EvoRunnerParameters; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) -public class AbstractMsoPropertiesESTest extends AbstractMsoPropertiesESTestscaffolding { - - @Test(timeout = 4000) - public void test00() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - String string0 = msoJavaProperties0.toString(); - assertEquals("Config file null(Timer:0mins):\n\n\n", string0); - } - - @Test(timeout = 4000) - public void test01() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - msoJavaProperties1.propertiesFileName = "+"; - msoJavaProperties1.getPropertiesFileName(); - assertEquals(0, msoJavaProperties1.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test02() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = msoJavaProperties0.clone(); - msoJavaProperties1.propertiesFileName = ""; - msoJavaProperties1.getPropertiesFileName(); - assertEquals(0, msoJavaProperties1.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test03() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.automaticRefreshInMinutes = (-1447); - int int0 = msoJavaProperties0.getAutomaticRefreshInMinutes(); - assertEquals((-1447), int0); - } - - @Test(timeout = 4000) - public void test04() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.equals(msoJavaProperties0); - assertEquals(0, msoJavaProperties0.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test05() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.equals("X<0P%qxWR fu\""); - assertEquals(0, msoJavaProperties0.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test06() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - MsoJavaProperties msoJavaProperties1 = (MsoJavaProperties)msoJavaProperties0.clone(); - assertEquals(0, msoJavaProperties1.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test07() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.automaticRefreshInMinutes = (-1447); - MsoJavaProperties msoJavaProperties1 = (MsoJavaProperties)msoJavaProperties0.clone(); - assertTrue(msoJavaProperties1.equals((Object)msoJavaProperties0)); - } - - /** - * TODO: fails when run using maven, but succeeds when run using eclipse - * @throws Throwable - */ - @Ignore - @Test(timeout = 4000) - public void test08() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - // Undeclared exception! - try { - msoJavaProperties0.reloadPropertiesFile(); - fail("Expecting exception: NullPointerException"); - - } catch(NullPointerException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test09() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.propertiesFileName = "ASDC_ARTIFACT_ALREADY_DEPLOYED"; - try { - msoJavaProperties0.reloadPropertiesFile(); - fail("Expecting exception: FileNotFoundException"); - - } catch(FileNotFoundException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test10() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - try { - msoJavaProperties0.loadPropertiesFile("Trying to reset value handler for type ["); - fail("Expecting exception: FileNotFoundException"); - - } catch(FileNotFoundException e) { - // - // no message in exception (getMessage() returned null) - // - verifyException("org.evosuite.runtime.mock.java.io.MockFileInputStream", e); - } - } - - @Test(timeout = 4000) - public void test11() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - msoJavaProperties0.getPropertiesFileName(); - assertEquals(0, msoJavaProperties0.getAutomaticRefreshInMinutes()); - } - - @Test(timeout = 4000) - public void test12() throws Throwable { - MsoJavaProperties msoJavaProperties0 = new MsoJavaProperties(); - int int0 = msoJavaProperties0.getAutomaticRefreshInMinutes(); - assertEquals(0, int0); - } -} -- cgit 1.2.3-korg