2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 09:02:51 GMT 2016
6 package org.openecomp.mso.properties;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.evosuite.runtime.PrivateAccess;
15 import org.junit.runner.RunWith;
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
18 public class MsoPropertiesFactoryESTest {
21 public void test0() throws Throwable {
22 MsoPropertiesFactory msoPropertiesFactory0 = new MsoPropertiesFactory();
23 // Undeclared exception!
25 msoPropertiesFactory0.changeMsoPropertiesFilePath((String) null, "Unable to load the MSO properties file because format is not recognized (only .json or .properties): ");
26 fail("Expecting exception: NullPointerException");
28 } catch(NullPointerException e) {
30 // no message in exception (getMessage() returned null)
36 public void test1() throws Throwable {
37 MsoPropertiesFactory msoPropertiesFactory0 = new MsoPropertiesFactory();
38 msoPropertiesFactory0.removeAllMsoProperties();
42 public void test2() throws Throwable {
43 MsoPropertiesFactory msoPropertiesFactory0 = new MsoPropertiesFactory();
45 msoPropertiesFactory0.getMsoJavaProperties("iz/`I");
46 fail("Expecting exception: Exception");
48 } catch(Exception e) {
50 // Mso properties not found in cache:iz/`I
52 verifyException("org.openecomp.mso.properties.MsoPropertiesFactory", e);
57 public void test3() throws Throwable {
58 MsoPropertiesFactory msoPropertiesFactory0 = new MsoPropertiesFactory();
59 MsoPropertiesParameters msoPropertiesParameters0 = new MsoPropertiesParameters();
61 PrivateAccess.callMethod((Class<MsoPropertiesFactory>) MsoPropertiesFactory.class, msoPropertiesFactory0, "createObjectType", (Object) msoPropertiesParameters0, (Class<?>) MsoPropertiesParameters.class, (Object) ":8nnlF[sGvCub6J", (Class<?>) String.class);
62 fail("Expecting exception: Exception");
64 } catch(Exception e) {
66 // Unable to load the MSO properties file because format is not recognized (only .json or .properties): :8nnlF[sGvCub6J
68 verifyException("org.openecomp.mso.properties.MsoPropertiesFactory", e);