|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jameleon.result.JameleonTestResult net.sf.jameleon.result.TestResultWithChildren
public abstract class TestResultWithChildren
A JameleonTestResult that can have children
Field Summary | |
---|---|
protected List |
childrenResults
A list of Child Results |
protected List |
failedResults
A list of failed Child Results |
Fields inherited from class net.sf.jameleon.result.JameleonTestResult |
---|
columnNumber, E_CDATA, elementTagName, error, errorFile, executionTime, failed, lineNumber, parentResults, S_CDATA, scriptFileName, tag |
Constructor Summary | |
---|---|
TestResultWithChildren()
|
|
TestResultWithChildren(FunctionalPoint tag)
|
|
TestResultWithChildren(FunctionalPoint tag,
HasChildResults parentResults)
|
Method Summary | |
---|---|
void |
addChildResult(JameleonTestResult childResult)
Adds a JameleonTestResult to the list of JameleonTestResult int the TestCase |
void |
addFailedResult(JameleonTestResult failedResult)
Adds a failed JameleonTestResult to the list of failed results |
void |
destroy()
|
List |
getAllChildrenResults()
Gets all the ancestor children results |
List |
getAllFailedLeafChildrenResults()
Gets all the ancestor leaf children results that have failed |
List |
getChildrenResults()
Gets a list of child results |
protected List |
getCountableChildResults()
|
List |
getCountableResults()
Gets all the countable ancestor children results that can be counted as test case results |
List |
getFailedCountableResults()
Gets all the failed ancestor children results that can be counted as test case results |
List |
getFailedResults()
Gets a list of failed child results |
boolean |
hasChildren()
Tells whether this result has children or not. |
boolean |
isParent()
Tells whether this result is a parent result or not. |
String |
toXML()
Implement this method the same way the toString method would be implemented, except
the object's information should be in a valid XML format. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.jameleon.result.HasChildResults |
---|
setFailed |
Field Detail |
---|
protected List childrenResults
protected List failedResults
Constructor Detail |
---|
public TestResultWithChildren()
public TestResultWithChildren(FunctionalPoint tag)
public TestResultWithChildren(FunctionalPoint tag, HasChildResults parentResults)
Method Detail |
---|
public void addChildResult(JameleonTestResult childResult)
addChildResult
in interface HasChildResults
childResult
- - a child resultpublic void addFailedResult(JameleonTestResult failedResult)
addFailedResult
in interface HasChildResults
failedResult
- - A failed child resultpublic List getAllChildrenResults()
getAllChildrenResults
in interface HasChildResults
public List getAllFailedLeafChildrenResults()
getAllFailedLeafChildrenResults
in interface HasChildResults
public List getCountableResults()
getCountableResults
in interface HasChildResults
protected List getCountableChildResults()
public List getFailedCountableResults()
getFailedCountableResults
in interface HasChildResults
public List getChildrenResults()
getChildrenResults
in interface HasChildResults
public List getFailedResults()
getFailedResults
in interface HasChildResults
public void destroy()
destroy
in class JameleonTestResult
public boolean isParent()
JameleonTestResult
isParent
in class JameleonTestResult
true
if this result is a parent result or false
if it is a leaf node resultpublic String toXML()
XMLable
toString
method would be implemented, except
the object's information should be in a valid XML format.
toXML
in interface XMLable
toXML
in class JameleonTestResult
public boolean hasChildren()
JameleonTestResult
hasChildren
in class JameleonTestResult
true
if this result has children
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |