org.tap4j.model
Class TestResult

Package class diagram package TestResult
java.lang.Object
  extended by org.tap4j.model.AbstractTapElementDiagnostic
      extended by org.tap4j.model.TapResult
          extended by org.tap4j.model.TestResult
All Implemented Interfaces:
Serializable, TapElement

public class TestResult
extends TapResult

A simple test result. Valid values are OK and NOT OK.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
TestResult()
           
TestResult(StatusValues testStatus, Integer testNumber)
          Constructor with parameter.
 
Method Summary
 void addComment(Comment comment)
          Adds a new comment to this Test Result.
 List<Comment> getComments()
           
 String getDescription()
           
 Directive getDirective()
           
 StatusValues getStatus()
           
 TestSet getSubtest()
           
 Integer getTestNumber()
           
 void setComments(List<Comment> comments)
           
 void setDescription(String description)
           
 void setDirective(Directive directive)
           
 void setStatus(StatusValues status)
           
 void setSubtest(TestSet subtest)
           
 void setTestNumber(Integer testNumber)
           
 
Methods inherited from class org.tap4j.model.AbstractTapElementDiagnostic
getDiagnostic, setDiagnostic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResult

public TestResult()

TestResult

public TestResult(StatusValues testStatus,
                  Integer testNumber)
Constructor with parameter.

Parameters:
testStatus - Status of the test.
testNumber - Number of the test.
Method Detail

getStatus

public StatusValues getStatus()
Returns:
Status of the test.

setStatus

public void setStatus(StatusValues status)
Parameters:
status - Status of the test.

getTestNumber

public Integer getTestNumber()
Returns:
Test Number.

setTestNumber

public void setTestNumber(Integer testNumber)
Parameters:
testNumber - Test Number.

getDescription

public String getDescription()
Returns:
Test description.

setDescription

public void setDescription(String description)
Parameters:
description - Test description.

getDirective

public Directive getDirective()
Returns:
Optional Directive.

setDirective

public void setDirective(Directive directive)
Parameters:
directive - Optional Directive.

getSubtest

public TestSet getSubtest()
Returns:
the subtest

setSubtest

public void setSubtest(TestSet subtest)
Parameters:
subtest - the subtest to set

getComments

public List<Comment> getComments()
Returns:
The comments for this Test Result.

setComments

public void setComments(List<Comment> comments)
Parameters:
comments - list of comments for this Test Result.

addComment

public void addComment(Comment comment)
Adds a new comment to this Test Result.

Parameters:
comment - comment for this Test Result.


Copyright © 2010-2012 TupiLabs. All Rights Reserved.