Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
97 0 3 0 96.907% 2.777

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List


Package Tests Errors Failures Skipped Success Rate Time
org.apache.rat.mp 3 0 0 0 100% 0.788
org.apache.rat.header 11 0 0 0 100% 0.011
org.apache.rat.anttasks 7 0 0 0 100% 1.555
org.apache.rat.walker 1 0 0 0 100% 0.001
org.apache.rat.analysis 5 0 0 0 100% 0.006
org.apache.rat.report.xml.writer 2 0 0 0 100% 0.011
org.apache.rat.analysis.generation 4 0 0 0 100% 0.03
org.apache.rat.document.impl 2 0 0 0 100% 0.002
org.apache.rat.analysis.license 5 0 0 0 100% 0.019
org.apache.rat.report.xml.writer.impl.base 27 0 0 0 100% 0.015
org.apache.rat.document.impl.util 1 0 0 0 100% 0.002
org.apache.rat.document 2 0 0 0 100% 0.002
org.apache.rat.annotation 8 0 0 0 100% 0.01
org.apache.rat.analysis.util 2 0 0 0 100% 0.002
org.apache.rat.policy 5 0 0 0 100% 0.002
org.apache.rat 2 0 1 0 50% 0.275
org.apache.rat.document.impl.guesser 8 0 0 0 100% 0.014
org.apache.rat.report.xml 2 0 2 0 0% 0.032

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.rat.mp

Class Tests Errors Failures Skipped Success Rate Time
RatCheckMojoTest 3 0 0 0 100% 0.788

org.apache.rat.header

Class Tests Errors Failures Skipped Success Rate Time
FilteringSequenceFactoryTest 3 0 0 0 100% 0.002
HeaderMatcherWithBeansTest 2 0 0 0 100% 0.002
HeaderMatcherTest 5 0 0 0 100% 0.005
ArrayCharFilterTest 1 0 0 0 100% 0.002

org.apache.rat.anttasks

Class Tests Errors Failures Skipped Success Rate Time
ReportTest 7 0 0 0 100% 1.555

org.apache.rat.walker

Class Tests Errors Failures Skipped Success Rate Time
FileNameComparatorTest 1 0 0 0 100% 0.001

org.apache.rat.analysis

Class Tests Errors Failures Skipped Success Rate Time
AnalyserFactoryTest 4 0 0 0 100% 0.004
HeaderCheckWorkerTest 1 0 0 0 100% 0.002

org.apache.rat.report.xml.writer

Class Tests Errors Failures Skipped Success Rate Time
XmlWriterUtilsTest 2 0 0 0 100% 0.011

org.apache.rat.analysis.generation

Class Tests Errors Failures Skipped Success Rate Time
JavaDocLicenseNotRequiredTest 3 0 0 0 100% 0.004
GeneratedLicenseNotRequiredTest 1 0 0 0 100% 0.026

org.apache.rat.document.impl

Class Tests Errors Failures Skipped Success Rate Time
SingularFileDocumentTest 2 0 0 0 100% 0.002

org.apache.rat.analysis.license

Class Tests Errors Failures Skipped Success Rate Time
ApacheSoftwareLicense20Test 2 0 0 0 100% 0.002
W3CLicenseTest 1 0 0 0 100% 0.004
OASISLicenseTest 2 0 0 0 100% 0.013

org.apache.rat.report.xml.writer.impl.base

Class Tests Errors Failures Skipped Success Rate Time
XmlWriterTest 27 0 0 0 100% 0.015

org.apache.rat.document.impl.util

Class Tests Errors Failures Skipped Success Rate Time
DocumentAnalyserMultiplexerTest 1 0 0 0 100% 0.002

org.apache.rat.document

Class Tests Errors Failures Skipped Success Rate Time
ToNameTransformerTest 2 0 0 0 100% 0.002

org.apache.rat.annotation

Class Tests Errors Failures Skipped Success Rate Time
TestLicenceAppender 8 0 0 0 100% 0.01

org.apache.rat.analysis.util

Class Tests Errors Failures Skipped Success Rate Time
MatcherMultiplexerTest 2 0 0 0 100% 0.002

org.apache.rat.policy

Class Tests Errors Failures Skipped Success Rate Time
DefaultPolicyTest 5 0 0 0 100% 0.002

org.apache.rat

Class Tests Errors Failures Skipped Success Rate Time
ReportTest 1 0 1 0 0% 0.072
ReportTransformerTest 1 0 0 0 100% 0.203

