org.aitools.programd.test.aiml
Class TestResult

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

public class TestResult
extends java.lang.Object

Represents a test result (a success or failure).

Since:
4.5
Author:
Albertas Mickensas, Noel Bush

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

Field Detail

suite

protected java.lang.String suite
The name of the suite that failed.


testCase

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


input

protected java.lang.String input
The input that produced this result.


response

protected java.lang.String response
The response that constitutes this result.

Constructor Detail

TestResult

public TestResult(java.lang.String suiteName,
                  java.lang.String testCaseName,
                  java.lang.String in,
                  java.lang.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(java.lang.String in,
                  java.lang.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 java.lang.String getInput()
Returns:
the input

getResponse

public java.lang.String getResponse()
Returns:
the response

toString

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