]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/ExecutionModuleDescriptorCastorTest.java
Fix issue with object lists in Castor
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.castor / src / test / java / org / argeo / slc / castor / ExecutionModuleDescriptorCastorTest.java
1 package org.argeo.slc.castor;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
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;
11
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");
17
18 ExecutionFlowDescriptor flowDescriptor = ExecutionFlowDescriptorTestUtils
19 .createSimpleExecutionFlowDescriptor();
20
21 List<ExecutionFlowDescriptor> flows = new ArrayList<ExecutionFlowDescriptor>();
22 flows.add(flowDescriptor);
23 moduleDescriptor.setExecutionFlows(flows);
24
25 List<ExecutionSpec> specs = new ArrayList<ExecutionSpec>();
26 specs.add(flowDescriptor.getExecutionSpec());
27 moduleDescriptor.setExecutionSpecs(specs);
28
29 marshUnmarsh(moduleDescriptor, false);
30 }
31
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);
37 }
38
39 }