X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.support.castor%2Fsrc%2Ftest%2Fjava%2Forg%2Fargeo%2Fslc%2Fcastor%2FSlcExecutionCastorTest.java;h=b9f18b6ae01bfa454c99ef0cb0cbeb999b57ad7a;hb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;hp=bfd6a7e11da56b2fe9ecf549c20903ecdc1c3943;hpb=34e590f37109dd9ff9aa4e12af04ee98779aa9e1;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/SlcExecutionCastorTest.java b/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/SlcExecutionCastorTest.java index bfd6a7e11..b9f18b6ae 100644 --- a/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/SlcExecutionCastorTest.java +++ b/runtime/org.argeo.slc.support.castor/src/test/java/org/argeo/slc/castor/SlcExecutionCastorTest.java @@ -1,17 +1,28 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.argeo.slc.castor; import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.List; import java.util.UUID; -import org.argeo.slc.execution.ExecutionFlowDescriptor; import org.argeo.slc.msg.process.SlcExecutionRequest; import org.argeo.slc.msg.process.SlcExecutionStepsRequest; -import org.argeo.slc.process.RealizedFlow; import org.argeo.slc.process.SlcExecution; import org.argeo.slc.process.SlcExecutionStep; -import org.argeo.slc.unit.execution.ExecutionFlowDescriptorTestUtils; import org.argeo.slc.unit.process.SlcExecutionTestUtils; import org.springframework.xml.transform.StringResult; @@ -70,18 +81,8 @@ public class SlcExecutionCastorTest extends AbstractCastorTestCase { } public void testMarshUnmarsh() throws Exception { - SlcExecution slcExec = SlcExecutionTestUtils.createSimpleSlcExecution(); - List realizedFlows = new ArrayList(); - RealizedFlow realizedFlow = new RealizedFlow(); - ExecutionFlowDescriptor flowDescriptor = ExecutionFlowDescriptorTestUtils - .createSimpleExecutionFlowDescriptor(); - realizedFlow.setModuleName("test.module"); - realizedFlow.setModuleVersion("1.0.0"); - realizedFlow.setFlowDescriptor(flowDescriptor); - realizedFlow.setExecutionSpec(flowDescriptor.getExecutionSpec()); - realizedFlows.add(realizedFlow); - slcExec.setRealizedFlows(realizedFlows); - + SlcExecution slcExec = SlcExecutionTestUtils + .createSlcExecutionWithRealizedFlows(); marshUnmarsh(slcExec, false); } }