diff options
author | 2017-09-08 13:27:46 -0400 | |
---|---|---|
committer | 2017-09-08 13:32:24 -0400 | |
commit | 62cd6aaaf74aa91ee0037c0e155c8e7284f07567 (patch) | |
tree | 68c0c53c9156f5aa3c6b3599ac940770f986633d /common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.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 'common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java')
-rw-r--r-- | common/src/test/java/org/openecomp/mso/properties/AbstractMsoPropertiesESTest.java | 151 |
1 files changed, 0 insertions, 151 deletions
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); - } -} |