org.apache.rat.document.impl.guesser

Class Tests Errors Failures Skipped Success Rate Time
GuessUtilsTest 1 0 0 0 100% 0.001
NoteGuesserTest 3 0 0 0 100% 0.002
BinaryGuesserTest 2 0 0 0 100% 0.009
ArchiveGuesserTest 2 0 0 0 100% 0.002

org.apache.rat.report.xml

Class Tests Errors Failures Skipped Success Rate Time
XmlReportFactoryTest 1 0 1 0 0% 0.01
XmlReportTest 1 0 1 0 0% 0.022

Test Cases

SingularFileDocumentTest

testReader 0
testGetName 0

FilteringSequenceFactoryTest

testNoFiltering 0
testFiltering 0
testOverCapacity 0

GuessUtilsTest

testNormalise 0

FileNameComparatorTest

testCompare 0

ApacheSoftwareLicense20Test

testMatches 0
testMatch 0.001

DefaultPolicyTest

testASLFamily 0
testOASISFamily 0
testW3CFamily 0
testW3CDocFamily 0
testUnknownFamily 0

HeaderMatcherWithBeansTest

testNulls 0.001
testMatches 0

MatcherMultiplexerTest

testMatcherLine 0.001
testReset 0

AnalyserFactoryTest

testStandardTypeAnalyser 0.002
testNoteTypeAnalyser 0
testBinaryTypeAnalyser 0
testArchiveTypeAnalyser 0

NoteGuesserTest

testMatches 0
testIsNote 0
testIsNoteWithPath 0

HeaderMatcherTest

testSimpleMatches 0.003
testFilteredMatches 0
testNoLines 0
testLines 0
testTooManyLines 0

ReportTest

testPlainReport 0.07
Report created expected:<... Notes: 2 Binaries: [1 Archives: 1 Standards: 4 Apache Licensed: 2 Generated Documents: 0 JavaDocs are generated and so license header is optional Generated files do not required license headers 2 Unknown Licenses ******************************* Unapproved licenses: src/test/resources/elements/Source.java src/test/resources/elements/sub/Empty.txt ******************************* Archives: + src/test/resources/elements/dummy.jar ***************************************************** Files with Apache License headers will be marked AL Binary files (which do not require AL headers) will be marked B Compressed archives will be marked A Notices, licenses etc will be marked N B src/test/resources/elements/Image.png N src/test/resources/elements/LICENSE N src/test/resources/elements/NOTICE !????? src/test/resources/elements/Source.java AL src/test/resources/elements/Text.txt AL src/test/resources/elements/Xml.xml A src/test/resources/elements/dummy.jar] !????? src/test/re...> but was:<... Notes: 2 Binaries: [2 Archives: 0 Standards: 4 Apache Licensed: 2 Generated Documents: 0 JavaDocs are generated and so license header is optional Generated files do not required license headers 2 Unknown Licenses ******************************* Unapproved licenses: src/test/resources/elements/Source.java src/test/resources/elements/sub/Empty.txt ******************************* Archives: ***************************************************** Files with Apache License headers will be marked AL Binary files (which do not require AL headers) will be marked B Compressed archives will be marked A Notices, licenses etc will be marked N B src/test/resources/elements/Image.png N src/test/resources/elements/LICENSE N src/test/resources/elements/NOTICE !????? src/test/resources/elements/Source.java AL src/test/resources/elements/Text.txt AL src/test/resources/elements/Xml.xml B src/test/resources/elements/dummy.jar.no] !????? src/test/re...>

W3CLicenseTest

testMatch 0

HeaderCheckWorkerTest

testIsFinished 0

ArrayCharFilterTest

testIsFilteredOut 0.001

XmlReportFactoryTest

testStandardReport 0.007
null expected:<...s/elements/dummy.jar['><type name='archive]'/></resource></rat-...> but was:<...s/elements/dummy.jar[.no'><type name='binary]'/></resource></rat-...>

XmlWriterTest

testReturnValues 0
testOpenElement 0
testInvalidElementName 0.001
testCallOpenElementAfterLastElementClosed 0
testCallCloseElementAfterLastElementClosed 0
testCloseFirstElement 0
testCloseElementWithContent 0
testCloseElementBeforeFirstElement 0
testContentAfterElement 0.001
testContentAfterLastElement 0
testWriteContentBeforeFirstElement 0
testContentEscaping 0
testAttributeAfterLastElement 0
testAttributeContentBeforeFirstElement 0
testInvalidAttributeName 0
testEscapeAttributeContent 0
testAttributeInContent 0
testOutOfRangeCharacter 0
testAttributeAfterElementClosed 0
testCloseDocumentBeforeOpen 0
testCloseDocumentAfterRootElementClosed 0
testCloseSimpleDocument 0.001
testCloseComplexDocument 0
testWriteProlog 0
testWriteAfterElement 0
testWritePrologTwo 0
testDuplicateAttributes 0

