Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
84 0 0 0 100% 0.294 s

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


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.creadur.whisker.fromxml 84 0 0 0 100% 0.294 s

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

org.apache.creadur.whisker.fromxml

- Class Tests Errors Failures Skipped Success Rate Time
JDomBuilderWithLicenseTest 17 0 0 0 100% 0.068 s
JDomBuilderWithDirectoryTest 4 0 0 0 100% 0.047 s
JDomBuilderResourceTest 8 0 0 0 100% 0.002 s
JDomBuilderOrganisationTest 2 0 0 0 100% 0.001 s
JDomBuilderWorkTest 22 0 0 0 100% 0.129 s
JDomBuilderLicenseTest 10 0 0 0 100% 0.003 s
JDomBuilderByOrganisationTest 21 0 0 0 100% 0.044 s

Test Cases

[Summary] [Package List] [Test Cases]

JDomBuilderWithLicenseTest

testBuildLicenseWithOneParameter 0.001 s
testBuildLicenseWith3Parameters 0 s
testLicenseFromListThrowsMissingIDWhenIDsAreMismatched 0.001 s
testBuildLicenseFromElementWithCopyrightNoticeTrimSpaces 0 s
testBuildLicenseWithParametersThrowsExceptionWhenParameterIsDuplicated 0 s
testLicenseFromListThrowsMissingIDWhenEmpty 0 s
testBuildLicenseWith7Parameters 0.001 s
testLicenseFromListFindsLicense 0 s
testBuildLicenseWithParametersIsEmptyWhenNoParameters 0 s
testBuildLicenseWithTwoParameters 0 s
testBuildLicenseFromElementNoCopyrightNoticeNoParameters 0.001 s
testBuildLicenseFromElementWithCopyrightNotice 0 s
testWithLicenseBuildWithParameters 0.024 s
testBuildLicenseWith4Parameters 0 s
testBuildCollectWithLicenses 0.035 s
testBuildLicenseWith101Parameters 0 s
testBuildLicenseWith11Parameters 0 s

JDomBuilderWithDirectoryTest

testBuildWithinDirectorySetsDirectoryName 0.001 s
testBuildWithinDirectorySetsLicenses 0.008 s
testCollectPublicDomainOrgs 0.033 s
testBuildWithinDirectorySetsPublicDomain 0.004 s

JDomBuilderResourceTest

testBuildResourceWithNameNoticeAndSourceTrimsSpacesBeforeValue 0 s
testBuildResourceWithNameNoticeAndSourceTrimsWithSpacesInValue 0 s
testBuildResourceWithNameNoticeAndSourceTrimsSpacesAfterValue 0 s
testBuildResourceWithNameNoticeAndSourceTrimsSpaces 0 s
testBuildResourceWithNameNoticeAndSourceCaps 0 s
testBuildResourceWithNameNoticeAndSourceLowers 0 s
testBuildResourceWithNameNoticeAndSourceSpacesInVaule 0.001 s
testThrowsIllegalArgumentWhenElementIsNotResource 0 s

JDomBuilderOrganisationTest

testOrganisationSetsIdNameUrl 0 s
testThrowIllegalArgumentWhenResourceIsNotOrganisation 0 s

JDomBuilderWorkTest

testFindPrimaryOrganisationIdWhenSet 0.002 s
testMapOrganisationsExpectedToBeImmutable 0 s
testMapOrganisationsIsEmptyWhenDocumentHasNoOrganisations 0 s
testBuildPrimaryCopyright 0.001 s
testPrimaryNoticeIsNullWhenThereIsNoNoticeText 0 s
testMapNoticesExpectedToBeImmutable 0.001 s
testMapLicensesIsEmptyWhenDocumentHasNoLicenses 0 s
testPrimaryNoticeFindsNoticeText 0.018 s
testMapNoticesFindsNoticesDefinedInDocument 0.026 s
testThrowsMissingIDExceptionWhenPrimaryLicenseMissing 0 s
testFindPrimaryOrganisationIdReturnsNullWhenOrganisationUnset 0 s
testMapOrganisationsFindOrganisationDefinedInDocument 0.025 s
testPrimaryCopyright 0 s
testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated 0 s
testMapLicensesFindsLicensesDefinedInDocument 0.026 s
testCollectDirectoriesDefinedInDocument 0.028 s
testCollectContentsReturneEmptyWhenDocumentHasNoContents 0 s
testNoPrimaryCopyright 0 s
testMapNoticesIsEmptyWhenDocumentHasNoNotices 0 s
testPrimaryNoticeSubstitutesYearInNoticeText 0 s
testMapLicensesExpectedToBeImmutable 0 s
testPrimaryLicense 0 s

JDomBuilderLicenseTest

testLicenseRequiresSourceFalse 0 s
testLicenseRequiresSourceDefault 0 s
testLicenseBaseText 0.001 s
testLicenseRequiresSourceTrue 0.001 s
testLicenseNoParameters 0 s
testLicenseTwoParameters 0 s
testLicenseOneParameter 0 s
testLicenseRequiresSourceTrueMixedCase 0 s
testLicenseRequiresSourceTrueAllCaps 0 s
testLicenseWithNameUrl 0 s

JDomBuilderByOrganisationTest

testOrganisationByIdFindsOrganisationsPresent 0.008 s
testByOrganisationCollective3Child 0.007 s
testByOrganisationCollective5Child 0.001 s
testByOrganisationCollective7Child 0.001 s
testBuildResourcesFromNoResources 0 s
testByOrganisationCollective2Children 0.001 s
testCollectResourcesNumbered1 0 s
testCollectResourcesNumbered2 0 s
testCollectResourcesNumbered3 0.001 s
testCollectResourcesNumbered4 0 s
testByOrganisationBuildsFromMapAndElementWith1ChildResources 0 s
testOrganisationByIdThrowsIllegalArgumentWhenOrganisationsEmpty 0 s
testByOrganisationCollectiveUnmodifiable 0.001 s
testByOrganisationEmptyCollective 0 s
testOrganisationByIdThrowsIllegalArgumentWhenOrganisationsMissing 0 s
testByOrganisationCollectiveOneChild 0 s
testByOrganisationBuildsFromOrganisationAndElementWith10ChildResources 0.001 s
testByOrganisationBuildsFromOrganisationAndElementWith5ChildResources 0 s
testByOrganisationBuildsFromMapAndElementWith5ChildResources 0 s
testByOrganisationBuildsFromMapAndElementWith10ChildResources 0 s
testByOrganisationBuildsFromOrganisationAndElementWith3ChildResources 0 s