Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
84000100%12.365

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


Package List

[Summary] [Package List] [Test Cases]


PackageTestsErrors FailuresSkippedSuccess RateTime
org.apache.creadur.whisker.fromxml84000100%12.365

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

org.apache.creadur.whisker.fromxml

ClassTestsErrors FailuresSkippedSuccess RateTime
JDomBuilderWithDirectoryTest4000100%2.74
JDomBuilderResourceTest8000100%0.138
JDomBuilderByOrganisationTest21000100%0.02
JDomBuilderOrganisationTest2000100%0.003
JDomBuilderWithLicenseTest17000100%2.75
JDomBuilderLicenseTest10000100%0.007
JDomBuilderWorkTest22000100%6.707

Test Cases

[Summary] [Package List] [Test Cases]

JDomBuilderWithDirectoryTest

testBuildWithinDirectorySetsLicenses0.403
testBuildWithinDirectorySetsPublicDomain0.534
testBuildWithinDirectorySetsDirectoryName0
testCollectPublicDomainOrgs1.803

JDomBuilderResourceTest

testBuildResourceWithNameNoticeAndSourceTrimsSpacesBeforeValue0.137
testBuildResourceWithNameNoticeAndSourceTrimsSpaces0
testBuildResourceWithNameNoticeAndSourceTrimsSpacesAfterValue0
testBuildResourceWithNameNoticeAndSourceTrimsWithSpacesInValue0
testBuildResourceWithNameNoticeAndSourceSpacesInVaule0
testBuildResourceWithNameNoticeAndSourceLowers0
testBuildResourceWithNameNoticeAndSourceCaps0
testThrowsIllegalArgumentWhenElementIsNotResource0.001

JDomBuilderByOrganisationTest

testBuildResourcesFromNoResources0.006
testCollectResourcesNumbered10
testCollectResourcesNumbered20
testCollectResourcesNumbered30
testCollectResourcesNumbered40.001
testOrganisationByIdThrowsIllegalArgumentWhenOrganisationsEmpty0.004
testOrganisationByIdThrowsIllegalArgumentWhenOrganisationsMissing0
testOrganisationByIdFindsOrganisationsPresent0
testByOrganisationBuildsFromOrganisationAndElementWith3ChildResources0
testByOrganisationBuildsFromOrganisationAndElementWith5ChildResources0
testByOrganisationBuildsFromOrganisationAndElementWith10ChildResources0
testByOrganisationBuildsFromMapAndElementWith1ChildResources0
testByOrganisationBuildsFromMapAndElementWith5ChildResources0
testByOrganisationBuildsFromMapAndElementWith10ChildResources0.001
testByOrganisationCollectiveOneChild0
testByOrganisationCollective2Children0.005
testByOrganisationCollective5Child0.001
testByOrganisationCollective3Child0
testByOrganisationCollective7Child0.001
testByOrganisationEmptyCollective0
testByOrganisationCollectiveUnmodifiable0.001

JDomBuilderOrganisationTest

testOrganisationSetsIdNameUrl0.002
testThrowIllegalArgumentWhenResourceIsNotOrganisation0.001

JDomBuilderWithLicenseTest

testLicenseFromListThrowsMissingIDWhenEmpty0.009
testLicenseFromListThrowsMissingIDWhenIDsAreMismatched0
testLicenseFromListFindsLicense0
testBuildLicenseFromElementWithCopyrightNotice0.001
testBuildLicenseFromElementWithCopyrightNoticeTrimSpaces0.001
testBuildLicenseFromElementNoCopyrightNoticeNoParameters0
testBuildLicenseWithParametersIsEmptyWhenNoParameters0
testBuildLicenseWithOneParameter0
testBuildLicenseWithTwoParameters0.001
testBuildLicenseWith3Parameters0
testBuildLicenseWith4Parameters0
testBuildLicenseWith7Parameters0
testBuildLicenseWith11Parameters0
testBuildLicenseWith101Parameters0.001
testWithLicenseBuildWithParameters0.205
testBuildLicenseWithParametersThrowsExceptionWhenParameterIsDuplicated0.001
testBuildCollectWithLicenses2.531

JDomBuilderLicenseTest

testLicenseWithNameUrl0.003
testLicenseRequiresSourceTrue0.001
testLicenseRequiresSourceTrueAllCaps0
testLicenseRequiresSourceTrueMixedCase0
testLicenseRequiresSourceFalse0.001
testLicenseRequiresSourceDefault0
testLicenseNoParameters0
testLicenseOneParameter0.001
testLicenseTwoParameters0
testLicenseBaseText0.001

JDomBuilderWorkTest

testMapNoticesIsEmptyWhenDocumentHasNoNotices0.028
testMapNoticesExpectedToBeImmutable0.001
testMapNoticesFindsNoticesDefinedInDocument1.338
testMapLicensesIsEmptyWhenDocumentHasNoLicenses0
testMapLicensesExpectedToBeImmutable0.001
testMapLicensesFindsLicensesDefinedInDocument1.03
testMapOrganisationsIsEmptyWhenDocumentHasNoOrganisations0
testMapOrganisationsExpectedToBeImmutable0.001
testMapOrganisationsFindOrganisationDefinedInDocument0.509
testPrimaryLicense0
testNoPrimaryCopyright0.001
testPrimaryCopyright0
testBuildPrimaryCopyright0.015
testThrowsMissingIDExceptionWhenPrimaryLicenseMissing0.003
testPrimaryNoticeFindsNoticeText0.052
testPrimaryNoticeIsNullWhenThereIsNoNoticeText0
testPrimaryNoticeSubstitutesYearInNoticeText0.001
testFindPrimaryOrganisationIdReturnsNullWhenOrganisationUnset0
testFindPrimaryOrganisationIdWhenSet0.001
testCollectContentsReturneEmptyWhenDocumentHasNoContents0
testCollectDirectoriesDefinedInDocument3.721
testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated0.005