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.322 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.322 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.080 s
JDomBuilderWithDirectoryTest 4 0 0 0 100% 0.043 s
JDomBuilderResourceTest 8 0 0 0 100% 0.009 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.009 s
JDomBuilderByOrganisationTest 21 0 0 0 100% 0.051 s

Test Cases

[Summary] [Package List] [Test Cases]

JDomBuilderWithLicenseTest

testBuildLicenseWithOneParameter 0.004 s
testBuildLicenseWith3Parameters 0 s
testLicenseFromListThrowsMissingIDWhenIDsAreMismatched 0 s
testBuildLicenseFromElementWithCopyrightNoticeTrimSpaces 0 s
testBuildLicenseWithParametersThrowsExceptionWhenParameterIsDuplicated 0.001 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.039 s
testBuildLicenseWith101Parameters 0.001 s
testBuildLicenseWith11Parameters 0 s

JDomBuilderWithDirectoryTest

testBuildWithinDirectorySetsDirectoryName 0 s
testBuildWithinDirectorySetsLicenses 0.015 s
testCollectPublicDomainOrgs 0.021 s
testBuildWithinDirectorySetsPublicDomain 0.004 s

JDomBuilderResourceTest

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

JDomBuilderOrganisationTest

testOrganisationSetsIdNameUrl 0.001 s
testThrowIllegalArgumentWhenResourceIsNotOrganisation 0 s

JDomBuilderWorkTest

testFindPrimaryOrganisationIdWhenSet 0 s
testMapOrganisationsExpectedToBeImmutable 0 s
testMapOrganisationsIsEmptyWhenDocumentHasNoOrganisations 0 s
testBuildPrimaryCopyright 0.006 s
testPrimaryNoticeIsNullWhenThereIsNoNoticeText 0 s
testMapNoticesExpectedToBeImmutable 0 s
testMapLicensesIsEmptyWhenDocumentHasNoLicenses 0 s
testPrimaryNoticeFindsNoticeText 0.016 s
testMapNoticesFindsNoticesDefinedInDocument 0.027 s
testThrowsMissingIDExceptionWhenPrimaryLicenseMissing 0.001 s
testFindPrimaryOrganisationIdReturnsNullWhenOrganisationUnset 0 s
testMapOrganisationsFindOrganisationDefinedInDocument 0.020 s
testPrimaryCopyright 0.001 s
testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated 0 s
testMapLicensesFindsLicensesDefinedInDocument 0.025 s
testCollectDirectoriesDefinedInDocument 0.031 s
testCollectContentsReturneEmptyWhenDocumentHasNoContents 0 s
testNoPrimaryCopyright 0.001 s
testMapNoticesIsEmptyWhenDocumentHasNoNotices 0 s
testPrimaryNoticeSubstitutesYearInNoticeText 0 s
testMapLicensesExpectedToBeImmutable 0.001 s
testPrimaryLicense 0 s

JDomBuilderLicenseTest

testLicenseRequiresSourceFalse 0.003 s
testLicenseRequiresSourceDefault 0 s
testLicenseBaseText 0 s
testLicenseRequiresSourceTrue 0 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.008 s
testByOrganisationCollective5Child 0.001 s
testByOrganisationCollective7Child 0.001 s
testBuildResourcesFromNoResources 0 s
testByOrganisationCollective2Children 0.001 s
testCollectResourcesNumbered1 0 s
testCollectResourcesNumbered2 0.001 s
testCollectResourcesNumbered3 0 s
testCollectResourcesNumbered4 0.001 s
testByOrganisationBuildsFromMapAndElementWith1ChildResources 0 s
testOrganisationByIdThrowsIllegalArgumentWhenOrganisationsEmpty 0.002 s
testByOrganisationCollectiveUnmodifiable 0 s
testByOrganisationEmptyCollective 0.001 s
testOrganisationByIdThrowsIllegalArgumentWhenOrganisationsMissing 0 s
testByOrganisationCollectiveOneChild 0 s
testByOrganisationBuildsFromOrganisationAndElementWith10ChildResources 0 s
testByOrganisationBuildsFromOrganisationAndElementWith5ChildResources 0.001 s
testByOrganisationBuildsFromMapAndElementWith5ChildResources 0 s
testByOrganisationBuildsFromMapAndElementWith10ChildResources 0.001 s
testByOrganisationBuildsFromOrganisationAndElementWith3ChildResources 0.001 s