Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
142 18 0 0 87.324% 58.602

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.service.impl.base 3 0 0 0 100% 0.005
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.027
info.magnolia.resourceloader.util 11 0 0 0 100% 0.003
info.magnolia.resourceloader.file 34 0 0 0 100% 20.18
info.magnolia.dirwatch 11 0 0 0 100% 32.307
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.025
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.836
info.magnolia.resourceloader.jcr 31 18 0 0 41.935% 5.219

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

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

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
FileSystemResourceOriginTest 20 0 0 0 100% 0.109
ExclusionsFilterTest 8 0 0 0 100% 0.001
FileWatcherCallbackTest 6 0 0 0 100% 20.07

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherTest 11 0 0 0 100% 32.307

info.magnolia.resourceloader.layered

Class Tests Errors Failures Skipped Success Rate Time
LayeredResourceOriginTest 16 0 0 0 100% 0.025

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.736
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.1

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 13 0 0 0 100% 0.034
JcrResourceOriginRepositoryTest 18 18 0 0 0% 5.185

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.009
listChildrenAggregatesCorrectly 0.002
isEditableIsThatOfCorrectLayer 0.001
hotfixDeletionTriggersResourceModification 0.002
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0
lastModifiedIsThatOfCorrectLayer 0.002
navigationThroughParentAggregatesCorrectly 0
watchForChangesForwardsLayeredResourceToVisitor 0.004
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.002
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0
newValidatesThatPathsMatch 0.001
byPathFindsResourcesInTheDifferentLayers 0
newValidatesThatTypeMatch 0.001
hasPathFindsResourcesInTheDifferentLayers 0
getRootLayersAllOrigins 0

ResourceTreeWalkerTest

simpleVisit 0.002
canVisitJustAFileCauseWhyNot 0

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.092
lastModifiedReturnsTimeOfLastModification 0.027
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.02
getRootReturnsResourceForRoot 0.031
communicatesFileModification 0.094
communicatesFileRemoval 0.062
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.018
openInputStreamForResource 0.018
excludesNativeLibsAndOtherFunkyThingsByDefault 0.043
getByPathReturnsResourceForFile 0.017
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.02
getParentReturnsNullForRootPath 0.026
getParentReturnsTheParentFolderForPathToFolder 0.019
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.02
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.062
watchForChangesTriggersNothingIfServiceNotEnabled 0.02
getParentReturnsTheParentFolderForPathToFile 0.019
mgnlResourcesAreExcludedByDefault 0.02
reflectionsURLsFiltersNativeLibsOut 0.021
communicatesFileAddition 0.046
listChildrenReturnsVirtualDirectoryStructure 0.022
traverseWithCallsFunctionForEveryResource 0.019

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.16
createdFileInNewDirectoryIsDetected 6.017
allowsDirectoryWatchingViaSymbolicLinks 2.015
watchingFileIsNotPossible 0.004
filterPredicateDiscardsIgnoredElementsRegistration 4.014
supportsMultipleRootFolders 4.013
modifiedFileIsDetected 4.018
exceptionsThrownByCallbacksDontKillTheSystem 4.032
deletedFileIsDetected 4.018
createdFileIsDetected 2.006
subTreeIsSkippedWhenFileCantBeRead 2.01

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.02
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0
nameIsStupidSubstringButThisIsGoodEnoughHere 0.001
singleOriginPassesGivenStreamOnlyToThatOneResource 0.002
parentsMustBeSpecified 0.001
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0
pathsAreInInsertionOrder 0.001
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.001

FunctionsTest

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

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.012
getByPathReturnsResourceForGivenStringPath 0.004
defaultExcludeListPatternIsCorrect 0.005
excludesAreAppliedEverywhere 0.015
listChildrenDoesntIncludeGivenFolder 0.006
newResourceReturnsFSRPForAbsolutePathToFile 0.004
lastModifiedReturnsTimeOfLastModification 0.003
getRootWrapsRootPathInResource 0.003
traverseWithCallsFunctionForEveryMatchingResource 0.006
openStreamReturnStreamForGivenPath 0.004
getParentReturnsNullForRootPath 0.004
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.004
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.005
exclusionOfDirectoriesFromPropertyFileWorks 0.004
nullExclusionPropertyFallbacksToDefault 0.004
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.005
listChildrenReturnsDirectChildren 0.009
newResourceThrowsExceptionWhenPathDoesNotExist 0.004
getByPathThrowsExceptionForNonExistingPath 0.004
newResourceReturnsFSRPForRelativePathToFile 0.004

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0.001

JcrResourceOriginTest

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

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.019
whatsInRoot 0.022
listRootChildren 0.019
mgnlResourcesAreAvailableAtRoot 0.022
parentIsCorrect 0.018

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.021
communicatesFolderCreationAndDeletion 4.008
movedDirectoryIsDetected 4.009
subTreeIsSkippedWhenFileCantBeRead 2.017
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.012

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 1.43
bypassSetToFalseTreatedAsResourceAddition 1.43
communicatesFileResourceAddition 0.477
Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesFileResourceAddition 0.477
communicatesResourceFolderDeletionWithContents 0.476
Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesResourceFolderDeletionWithContents 0.476
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 0.47
Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 0.47
communicatesFileResourceDeletion 0.469
Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesFileResourceDeletion 0.47
communicatesFileResourceModification 0.467
Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesFileResourceModification 0.467
communicatesResourceFolderAdditionWithContents 0.467
Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesResourceFolderAdditionWithContents 0.467
ignoreChangesWhenResourceIsBypassed 0.465
Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
ignoreChangesWhenResourceIsBypassed 0.465
bypassSetToTrueTreatedAsResourceRemoval 0.464
Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
bypassSetToTrueTreatedAsResourceRemoval 0.465

Failure Details

[Summary] [Package List] [Test Cases]


bypassSetToFalseTreatedAsResourceAddition
java.lang.ExceptionInInitializerError:
bypassSetToFalseTreatedAsResourceAddition
java.lang.NullPointerException:
communicatesFileResourceAddition
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesFileResourceAddition
java.lang.NullPointerException:
communicatesResourceFolderDeletionWithContents
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesResourceFolderDeletionWithContents
java.lang.NullPointerException:
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot
java.lang.NullPointerException:
communicatesFileResourceDeletion
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesFileResourceDeletion
java.lang.NullPointerException:
communicatesFileResourceModification
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesFileResourceModification
java.lang.NullPointerException:
communicatesResourceFolderAdditionWithContents
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
communicatesResourceFolderAdditionWithContents
java.lang.NullPointerException:
ignoreChangesWhenResourceIsBypassed
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
ignoreChangesWhenResourceIsBypassed
java.lang.NullPointerException:
bypassSetToTrueTreatedAsResourceRemoval
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jackrabbit.core.config.BeanConfig
bypassSetToTrueTreatedAsResourceRemoval
java.lang.NullPointerException: