org.tap4j.model
Class TestResult
java.lang.Object
org.tap4j.model.AbstractTapElementDiagnostic
org.tap4j.model.TapResult
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestResult
public TestResult()
TestResult
public TestResult(StatusValues testStatus,
Integer testNumber)
- Constructor with parameter.
- Parameters:
testStatus
- Status of the test.testNumber
- Number of the test.
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.