X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.unit%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Funit%2Fprocess%2FSlcExecutionTestUtils.java;h=65f3ec1dd271a768ce30d3369536981dd5631e95;hb=b811ec0603b1e596f26eee8a5378c6294cba495d;hp=2e9f38e3aed2a12d598d7246d48ba21f670bc82a;hpb=aa7186934987661f592d3338c120385b76d7ccee;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.unit/src/main/java/org/argeo/slc/unit/process/SlcExecutionTestUtils.java b/runtime/org.argeo.slc.unit/src/main/java/org/argeo/slc/unit/process/SlcExecutionTestUtils.java index 2e9f38e3a..65f3ec1dd 100644 --- a/runtime/org.argeo.slc.unit/src/main/java/org/argeo/slc/unit/process/SlcExecutionTestUtils.java +++ b/runtime/org.argeo.slc.unit/src/main/java/org/argeo/slc/unit/process/SlcExecutionTestUtils.java @@ -1,3 +1,19 @@ +/* + * 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.unit.process; import static junit.framework.Assert.assertEquals; @@ -68,8 +84,8 @@ public abstract class SlcExecutionTestUtils { } // FIXME: compare realized flows -// assertEquals(expected.getRealizedFlows().size(), reached -// .getRealizedFlows().size()); + // assertEquals(expected.getRealizedFlows().size(), reached + // .getRealizedFlows().size()); } @@ -78,7 +94,13 @@ public abstract class SlcExecutionTestUtils { assertNotNull(reached); assertEquals(expected.getUuid(), reached.getUuid()); assertEquals(expected.getType(), reached.getType()); - assertDateSec(expected.getBegin(), reached.getBegin()); + assertDateSec(expected.getTimestamp(), reached.getTimestamp()); + assertEquals(expected.getLogLines().size(), reached.getLogLines() + .size()); + for (int i = 0; i < expected.getLogLines().size(); i++) { + assertEquals(expected.getLogLines().get(i), reached.getLogLines() + .get(i)); + } } private SlcExecutionTestUtils() {