|
||||||||||
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.FunctionResult
public class FunctionResult
An implementation of @see TestResult that represents the result of a function point
Field Summary | |
---|---|
protected boolean |
postcondition
If the function is a postcondition |
protected boolean |
precondition
If the function is a precondition |
protected String |
resultsFileName
The name of the file where the results of the display were written to if any |
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 | |
---|---|
FunctionResult()
The default constructor |
|
FunctionResult(FunctionalPoint tag)
|
|
FunctionResult(FunctionalPoint tag,
HasChildResults parentTestResult)
|
Method Summary | |
---|---|
String |
getErrorMsg()
|
protected String |
getErrorMsgPrefix()
|
boolean |
hasChildren()
Tells whether this result has children or not. |
boolean |
isDataDriven()
Tells whether this result is data driven or not. |
boolean |
isParent()
Tells whether this result is a parent result or not. |
boolean |
isPostcondition()
Tells whether the functional point is a postcondition |
boolean |
isPrecondition()
Tells whether the functional point is a precondition |
void |
setPostcondition(boolean postcondition)
Sets the FunctionalPoint as a postcondition |
void |
setPrecondition(boolean precondition)
Sets the FunctionalPoint as a precondition |
String |
toString()
|
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 |
Field Detail |
---|
protected String resultsFileName
protected boolean precondition
protected boolean postcondition
Constructor Detail |
---|
public FunctionResult()
public FunctionResult(FunctionalPoint tag)
tag
- - The functional point tied to the resultspublic FunctionResult(FunctionalPoint tag, HasChildResults parentTestResult)
tag
- - The functional point tied to the resultsparentTestResult
- - The parent test results to updateMethod Detail |
---|
protected String getErrorMsgPrefix()
public String getErrorMsg()
getErrorMsg
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 boolean isDataDriven()
JameleonTestResult
isDataDriven
in class JameleonTestResult
true
if this result is a data driven result or false
if it is not.public boolean hasChildren()
JameleonTestResult
hasChildren
in class JameleonTestResult
true
if this result has childrenpublic boolean isPrecondition()
public void setPrecondition(boolean precondition)
precondition
- - set to true to make this a preconditionpublic boolean isPostcondition()
public void setPostcondition(boolean postcondition)
postcondition
- - set to true to make this a postconditionpublic String toString()
toString
in class JameleonTestResult
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |