]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/PartSubList.java
2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org
.argeo
.slc
.core
.test
.tree
;
19 import java
.io
.Serializable
;
20 import java
.util
.List
;
21 import java
.util
.Vector
;
23 import org
.argeo
.slc
.test
.TestResultPart
;
24 import org
.argeo
.slc
.test
.TestStatus
;
27 * List of <code>TestResultPart</code>. It can be used to build complex
28 * <code>TestResult</code> affording the possibility to a
29 * <code>TestDefinition</code> to add a list of result part under the same
30 * <code>StructurePath</code>.
34 public class PartSubList
implements Serializable
{
35 private static final long serialVersionUID
= -5308754827565759844L;
40 private List
<TestResultPart
> parts
= new Vector
<TestResultPart
>();
42 /** Gets the result parts. */
43 public List
<TestResultPart
> getParts() {
47 /** Sets the result parts. */
48 public void setParts(List
<TestResultPart
> parts
) {
56 void setTid(Long tid
) {
60 public Boolean
getIsPassed() {
61 for (TestResultPart part
: parts
) {
62 if (part
.getStatus() != TestStatus
.PASSED
) {