Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
84 0 0 0 100% 0.308 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.308 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.073 s
JDomBuilderWithDirectoryTest 4 0 0 0 100% 0.041 s
JDomBuilderResourceTest 8 0 0 0 100% 0.004 s
JDomBuilderOrganisationTest 2 0 0 0 100% 0 s
JDomBuilderWorkTest 22 0 0 0 100% 0.139 s
JDomBuilderLicenseTest 10 0 0 0 100% 0.004 s
JDomBuilderByOrganisationTest 21 0 0 0 100% 0.047 s

Test Cases

[Summary] [Package List] [Test Cases]

JDomBuilderWithLicenseTest

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

JDomBuilderWithDirectoryTest

testBuildWithinDirectorySetsDirectoryName 0.001 s
testBuildWithinDirectorySetsLicenses 0.009 s
testCollectPublicDomainOrgs 0.026 s
testBuildWithinDirectorySetsPublicDomain 0.004 s

JDomBuilderResourceTest

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

JDomBuilderOrganisationTest

testOrganisationSetsIdNameUrl 0 s
testThrowIllegalArgumentWhenResourceIsNotOrganisation 0 s

JDomBuilderWorkTest

testFindPrimaryOrganisationIdWhenSet 0.003 s
testMapOrganisationsExpectedToBeImmutable 0 s
testMapOrganisationsIsEmptyWhenDocumentHasNoOrganisations 0 s
testBuildPrimaryCopyright 0.001 s
testPrimaryNoticeIsNullWhenThereIsNoNoticeText 0.001 s
testMapNoticesExpectedToBeImmutable 0 s
testMapLicensesIsEmptyWhenDocumentHasNoLicenses 0 s
testPrimaryNoticeFindsNoticeText 0.018 s
testMapNoticesFindsNoticesDefinedInDocument 0.030 s
testThrowsMissingIDExceptionWhenPrimaryLicenseMissing 0 s
testFindPrimaryOrganisationIdReturnsNullWhenOrganisationUnset 0 s
testMapOrganisationsFindOrganisationDefinedInDocument 0.023 s
testPrimaryCopyright 0 s
testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated 0.001 s
testMapLicensesFindsLicensesDefinedInDocument 0.026 s
testCollectDirectoriesDefinedInDocument 0.033 s
testCollectContentsReturneEmptyWhenDocumentHasNoContents 0 s
testNoPrimaryCopyright 0.001 s
testMapNoticesIsEmptyWhenDocumentHasNoNotices 0 s
testPrimaryNoticeSubstitutesYearInNoticeText 0 s
testMapLicensesExpectedToBeImmutable 0 s
testPrimaryLicense 0 s

JDomBuilderLicenseTest

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

JDomBuilderByOrganisationTest

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