public class TestSet extends Object implements Serializable
Constructor and Description |
---|
TestSet()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addBailOut(BailOut bailOut) |
boolean |
addComment(Comment comment) |
boolean |
addTapLine(TapResult tapLine)
Adds a new TAP Line.
|
boolean |
addTestResult(TestResult testResult)
Adds a TestResult into the list of TestResults.
|
Boolean |
containsBailOut() |
Boolean |
containsNotOk() |
Boolean |
containsOk() |
List<BailOut> |
getBailOuts() |
List<Comment> |
getComments() |
Footer |
getFooter() |
Header |
getHeader() |
int |
getNextTestNumber() |
int |
getNumberOfBailOuts() |
int |
getNumberOfComments() |
int |
getNumberOfTapLines() |
int |
getNumberOfTestResults() |
Plan |
getPlan() |
List<TapElement> |
getTapLines() |
TestResult |
getTestResult(Integer testNumber) |
List<TestResult> |
getTestResults() |
boolean |
hasBailOut() |
boolean |
removeBailOut(BailOut bailOut)
Removes a Bail Out from the list.
|
boolean |
removeComment(Comment comment)
Removes a Comment from the list.
|
protected boolean |
removeTapLine(TapResult tapLine)
Removes a TAP Line from the list.
|
boolean |
removeTestResult(TestResult testResult)
Removes a Test Result from the list.
|
void |
setFooter(Footer footer) |
void |
setHeader(Header header) |
void |
setPlan(Plan plan) |
public Header getHeader()
public void setHeader(Header header)
header
- TAP Header.public Plan getPlan()
public void setPlan(Plan plan)
plan
- TAP Plan.public List<TapElement> getTapLines()
public List<TestResult> getTestResults()
public int getNextTestNumber()
public boolean addTapLine(TapResult tapLine)
tapLine
- TAP Line.public boolean addTestResult(TestResult testResult)
testResult
- TAP TestResult.public boolean addBailOut(BailOut bailOut)
bailOut
- Bail Out.public boolean addComment(Comment comment)
comment
- Comment. Whether could add to Comment list or not.protected boolean removeTapLine(TapResult tapLine)
tapLine
- TAP Line object.public boolean removeTestResult(TestResult testResult)
testResult
- Test Result.public boolean removeBailOut(BailOut bailOut)
bailOut
- Bail Out object.public boolean removeComment(Comment comment)
comment
- Comment.public int getNumberOfTapLines()
public int getNumberOfTestResults()
public int getNumberOfBailOuts()
public int getNumberOfComments()
public Footer getFooter()
public void setFooter(Footer footer)
footer
- Footerpublic boolean hasBailOut()
true
if it has any Bail Out statement,
false
otherwise.public Boolean containsOk()
true
if it contains OK status, false
otherwise.public Boolean containsNotOk()
true
if it contains NOT OK status,
false
otherwise.public Boolean containsBailOut()
true
if it contains BAIL OUT!, false
otherwise.public TestResult getTestResult(Integer testNumber)
testNumber
- test result number.Copyright © 2010–2019 TupiLabs. All rights reserved.