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
.unit
.execution
.ExecutionFlowDescriptorTestUtils
;
11 public class ExecutionModuleDescriptorCastorTest
extends AbstractCastorTestCase
{
12 public void testMarshUnmarsh() throws Exception
{
13 ExecutionModuleDescriptor moduleDescriptor
= new ExecutionModuleDescriptor();
14 moduleDescriptor
.setName("test.module");
15 moduleDescriptor
.setVersion("1.0.0");
16 moduleDescriptor
.setLabel("Test Module");
17 moduleDescriptor
.setDescription("module descriptor");
19 ExecutionFlowDescriptor flowDescriptor
= ExecutionFlowDescriptorTestUtils
20 .createSimpleExecutionFlowDescriptor();
22 List
<ExecutionFlowDescriptor
> flows
= new ArrayList
<ExecutionFlowDescriptor
>();
23 flows
.add(flowDescriptor
);
24 moduleDescriptor
.setExecutionFlows(flows
);
26 List
<ExecutionSpec
> specs
= new ArrayList
<ExecutionSpec
>();
27 specs
.add(flowDescriptor
.getExecutionSpec());
28 moduleDescriptor
.setExecutionSpecs(specs
);
30 marshUnmarsh(moduleDescriptor
, false);
33 public void testMarshUnmarshMini() throws Exception
{
34 ExecutionModuleDescriptor moduleDescriptor
= new ExecutionModuleDescriptor();
35 moduleDescriptor
.setName("test.moodule");
36 moduleDescriptor
.setVersion("1.0.0");
37 marshUnmarsh(moduleDescriptor
, false);