Class JUnitAdapter
- java.lang.Object
-
- edu.hm.hafner.analysis.IssueParser
-
- edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter
-
- edu.hm.hafner.analysis.parser.violations.JUnitAdapter
-
- All Implemented Interfaces:
Serializable
public class JUnitAdapter extends AbstractViolationAdapter
Parses JUnit files.- Author:
- Gyanesha Prajjwal
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFAILED_TESTSReport property key to obtain the number of failed tests.static StringPASSED_TESTSReport property key to obtain the number of passed tests.static StringSKIPPED_TESTSReport property key to obtain the number of skipped tests.static StringTOTAL_TESTSReport property key to obtain the total number of tests.
-
Constructor Summary
Constructors Constructor Description JUnitAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reportparse(ReaderFactory readerFactory)Parses the specified file for issues.-
Methods inherited from class edu.hm.hafner.analysis.IssueParser
accepts, equalsIgnoreCase, isXmlFile, parseFile
-
-
-
-
Field Detail
-
TOTAL_TESTS
public static final String TOTAL_TESTS
Report property key to obtain the total number of tests.- See Also:
- Constant Field Values
-
PASSED_TESTS
public static final String PASSED_TESTS
Report property key to obtain the number of passed tests.- See Also:
- Constant Field Values
-
FAILED_TESTS
public static final String FAILED_TESTS
Report property key to obtain the number of failed tests.- See Also:
- Constant Field Values
-
SKIPPED_TESTS
public static final String SKIPPED_TESTS
Report property key to obtain the number of skipped tests.- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public Report parse(ReaderFactory readerFactory) throws ParsingCanceledException, ParsingException
Description copied from class:IssueParserParses the specified file for issues.- Overrides:
parsein classAbstractViolationAdapter- Parameters:
readerFactory- provides a reader to the reports- Returns:
- the issues
- Throws:
ParsingCanceledException- Signals that the parsing has been aborted by the userParsingException- Signals that during parsing a non recoverable error has been occurred
-
-