hudson.plugins.testlink.parser.junit
Class JUnitParser

java.lang.Object
  extended by hudson.plugins.testlink.parser.Parser<java.util.List<TestSuite>>
      extended by hudson.plugins.testlink.parser.junit.JUnitParser
All Implemented Interfaces:
java.io.Serializable

public class JUnitParser
extends Parser<java.util.List<TestSuite>>

JUnit Parser. Returns a TestSuite.

Since:
2.0
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br
See Also:
TestSuite, Serialized Form

Constructor Summary
JUnitParser()
          Default constructor.
 
Method Summary
 java.lang.String getName()
          Retrives the name of the parser.
 java.util.List<TestSuite> parse(java.io.InputStream inputStream)
          Parses the content of an input stream and returns a different object depending on the type of the parser.
protected  void validateJUnitTestSuite(TestSuite suite)
          Validates a JUnit Test Suite.
 
Methods inherited from class hudson.plugins.testlink.parser.Parser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitParser

public JUnitParser()
Default constructor. Initializes the JUnit XML Handler.

Method Detail

parse

public java.util.List<TestSuite> parse(java.io.InputStream inputStream)
                                throws ParserException
Description copied from class: Parser
Parses the content of an input stream and returns a different object depending on the type of the parser.

Specified by:
parse in class Parser<java.util.List<TestSuite>>
Parameters:
inputStream - the input stream.
Returns:
Resulting object.
Throws:
ParserException

validateJUnitTestSuite

protected void validateJUnitTestSuite(TestSuite suite)
                               throws ParserException
Validates a JUnit Test Suite.

Parameters:
suite - JUnit Test Suite.
Throws:
ParserException

getName

public java.lang.String getName()
Description copied from class: Parser
Retrives the name of the parser.

Specified by:
getName in class Parser<java.util.List<TestSuite>>
Returns:
the name of the parser.


Copyright © 2010-2011 the Jenkins TestLink plug-in team-2011 Jenkins. All Rights Reserved.