net.sf.jameleon.result
Class DataDrivableResultContainer

java.lang.Object
  extended by net.sf.jameleon.result.JameleonTestResult
      extended by net.sf.jameleon.result.TestResultWithChildren
          extended by net.sf.jameleon.result.DataDrivableResultContainer
All Implemented Interfaces:
Serializable, HasChildResults, RowResultContainer, XMLable, LocationAware
Direct Known Subclasses:
CountableDataDrivableResultContainer

public class DataDrivableResultContainer
extends TestResultWithChildren
implements RowResultContainer

An implementation of @see TestResult that represents the results of a data-drivable tag. A DataDrivableResult can contain session results and function point results.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jameleon.result.TestResultWithChildren
childrenResults, failedResults
 
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
DataDrivableResultContainer(FunctionalPoint tag)
           
DataDrivableResultContainer(FunctionalPoint tag, HasChildResults parentResults)
           
 
Method Summary
 List getCountableResults()
          Gets all the countable ancestor children results that can be counted as test case results
 boolean isCountable()
          Used to define whether the tag's countRow is set to true or false.
 boolean isDataDriven()
          Tells whether this result is data driven 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 net.sf.jameleon.result.TestResultWithChildren
addChildResult, addFailedResult, destroy, getAllChildrenResults, getAllFailedLeafChildrenResults, getChildrenResults, getCountableChildResults, getFailedCountableResults, getFailedResults, hasChildren, isParent
 
Methods inherited from class net.sf.jameleon.result.JameleonTestResult
copyLocationAwareProperties, equals, escapeXML, failed, findAncestorByClass, getColumnNumber, getDateTimeExecuted, getElementName, getError, getErrorFile, getErrorMsg, getExecutionTime, getExecutionTimeToDisplay, getFailedRowNum, getFileName, getHtmlFormattedErrorMsg, getHtmlFormattedStackTrace, getIdentifier, getLineNumber, getOutcome, getParentResults, getTag, hashCode, isA, passed, recordFailureToCountableResult, setColumnNumber, setDateTimeExecuted, setElementName, setError, setErrorFile, setExecutionTime, setFailed, setFileName, setLineNumber, setParentResults, setTag, toString
 
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
 

Constructor Detail

DataDrivableResultContainer

public DataDrivableResultContainer(FunctionalPoint tag)

DataDrivableResultContainer

public DataDrivableResultContainer(FunctionalPoint tag,
                                   HasChildResults parentResults)
Method Detail

getCountableResults

public List getCountableResults()
Description copied from class: TestResultWithChildren
Gets all the countable ancestor children results that can be counted as test case results

Specified by:
getCountableResults in interface HasChildResults
Overrides:
getCountableResults in class TestResultWithChildren
Returns:
List

isCountable

public boolean isCountable()
Description copied from interface: RowResultContainer
Used to define whether the tag's countRow is set to true or false.

Specified by:
isCountable in interface RowResultContainer
Returns:
truen if countRow is set to true

isDataDriven

public boolean isDataDriven()
Description copied from class: JameleonTestResult
Tells whether this result is data driven or not.

Specified by:
isDataDriven in class JameleonTestResult
Returns:
true if this result is a data driven result or false if it is not.

toXML

public String toXML()
Description copied from interface: XMLable
Implement this method the same way the toString method would be implemented, except the object's information should be in a valid XML format.

Specified by:
toXML in interface XMLable
Overrides:
toXML in class TestResultWithChildren
Returns:
a XML String representation of the results


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.