|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tap4j.parser.Tap13Parser
public class Tap13Parser
TAP 13 parser.
Field Summary |
---|
Fields inherited from interface org.tap4j.parser.Parser |
---|
BAIL_OUT_PATTERN, COMMENT_PATTERN, FOOTER_PATTERN, HEADER_PATTERN, PLAN_PATTERN, REGEX_BAIL_OUT, REGEX_COMMENT, REGEX_FOOTER, REGEX_HEADER, REGEX_PLAN, REGEX_TEST_RESULT, TEST_RESULT_PATTERN |
Constructor Summary | |
---|---|
Tap13Parser()
Default constructor. |
Method Summary | |
---|---|
protected void |
checkIfTAPPlanIsSetBeforeTestResultsOrBailOut()
Checks if the TAP Plan is set before any Test Result or Bail Out. |
protected void |
checkTAPHeaderParsingLocationAndDuplicity()
Checks the Header location and duplicity. |
protected void |
checkTAPPlanDuplicity()
Checks if there are more than one TAP Plan in the TAP Stream. |
protected void |
checkTAPPlanIsSet()
Checks if TAP Plan has been set. |
protected void |
checkTAPPlanPosition()
Deprecated. |
protected void |
extractBailOut(Matcher matcher)
|
protected void |
extractComment(Matcher matcher)
|
protected void |
extractFooter(Matcher matcher)
Simply extracts the footer from the TAP line. |
protected void |
extractHeader(Matcher matcher)
Extracts the Header from a TAP Line. |
protected void |
extractPlan(Matcher matcher)
|
protected void |
extractTestResult(Matcher matcher)
|
TestSet |
getTestSet()
|
void |
init()
Called from the constructor and everytime a new TAP Stream (file or string) is processed. |
TestSet |
parseFile(File tapFile)
Parses a TAP File. |
void |
parseLine(String tapLine)
Parses a Test Result. |
TestSet |
parseTapStream(String tapStream)
Parses a TAP Stream. |
protected void |
postProcess()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tap13Parser()
Method Detail |
---|
public final void init()
public TestSet getTestSet()
public void parseLine(String tapLine)
Parser
parseLine
in interface Parser
tapLine
- TAP lineprotected void checkIfTAPPlanIsSetBeforeTestResultsOrBailOut()
protected void checkTAPHeaderParsingLocationAndDuplicity()
protected void checkTAPPlanDuplicity()
protected void checkTAPPlanPosition()
protected void checkTAPPlanIsSet()
ParserException
- if TAP Plan has not been set.protected void extractHeader(Matcher matcher)
matcher
- REGEX Matcher.protected void extractPlan(Matcher matcher)
matcher
- REGEX Matcher.protected void extractTestResult(Matcher matcher)
matcher
- REGEX Matcher.protected void extractBailOut(Matcher matcher)
matcher
- REGEX Matcher.protected void extractComment(Matcher matcher)
matcher
- REGEX Matcher.protected void extractFooter(Matcher matcher)
matcher
- REGEX Matcher.public TestSet parseTapStream(String tapStream)
Parser
parseTapStream
in interface Parser
tapStream
- TAP Streampublic TestSet parseFile(File tapFile)
Parser
parseFile
in interface Parser
tapFile
- TAP Fileprotected void postProcess()
TapConsumerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |