Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
84 0 0 0 100% 0.551 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.551 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.190 s
JDomBuilderWithDirectoryTest 4 0 0 0 100% 0.043 s
JDomBuilderResourceTest 8 0 0 0 100% 0.006 s
JDomBuilderOrganisationTest 2 0 0 0 100% 0.002 s
JDomBuilderWorkTest 22 0 0 0 100% 0.127 s
JDomBuilderLicenseTest 10 0 0 0 100% 0.004 s
JDomBuilderByOrganisationTest 21 0 0 0 100% 0.179 s

Test Cases

[Summary] [Package List] [Test Cases]

JDomBuilderWithLicenseTest

testBuildLicenseWithOneParameter 0.002 s
testBuildLicenseWith3Parameters 0.002 s
testLicenseFromListThrowsMissingIDWhenIDsAreMismatched 0.004 s
testBuildLicenseFromElementWithCopyrightNoticeTrimSpaces 0.003 s
testBuildLicenseWithParametersThrowsExceptionWhenParameterIsDuplicated 0.002 s
testLicenseFromListThrowsMissingIDWhenEmpty 0.002 s
testBuildLicenseWith7Parameters 0.002 s
testLicenseFromListFindsLicense 0.002 s
testBuildLicenseWithParametersIsEmptyWhenNoParameters 0.002 s
testBuildLicenseWithTwoParameters 0.002 s
testBuildLicenseFromElementNoCopyrightNoticeNoParameters 0.002 s
testBuildLicenseFromElementWithCopyrightNotice 0.002 s
testWithLicenseBuildWithParameters 0.089 s
testBuildLicenseWith4Parameters 0.004 s
testBuildCollectWithLicenses 0.048 s
testBuildLicenseWith101Parameters 0.001 s
testBuildLicenseWith11Parameters 0 s

JDomBuilderWithDirectoryTest

testBuildWithinDirectorySetsDirectoryName 0.001 s
testBuildWithinDirectorySetsLicenses 0.009 s
testCollectPublicDomainOrgs 0.027 s
testBuildWithinDirectorySetsPublicDomain 0.003 s

JDomBuilderResourceTest

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

JDomBuilderOrganisationTest

testOrganisationSetsIdNameUrl 0.001 s
testThrowIllegalArgumentWhenResourceIsNotOrganisation 0 s

JDomBuilderWorkTest

testFindPrimaryOrganisationIdWhenSet 0.002 s
testMapOrganisationsExpectedToBeImmutable 0.001 s
testMapOrganisationsIsEmptyWhenDocumentHasNoOrganisations 0 s
testBuildPrimaryCopyright 0.001 s
testPrimaryNoticeIsNullWhenThereIsNoNoticeText 0 s
testMapNoticesExpectedToBeImmutable 0 s
testMapLicensesIsEmptyWhenDocumentHasNoLicenses 0.001 s
testPrimaryNoticeFindsNoticeText 0.018 s
testMapNoticesFindsNoticesDefinedInDocument 0.027 s
testThrowsMissingIDExceptionWhenPrimaryLicenseMissing 0 s
testFindPrimaryOrganisationIdReturnsNullWhenOrganisationUnset 0.001 s
testMapOrganisationsFindOrganisationDefinedInDocument 0.020 s
testPrimaryCopyright 0 s
testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated 0 s
testMapLicensesFindsLicensesDefinedInDocument 0.023 s
testCollectDirectoriesDefinedInDocument 0.029 s
testCollectContentsReturneEmptyWhenDocumentHasNoContents 0 s
testNoPrimaryCopyright 0 s
testMapNoticesIsEmptyWhenDocumentHasNoNotices 0 s
testPrimaryNoticeSubstitutesYearInNoticeText 0 s
testMapLicensesExpectedToBeImmutable 0.001 s
testPrimaryLicense 0 s

JDomBuilderLicenseTest

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

JDomBuilderByOrganisationTest

testOrganisationByIdFindsOrganisationsPresent 0.022 s
testByOrganisationCollective3Child 0.042 s
testByOrganisationCollective5Child 0.006 s
testByOrganisationCollective7Child 0.008 s
testBuildResourcesFromNoResources 0.002 s
testByOrganisationCollective2Children 0.003 s
testCollectResourcesNumbered1 0.002 s
testCollectResourcesNumbered2 0.002 s
testCollectResourcesNumbered3 0.002 s
testCollectResourcesNumbered4 0.002 s
testByOrganisationBuildsFromMapAndElementWith1ChildResources 0.002 s
testOrganisationByIdThrowsIllegalArgumentWhenOrganisationsEmpty 0.003 s
testByOrganisationCollectiveUnmodifiable 0.002 s
testByOrganisationEmptyCollective 0.003 s
testOrganisationByIdThrowsIllegalArgumentWhenOrganisationsMissing 0.002 s
testByOrganisationCollectiveOneChild 0.002 s
testByOrganisationBuildsFromOrganisationAndElementWith10ChildResources 0.003 s
testByOrganisationBuildsFromOrganisationAndElementWith5ChildResources 0.003 s
testByOrganisationBuildsFromMapAndElementWith5ChildResources 0.002 s
testByOrganisationBuildsFromMapAndElementWith10ChildResources 0.002 s
testByOrganisationBuildsFromOrganisationAndElementWith3ChildResources 0.003 s