|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tap4j.model.TestSet
public class TestSet
A Test Set is the top element in a TAP File. It holds references to the Header, Plan, List of Test Results and the rest of elements in TAP spec.
Constructor Summary | |
---|---|
TestSet()
Default constructor. |
Method Summary | |
---|---|
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<TapResult> |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestSet()
Method Detail |
---|
public Header getHeader()
public void setHeader(Header header)
header
- TAP Header.public Plan getPlan()
public void setPlan(Plan plan)
plan
- TAP Plan.public List<TapResult> getTapLines()
public List<TestResult> getTestResults()
public int getNextTestNumber()
public List<BailOut> getBailOuts()
public List<Comment> getComments()
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()
public Boolean containsOk()
public Boolean containsNotOk()
public Boolean containsBailOut()
public TestResult getTestResult(Integer testNumber)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |