import static junit.framework.Assert.assertNotNull;\r
import static org.argeo.slc.unit.UnitUtils.assertDateSec;\r
\r
+import java.util.ArrayList;\r
+import java.util.List;\r
import java.util.UUID;\r
\r
+import org.argeo.slc.execution.ExecutionFlowDescriptor;\r
+import org.argeo.slc.process.RealizedFlow;\r
import org.argeo.slc.process.SlcExecution;\r
import org.argeo.slc.process.SlcExecutionStep;\r
+import org.argeo.slc.unit.execution.ExecutionFlowDescriptorTestUtils;\r
\r
public abstract class SlcExecutionTestUtils {\r
\r
return slcExec;\r
}\r
\r
+ public static SlcExecution createSlcExecutionWithRealizedFlows() {\r
+ SlcExecution slcExec = SlcExecutionTestUtils.createSimpleSlcExecution();\r
+ List<RealizedFlow> realizedFlows = new ArrayList<RealizedFlow>();\r
+ RealizedFlow realizedFlow = new RealizedFlow();\r
+ ExecutionFlowDescriptor flowDescriptor = ExecutionFlowDescriptorTestUtils\r
+ .createSimpleExecutionFlowDescriptor();\r
+ realizedFlow.setModuleName("test.module");\r
+ realizedFlow.setModuleVersion("1.0.0");\r
+ realizedFlow.setFlowDescriptor(flowDescriptor);\r
+ realizedFlow.setExecutionSpec(flowDescriptor.getExecutionSpec());\r
+ realizedFlows.add(realizedFlow);\r
+ slcExec.setRealizedFlows(realizedFlows);\r
+ return slcExec;\r
+ }\r
+\r
public static void assertSlcExecution(SlcExecution expected,\r
SlcExecution reached) {\r
assertNotNull(reached);\r