X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.support.castor%2Fsrc%2Ftest%2Fjava%2Forg%2Fargeo%2Fslc%2Fcastor%2FSlcExecutionCastorTest.java;h=44794e16370794333d0be5da41930f2047db4419;hb=a5b25ca3e5efc8de3571993f6bfc1671c0e2f3ba;hp=a8f724f25432a6f0d274a21c1c8fe1610166e78b;hpb=66a8dc805e2edf46a9d73452d5d9af1d4656eea4;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 a8f724f25..44794e163 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,3 +1,18 @@ +/* + * Copyright (C) 2007-2012 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; @@ -22,13 +37,13 @@ public class SlcExecutionCastorTest extends AbstractCastorTestCase { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm"); SlcExecutionStep step0 = new SlcExecutionStep(); step0.setUuid(UUID.randomUUID().toString()); - step0.setBegin(sdf.parse("2008-04-17 18:21")); + step0.setTimestamp(sdf.parse("2008-04-17 18:21")); step0.setType("LOG"); step0.addLog("A log message\nand another line"); SlcExecutionStep step1 = new SlcExecutionStep(); step1.setUuid(UUID.randomUUID().toString()); - step1.setBegin(sdf.parse("2008-04-17 18:25")); + step1.setTimestamp(sdf.parse("2008-04-17 18:25")); step1.setType("LOG"); step1.addLog("A nother log message"); @@ -63,4 +78,10 @@ public class SlcExecutionCastorTest extends AbstractCastorTestCase { SlcExecutionRequest msgUpdateUnm = unmarshal(msgUpdateXml); assertNotNull(msgUpdateUnm); } + + public void testMarshUnmarsh() throws Exception { + SlcExecution slcExec = SlcExecutionTestUtils + .createSlcExecutionWithRealizedFlows(); + marshUnmarsh(slcExec, false); + } }