aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCoreBPMN/src/test/java/org/openecomp/mso/bpmn/core/ReadConfigTaskESTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'bpmn/MSOCoreBPMN/src/test/java/org/openecomp/mso/bpmn/core/ReadConfigTaskESTest.java')
-rw-r--r--bpmn/MSOCoreBPMN/src/test/java/org/openecomp/mso/bpmn/core/ReadConfigTaskESTest.java58
1 files changed, 58 insertions, 0 deletions
diff --git a/bpmn/MSOCoreBPMN/src/test/java/org/openecomp/mso/bpmn/core/ReadConfigTaskESTest.java b/bpmn/MSOCoreBPMN/src/test/java/org/openecomp/mso/bpmn/core/ReadConfigTaskESTest.java
new file mode 100644
index 0000000000..6422685f92
--- /dev/null
+++ b/bpmn/MSOCoreBPMN/src/test/java/org/openecomp/mso/bpmn/core/ReadConfigTaskESTest.java
@@ -0,0 +1,58 @@
+/*
+ * This file was automatically generated by EvoSuite
+ * Mon Nov 14 11:29:36 GMT 2016
+ */
+
+package org.openecomp.mso.bpmn.core;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+import static org.evosuite.shaded.org.mockito.Mockito.*;
+import static org.evosuite.runtime.EvoAssertions.*;
+
+import org.camunda.bpm.engine.delegate.Expression;
+import org.camunda.bpm.engine.impl.pvm.runtime.ExecutionImpl;
+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 ReadConfigTaskESTest extends ReadConfigTaskESTestscaffolding {
+
+ @Test(timeout = 4000)
+ public void test0() throws Throwable {
+ ReadConfigTask readConfigTask0 = new ReadConfigTask();
+ ExecutionImpl executionImpl0 = new ExecutionImpl();
+ Expression expression0 = mock(Expression.class, new ViolatedAssumptionAnswer());
+ doReturn((Object) null).when(expression0).getValue(any(org.camunda.bpm.engine.delegate.VariableScope.class));
+ PrivateAccess.setVariable((Class<ReadConfigTask>) ReadConfigTask.class, readConfigTask0, "propertiesFile", (Object) expression0);
+ try {
+ readConfigTask0.execute(executionImpl0);
+ fail("Expecting exception: RuntimeException");
+
+ } catch(RuntimeException e) {
+ //
+ // ReadConfigTask injected field 'propertiesFile' is bad: required field has null value
+ //
+ verifyException("org.openecomp.mso.bpmn.core.BaseTask", e);
+ }
+ }
+
+ @Test(timeout = 4000)
+ public void test1() throws Throwable {
+ ReadConfigTask readConfigTask0 = new ReadConfigTask();
+ ExecutionImpl executionImpl0 = new ExecutionImpl();
+ try {
+ readConfigTask0.execute(executionImpl0);
+ fail("Expecting exception: RuntimeException");
+
+ } catch(RuntimeException e) {
+ //
+ // ReadConfigTask injected field 'propertiesFile' is bad: missing required field
+ //
+ verifyException("org.openecomp.mso.bpmn.core.BaseTask", e);
+ }
+ }
+}