Module com.sun.xml.fastinfoset.rtt
Class RoundTripReport
java.lang.Object
com.sun.xml.fastinfoset.roundtriptests.RoundTripReport
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final int
(package private) static final int
private final int[]
private final Map
<String, RoundTripReport.FailedTestRecord> (package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
private final int[]
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addFailedRecord
(String testPath, String testName, int rtt) void
private boolean
countIncrement
(String tag, StringBuffer content) private static void
displayUsageAndExit
(String[] args) private static String
generateReport
(int[] passed, int[] failed, Map<String, RoundTripReport.FailedTestRecord> failedTests) private static String
getReportValue
(int value) private static String
getReportValue
(int value, int oppositeResultValue) private static String
getResultAsString
(boolean result) private String
private void
incFailed
(int rtt) private void
incPassed
(int rtt) static void
private String
readFromFile
(File file) void
reportContent
(String filename, String[] args)
-
Field Details
-
INDEX_HOME
static final int INDEX_HOME- See Also:
-
INDEX_REPORT
static final int INDEX_REPORT- See Also:
-
INDEX_TESTCASE
static final int INDEX_TESTCASE- See Also:
-
INDEX_TESTCASEPATH
static final int INDEX_TESTCASEPATH- See Also:
-
INDEX_TESTNAME
static final int INDEX_TESTNAME- See Also:
-
INDEX_RESULT
static final int INDEX_RESULT- See Also:
-
COUNT_DEFAULT
- See Also:
-
COUNT_SAXPASSED
- See Also:
-
COUNT_SAXFAILED
- See Also:
-
COUNT_STAXPASSED
- See Also:
-
COUNT_STAXFAILED
- See Also:
-
COUNT_DOMPASSED
- See Also:
-
COUNT_DOMFAILED
- See Also:
-
COUNT_DOMSAXPASSED
- See Also:
-
COUNT_DOMSAXFAILED
- See Also:
-
COUNT_SAXSTAXPASSED
- See Also:
-
COUNT_SAXSTAXFAILED
- See Also:
-
RESULT_PASSED
- See Also:
-
RESULT_FAILED
- See Also:
-
REPORTCOUNT_TOTAL
- See Also:
-
REPORT_NEWROW
- See Also:
-
TEST_SAX
- See Also:
-
TEST_STAX
- See Also:
-
TEST_DOM
- See Also:
-
TEST_DOMSAX
- See Also:
-
TEST_SAXSTAX
- See Also:
-
RTT_NAMES
-
SAX_RTT
static final int SAX_RTT- See Also:
-
STAX_RTT
static final int STAX_RTT- See Also:
-
DOM_RTT
static final int DOM_RTT- See Also:
-
DOM_SAX_RTT
static final int DOM_SAX_RTT- See Also:
-
SAX_STAX_RTT
static final int SAX_STAX_RTT- See Also:
-
passed
private final int[] passed -
failed
private final int[] failed -
failedTests
-
-
Constructor Details
-
RoundTripReport
public RoundTripReport()Creates a new instance of RoundTripReport
-
-
Method Details
-
addResult
-
generateReport
-
incPassed
private void incPassed(int rtt) -
incFailed
private void incFailed(int rtt) -
addFailedRecord
-
main
- Parameters:
args
- the command line arguments
-
report
-
reportContent
-
readFromFile
-
countIncrement
-
getTemplate
-
generateReport
private static String generateReport(int[] passed, int[] failed, Map<String, RoundTripReport.FailedTestRecord> failedTests) -
getResultAsString
-
getReportValue
-
getReportValue
-
displayUsageAndExit
-