1 package org
.argeo
.slc
.castor
;
3 import java
.util
.ArrayList
;
6 import org
.argeo
.slc
.execution
.ExecutionFlowDescriptor
;
7 import org
.argeo
.slc
.execution
.ExecutionModuleDescriptor
;
8 import org
.argeo
.slc
.execution
.ExecutionSpec
;
9 import org
.argeo
.slc
.msg
.ObjectList
;
10 import org
.argeo
.slc
.unit
.execution
.ExecutionFlowDescriptorTestUtils
;
12 public class ExecutionModuleDescriptorCastorTest
extends AbstractCastorTestCase
{
13 public void testMarshUnmarsh() throws Exception
{
14 ExecutionModuleDescriptor moduleDescriptor
= new ExecutionModuleDescriptor();
15 moduleDescriptor
.setName("test.moodule");
16 moduleDescriptor
.setVersion("1.0.0");
18 ExecutionFlowDescriptor flowDescriptor
= ExecutionFlowDescriptorTestUtils
19 .createSimpleExecutionFlowDescriptor();
21 List
<ExecutionFlowDescriptor
> flows
= new ArrayList
<ExecutionFlowDescriptor
>();
22 flows
.add(flowDescriptor
);
23 moduleDescriptor
.setExecutionFlows(flows
);
25 List
<ExecutionSpec
> specs
= new ArrayList
<ExecutionSpec
>();
26 specs
.add(flowDescriptor
.getExecutionSpec());
27 moduleDescriptor
.setExecutionSpecs(specs
);
29 marshUnmarsh(moduleDescriptor
, false);
32 public void testMarshUnmarshMini() throws Exception
{
33 ExecutionModuleDescriptor moduleDescriptor
= new ExecutionModuleDescriptor();
34 moduleDescriptor
.setName("test.moodule");
35 moduleDescriptor
.setVersion("1.0.0");
36 marshUnmarsh(moduleDescriptor
, false);