ReportTransformerTest

testTransform 0.203

DocumentAnalyserMultiplexerTest

testAnalyse 0.001

TestLicenceAppender

testAddLicenceToUnknownFile 0.001
testAddLicenceToJava 0
testAddLicenceToXML 0
testAddLicenceToHTML 0
testAddLicenceToCSS 0.001
testAddLicenceToJavascript 0.001
testAddLicenceToAPT 0
testAddLicenceToProperties 0.001

JavaDocLicenseNotRequiredTest

testMatchIndexDoc 0.001
testMatchClassDoc 0.001
testMatchNonJavaDoc 0.001

ToNameTransformerTest

testTransformLocation 0
testTransformNull 0

XmlReportTest

testBaseReport 0.016
null expected:<...s/elements/dummy.jar['><type name='archive]'/></resource><resou...> but was:<...s/elements/dummy.jar[.no'><type name='binary]'/></resource><resou...>

OASISLicenseTest

testMatch 0.01
testNoMatch 0.001

BinaryGuesserTest

testMatches 0.007
testIsBinary 0

XmlWriterUtilsTest

testWriteTrue 0.01
testWriteFalse 0

ArchiveGuesserTest

testMatches 0.001
testIsArchive 0

GeneratedLicenseNotRequiredTest

testMatch 0.007

RatCheckMojoTest

testIt1 0.56
testIt2 0.112
testIt3 0.086

ReportTest

testWithReportSentToAnt 0.668
testWithReportSentToFile 0.179
testWithASLUnknown 0.188
testCustomMatcher 0.154
testNoResources 0.094
testNoLicenseMatchers 0.093
testAddLicenseHeaders 0.156

Failure Details


testPlainReport
junit.framework.ComparisonFailure: Report created expected:<... Notes: 2 Binaries: [1 Archives: 1 Standards: 4 Apache Licensed: 2 Generated Documents: 0 JavaDocs are generated and so license header is optional Generated files do not required license headers 2 Unknown Licenses ******************************* Unapproved licenses: src/test/resources/elements/Source.java src/test/resources/elements/sub/Empty.txt ******************************* Archives: + src/test/resources/elements/dummy.jar ***************************************************** Files with Apache License headers will be marked AL Binary files (which do not require AL headers) will be marked B Compressed archives will be marked A Notices, licenses etc will be marked N B src/test/resources/elements/Image.png N src/test/resources/elements/LICENSE N src/test/resources/elements/NOTICE !????? src/test/resources/elements/Source.java AL src/test/resources/elements/Text.txt AL src/test/resources/elements/Xml.xml A src/test/resources/elements/dummy.jar] !????? src/test/re...> but was:<... Notes: 2 Binaries: [2 Archives: 0 Standards: 4 Apache Licensed: 2 Generated Documents: 0 JavaDocs are generated and so license header is optional Generated files do not required license headers 2 Unknown Licenses ******************************* Unapproved licenses: src/test/resources/elements/Source.java src/test/resources/elements/sub/Empty.txt ******************************* Archives: ***************************************************** Files with Apache License headers will be marked AL Binary files (which do not require AL headers) will be marked B Compressed archives will be marked A Notices, licenses etc will be marked N B src/test/resources/elements/Image.png N src/test/resources/elements/LICENSE N src/test/resources/elements/NOTICE !????? src/test/resources/elements/Source.java AL src/test/resources/elements/Text.txt AL src/test/resources/elements/Xml.xml B src/test/resources/elements/dummy.jar.no] !????? src/test/re...>
testStandardReport
junit.framework.ComparisonFailure: null expected:<...s/elements/dummy.jar['><type name='archive]'/></resource></rat-...> but was:<...s/elements/dummy.jar[.no'><type name='binary]'/></resource></rat-...>
testBaseReport
junit.framework.ComparisonFailure: null expected:<...s/elements/dummy.jar['><type name='archive]'/></resource><resou...> but was:<...s/elements/dummy.jar[.no'><type name='binary]'/></resource><resou...>