edu.byu.ece.edif.test
Class TestResult

java.lang.Object
  extended by edu.byu.ece.edif.test.TestResult

public class TestResult
extends java.lang.Object

Represents the result of a test case. Contains the test class name, the test method name, and the test status.

Version:
$Id: TestResult.java 4 2008-04-16 22:31:52Z mrspud $
Author:
Jonathan Johnson

Field Summary
private  java.lang.String _className
          Name of the test class
private  java.lang.String _methodName
          Name of the method from which the test was run
private  TestStatus _testStatus
          Specifies whether or not the test case passed
 
Constructor Summary
TestResult(java.lang.String className, java.lang.String methodName, TestStatus testStatus)
          Construct a new TestResult.
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.String getMethodName()
           
 boolean getPassed()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_className

private java.lang.String _className
Name of the test class


_methodName

private java.lang.String _methodName
Name of the method from which the test was run


_testStatus

private TestStatus _testStatus
Specifies whether or not the test case passed

Constructor Detail

TestResult

public TestResult(java.lang.String className,
                  java.lang.String methodName,
                  TestStatus testStatus)
Construct a new TestResult.

Parameters:
className - name of the test class
methodName - name of the test method
testStatus - true if the test passed or false if it failed.
Method Detail

getClassName

public java.lang.String getClassName()
Returns:
the name of the test class

getMethodName

public java.lang.String getMethodName()
Returns:
the name of the test method

getPassed

public boolean getPassed()
Returns:
true if the test passed or false if it failed.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a String representation of the test result.