Module edu.hm.hafner.analysis.model
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
Parses JUnit files.
- Author:
- Gyanesha Prajjwal
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringReport property key to obtain the number of failed tests.static final StringReport property key to obtain the number of passed tests.static final StringReport property key to obtain the number of skipped tests.static final StringReport property key to obtain the total number of tests.Fields inherited from class edu.hm.hafner.analysis.IssueParser
ADDITIONAL_PROPERTIES, CATEGORY, COLUMN_END, COLUMN_START, DESCRIPTION, FILE_NAME, FINGERPRINT, ID, LINE_END, LINE_RANGE_END, LINE_RANGE_START, LINE_RANGES, LINE_START, MESSAGE, MODULE_NAME, ORIGIN, PACKAGE_NAME, SEVERITY, TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(ReaderFactory readerFactory) Parses the specified file for issues.Methods inherited from class edu.hm.hafner.analysis.IssueParser
accepts, equalsIgnoreCase, isXmlFile, parseFile
-
Field Details
-
TOTAL_TESTS
Report property key to obtain the total number of tests.- See Also:
-
PASSED_TESTS
Report property key to obtain the number of passed tests.- See Also:
-
FAILED_TESTS
Report property key to obtain the number of failed tests.- See Also:
-
SKIPPED_TESTS
Report property key to obtain the number of skipped tests.- See Also:
-
-
Constructor Details
-
JUnitAdapter
public JUnitAdapter()
-
-
Method Details
-
parse
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
-