Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
124 0 0 0 100% 55.294

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
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.107
info.magnolia.dirwatch 7 0 0 0 100% 22.323
info.magnolia.resourceloader.file 30 0 0 0 100% 14.16
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.019
info.magnolia.resourceloader.jcr 22 0 0 0 100% 17.644
info.magnolia.resourceloader.classpath.service.impl.base 3 0 0 0 100% 0.007
info.magnolia.resourceloader.util 11 0 0 0 100% 0.001
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.033

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 1.013
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.094

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherTest 7 0 0 0 100% 22.323

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 7 0 0 0 100% 0.008
FileSystemResourceOriginTest 20 0 0 0 100% 0.123
FileWatcherCallbackTest 3 0 0 0 100% 14.029

info.magnolia.resourceloader.layered

Class Tests Errors Failures Skipped Success Rate Time
LayeredResourceOriginTest 15 0 0 0 100% 0.019

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 17.623
JcrResourceOriginTest 13 0 0 0 100% 0.021

info.magnolia.resourceloader.classpath.service.impl.base

Class Tests Errors Failures Skipped Success Rate Time
ClasspathEntriesResolverTest 3 0 0 0 100% 0.007

info.magnolia.resourceloader.util

Class Tests Errors Failures Skipped Success Rate Time
FunctionsTest 7 0 0 0 100% 0
PredicatedResourceVisitorTest 2 0 0 0 100% 0
ResourceTreeWalkerTest 2 0 0 0 100% 0.001

info.magnolia.resourceloader.dummy

Class Tests Errors Failures Skipped Success Rate Time
DummyResourceOriginTest 9 0 0 0 100% 0.033

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 4.255
watchingFileIsNotPossible 0.004
supportsMultipleRootFolders 4.011
modifiedFileIsDetected 4.013
exceptionsThrownByCallbacksDontKillTheSystem 4.016
deletedFileIsDetected 4.012
createdFileIsDetected 2.012

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.146
lastModifiedReturnsTimeOfLastModification 0.065
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.036
getRootReturnsResourceForRoot 0.047
communicatesFileModification 0.148
communicatesFileRemoval 0.076
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.02
openInputStreamForResource 0.02
excludesNativeLibsAndOtherFunkyThingsByDefault 0.135
getByPathReturnsResourceForFile 0.03
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.023
getParentReturnsNullForRootPath 0.022
getParentReturnsTheParentFolderForPathToFolder 0.018
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.017
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.055
watchForChangesTriggersNothingIfServiceNotEnabled 0.018
getParentReturnsTheParentFolderForPathToFile 0.019
mgnlResourcesAreExcludedByDefault 0.019
reflectionsURLsFiltersNativeLibsOut 0.023
communicatesFileAddition 0.039
listChildrenReturnsVirtualDirectoryStructure 0.019
traverseWithCallsFunctionForEveryResource 0.018

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.017
whatsInRoot 0.021
listRootChildren 0.018
mgnlResourcesAreAvailableAtRoot 0.021
parentIsCorrect 0.017

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.006
attachAndIndex 0.001
identifiesChildrenCorrectly 0

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.021
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0.001
nameIsStupidSubstringButThisIsGoodEnoughHere 0.001
singleOriginPassesGivenStreamOnlyToThatOneResource 0.002
parentsMustBeSpecified 0.001
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0.001
pathsAreInInsertionOrder 0.002
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.003

ExclusionsFilterTest

directoryAndExtensionExcludesAreEscapedSoThatDotsCanAppearInExcludeWithNoSpecialMeaning 0.003
testApplyToRootDirectory 0.001
exclusionFilterNormalizesGivenRootPathAndExclusionDirectories 0.001
exclusionFilterNormalizesGivenExclusionDirectories 0.001
excludeWithPattern 0
excludedDirectoryNameIsCompleteMatch 0.001
excludedDirectoryAreExcludedEveryWhereNotJustInRoot 0.001

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.017
getByPathReturnsResourceForGivenStringPath 0.005
defaultExcludeListPatternIsCorrect 0.006
excludesAreAppliedEverywhere 0.024
listChildrenDoesntIncludeGivenFolder 0.006
newResourceReturnsFSRPForAbsolutePathToFile 0.004
lastModifiedReturnsTimeOfLastModification 0.003
getRootWrapsRootPathInResource 0.003
traverseWithCallsFunctionForEveryMatchingResource 0.007
openStreamReturnStreamForGivenPath 0.003
getParentReturnsNullForRootPath 0.004
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.003
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.005
exclusionOfDirectoriesFromPropertyFileWorks 0.004
nullExclusionPropertyFallbacksToDefault 0.006
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.005
listChildrenReturnsDirectChildren 0.008
newResourceThrowsExceptionWhenPathDoesNotExist 0.004
getByPathThrowsExceptionForNonExistingPath 0.003
newResourceReturnsFSRPForRelativePathToFile 0.003

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.006
movedDirectoryIsDetected 4.015
communicatesAllPossibleFileChangeEvents 6.008

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 4.32
communicatesFileResourceAddition 1.945
communicatesResourceFolderDeletionWithContents 1.474
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.392
communicatesFileResourceDeletion 1.369
communicatesFileResourceModification 1.304
communicatesResourceFolderAdditionWithContents 1.245
ignoreChangesWhenResourceIsBypassed 2.295
bypassSetToTrueTreatedAsResourceRemoval 1.279

JcrResourceOriginTest

getByPathThrowsExceptionWhenPathDoesNotExist 0.006
lastModifiedReturnsTimeOfLastModification 0.003
getRootReturnsResourceForRoot 0.002
traverseWithCallsFunctionForEveryMatchingResource 0.005
getByPathReturnsResourceForPathToDirectory 0
listChildrenReturnsChildren 0.001
openInputStreamForTextResource 0.002
getParentReturnsNullForRootPath 0
getParentReturnsTheParentFolderForPathToFolder 0.001
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0
listChildrenThrowsExceptionWhenGivenPathIsAFile 0
getParentReturnsTheParentFolderForPathToFile 0.001
getByPathReturnsResourceForPathToFile 0

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.007
listChildrenAggregatesCorrectly 0.001
isEditableIsThatOfCorrectLayer 0
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0
lastModifiedIsThatOfCorrectLayer 0.001
navigationThroughParentAggregatesCorrectly 0.001
watchForChangesForwardsLayeredResourceToVisitor 0.005
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.002
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0
newValidatesThatPathsMatch 0.001
byPathFindsResourcesInTheDifferentLayers 0
newValidatesThatTypeMatch 0
hasPathFindsResourcesInTheDifferentLayers 0
getRootLayersAllOrigins 0

FunctionsTest

collectorCollects 0
collectorCanBeAssignedToVoidFunction 0
patternBasedPredicatesOperateOnPartialPathByDefault 0
pathEqualsChecksResourcePath 0
sanityCheckForGuavaRegexPredicate 0
canPassPredicateToPathEqualsPredicate 0
collectorCollectsToGivenCollection 0

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0