org.aitools.programd.test.aiml
Class TestResult

java.lang.Object
  extended by org.aitools.programd.test.aiml.TestResult

public class TestResult
extends Object

Represents a test result (a success or failure).

Since:
4.5
Author:
Albertas Mickensas, Noel Bush

Field Summary
protected  String input
          The input that produced this result.
protected  String response
          The response that constitutes this result.
protected  String suite
          The name of the suite that failed.
protected  String testCase
          The name of the test case that failed.
 
Constructor Summary
protected TestResult()
          A protected constructor, for use in persistence.
  TestResult(String in, String out)
          Creates an object that represents the test result, with no suite name or test case name attached.
  TestResult(String suiteName, String testCaseName, String in, String out)
          Creates an object that represents the test result.
 
Method Summary
 String getInput()
           
 String getResponse()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

suite

protected String suite
The name of the suite that failed.


testCase

protected String testCase
The name of the test case that failed.


input

protected String input
The input that produced this result.


response

protected String response
The response that constitutes this result.

Constructor Detail

TestResult

public TestResult(String suiteName,
                  String testCaseName,
                  String in,
                  String out)
Creates an object that represents the test result.

Parameters:
suiteName - the name of the suite
testCaseName - the name of the test case
in - the input
out - the response

TestResult

public TestResult(String in,
                  String out)
Creates an object that represents the test result, with no suite name or test case name attached.

Parameters:
in - the input
out - the response

TestResult

protected TestResult()
A protected constructor, for use in persistence.

Method Detail

getInput

public String getInput()
Returns:
the input

getResponse

public String getResponse()
Returns:
the response

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()