Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
133 0 0 0 100% 81.162

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.014
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.082
info.magnolia.resourceloader.util 11 0 0 0 100% 0.015
info.magnolia.resourceloader.file 34 0 0 0 100% 20.467
info.magnolia.dirwatch 11 0 0 0 100% 32.564
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.153
info.magnolia.resourceloader.classpath 27 0 0 0 100% 4.277
info.magnolia.resourceloader.jcr 22 0 0 0 100% 23.59

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.014

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
FileSystemResourceOriginTest 20 0 0 0 100% 0.36
ExclusionsFilterTest 8 0 0 0 100% 0.007
FileWatcherCallbackTest 6 0 0 0 100% 20.1

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 3.796
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.481

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 13 0 0 0 100% 0.045
JcrResourceOriginRepositoryTest 9 0 0 0 100% 23.545

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.051
listChildrenAggregatesCorrectly 0.004
isEditableIsThatOfCorrectLayer 0.003
hotfixDeletionTriggersResourceModification 0.006
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0.003
lastModifiedIsThatOfCorrectLayer 0.004
navigationThroughParentAggregatesCorrectly 0.002
watchForChangesForwardsLayeredResourceToVisitor 0.008
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.008
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.037
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0.004
newValidatesThatPathsMatch 0.018
byPathFindsResourcesInTheDifferentLayers 0.001
newValidatesThatTypeMatch 0.003
hasPathFindsResourcesInTheDifferentLayers 0
getRootLayersAllOrigins 0.001

ResourceTreeWalkerTest

simpleVisit 0.01
canVisitJustAFileCauseWhyNot 0

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.346
lastModifiedReturnsTimeOfLastModification 0.171
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.133
getRootReturnsResourceForRoot 0.19
communicatesFileModification 0.505
communicatesFileRemoval 0.416
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.095
openInputStreamForResource 0.127
excludesNativeLibsAndOtherFunkyThingsByDefault 0.319
getByPathReturnsResourceForFile 0.149
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.079
getParentReturnsNullForRootPath 0.104
getParentReturnsTheParentFolderForPathToFolder 0.086
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.083
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.244
watchForChangesTriggersNothingIfServiceNotEnabled 0.054
getParentReturnsTheParentFolderForPathToFile 0.068
mgnlResourcesAreExcludedByDefault 0.068
reflectionsURLsFiltersNativeLibsOut 0.127
communicatesFileAddition 0.185
listChildrenReturnsVirtualDirectoryStructure 0.171
traverseWithCallsFunctionForEveryResource 0.076

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.427
createdFileInNewDirectoryIsDetected 6.013
allowsDirectoryWatchingViaSymbolicLinks 2.012
watchingFileIsNotPossible 0.006
filterPredicateDiscardsIgnoredElementsRegistration 4.02
supportsMultipleRootFolders 4.01
modifiedFileIsDetected 4.015
exceptionsThrownByCallbacksDontKillTheSystem 4.026
deletedFileIsDetected 4.013
createdFileIsDetected 2.011
subTreeIsSkippedWhenFileCantBeRead 2.011

DummyResourceOriginTest

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

FunctionsTest

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

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.019
getByPathReturnsResourceForGivenStringPath 0.039
defaultExcludeListPatternIsCorrect 0.009
excludesAreAppliedEverywhere 0.067
listChildrenDoesntIncludeGivenFolder 0.017
newResourceReturnsFSRPForAbsolutePathToFile 0.01
lastModifiedReturnsTimeOfLastModification 0.027
getRootWrapsRootPathInResource 0.011
traverseWithCallsFunctionForEveryMatchingResource 0.014
openStreamReturnStreamForGivenPath 0.029
getParentReturnsNullForRootPath 0.013
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.01
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.01
exclusionOfDirectoriesFromPropertyFileWorks 0.007
nullExclusionPropertyFallbacksToDefault 0.012
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.013
listChildrenReturnsDirectChildren 0.011
newResourceThrowsExceptionWhenPathDoesNotExist 0.024
getByPathThrowsExceptionForNonExistingPath 0.009
newResourceReturnsFSRPForRelativePathToFile 0.009

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.013
attachAndIndex 0
identifiesChildrenCorrectly 0.001

JcrResourceOriginTest

getByPathThrowsExceptionWhenPathDoesNotExist 0.008
lastModifiedReturnsTimeOfLastModification 0.009
getRootReturnsResourceForRoot 0.005
traverseWithCallsFunctionForEveryMatchingResource 0.018
getByPathReturnsResourceForPathToDirectory 0
listChildrenReturnsChildren 0
openInputStreamForTextResource 0.001
getParentReturnsNullForRootPath 0.001
getParentReturnsTheParentFolderForPathToFolder 0.001
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.001
getParentReturnsTheParentFolderForPathToFile 0.001
getByPathReturnsResourceForPathToFile 0

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.05
whatsInRoot 0.074
listRootChildren 0.117
mgnlResourcesAreAvailableAtRoot 0.125
parentIsCorrect 0.115

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.04
communicatesFolderCreationAndDeletion 4.009
movedDirectoryIsDetected 4.017
subTreeIsSkippedWhenFileCantBeRead 2.017
watchedPathFilterDiscardsIgnoredElementsRegistration 0.004
communicatesAllPossibleFileChangeEvents 6.013

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0.001
traversalPredicateIgnoresRoot 0

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 6.412
communicatesFileResourceAddition 2.227
communicatesResourceFolderDeletionWithContents 2.034
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 3.039
communicatesFileResourceDeletion 2.058
communicatesFileResourceModification 1.793
communicatesResourceFolderAdditionWithContents 1.46
ignoreChangesWhenResourceIsBypassed 2.649
bypassSetToTrueTreatedAsResourceRemoval 1.873