package org.argeo.slc.core.test.tree; import java.util.List; import java.util.Vector; import org.argeo.slc.core.test.TestResultPart; import org.argeo.slc.core.test.TestStatus; /** * List of TestResultPart. It can be used to build complex * TestResult affording the possibility to a * TestDefinition to add a list of result part under the same * StructurePath. * * @see TreeTestResult */ public class PartSubList { /** For ORM */ private Long tid; private List parts = new Vector(); /** Gets the result parts. */ public List getParts() { return parts; } /** Sets the result parts. */ public void setParts(List parts) { this.parts = parts; } Long getTid() { return tid; } void setTid(Long tid) { this.tid = tid; } public Boolean getIsPassed() { for (TestResultPart part : parts) { if (part.getStatus() != TestStatus.PASSED) { return false; } } return true; } }