Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
135 0 0 0 100% 70.635

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.004
info.magnolia.resourceloader.dummy 10 0 0 0 100% 0.025
info.magnolia.resourceloader.util 11 0 0 0 100% 0.003
info.magnolia.resourceloader.file 34 0 0 0 100% 20.211
info.magnolia.dirwatch 11 0 0 0 100% 34.928
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.027
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.106
info.magnolia.resourceloader.jcr 23 0 0 0 100% 14.331

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

info.magnolia.resourceloader.dummy

Class Tests Errors Failures Skipped Success Rate Time
DummyResourceOriginTest 10 0 0 0 100% 0.025

info.magnolia.resourceloader.util

Class Tests Errors Failures Skipped Success Rate Time
ResourceTreeWalkerTest 2 0 0 0 100% 0.003
FunctionsTest 7 0 0 0 100% 0
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.131
ExclusionsFilterTest 8 0 0 0 100% 0.001
FileWatcherCallbackTest 6 0 0 0 100% 20.079

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.979
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.127

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 14 0 0 0 100% 0.051
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.28

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

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

ResourceTreeWalkerTest

simpleVisit 0.002
canVisitJustAFileCauseWhyNot 0

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.131
lastModifiedReturnsTimeOfLastModification 0.044
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.029
getRootReturnsResourceForRoot 0.035
communicatesFileModification 0.114
communicatesFileRemoval 0.071
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.027
openInputStreamForResource 0.022
excludesNativeLibsAndOtherFunkyThingsByDefault 0.091
getByPathReturnsResourceForFile 0.03
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.034
getParentReturnsNullForRootPath 0.028
getParentReturnsTheParentFolderForPathToFolder 0.029
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.025
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.067
watchForChangesTriggersNothingIfServiceNotEnabled 0.029
getParentReturnsTheParentFolderForPathToFile 0.023
mgnlResourcesAreExcludedByDefault 0.025
reflectionsURLsFiltersNativeLibsOut 0.024
communicatesFileAddition 0.043
listChildrenReturnsVirtualDirectoryStructure 0.029
traverseWithCallsFunctionForEveryResource 0.026

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.714
createdFileInNewDirectoryIsDetected 6.02
allowsDirectoryWatchingViaSymbolicLinks 2.016
watchingFileIsNotPossible 0.007
filterPredicateDiscardsIgnoredElementsRegistration 6.016
supportsMultipleRootFolders 4.016
modifiedFileIsDetected 4.014
exceptionsThrownByCallbacksDontKillTheSystem 4.01
deletedFileIsDetected 4.013
createdFileIsDetected 2.014
subTreeIsSkippedWhenFileCantBeRead 2.02

DummyResourceOriginTest

findResources 0.01
singleOriginPassesGivenReaderOnlyToThatOneResource 0.007
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0.001
nameIsStupidSubstringButThisIsGoodEnoughHere 0
singleOriginPassesGivenStreamOnlyToThatOneResource 0.002
parentsMustBeSpecified 0.001
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0.001
pathsAreInInsertionOrder 0
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.001

FunctionsTest

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

FileSystemResourceOriginTest

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

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.003
attachAndIndex 0
identifiesChildrenCorrectly 0

JcrResourceOriginTest

getByPathThrowsExceptionWhenPathDoesNotExist 0.011
lastModifiedReturnsTimeOfLastModification 0.008
getRootReturnsResourceForRoot 0.005
traverseWithCallsFunctionForEveryMatchingResource 0.011
getByPathReturnsResourceForPathToDirectory 0.001
listChildrenReturnsChildren 0.002
openInputStreamForTextResource 0.005
getParentReturnsNullForRootPath 0.002
getParentReturnsTheParentFolderForPathToFolder 0.001
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.001
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.002
getParentReturnsTheParentFolderForPathToFile 0
isFileNegatesIsDirectory 0.001
getByPathReturnsResourceForPathToFile 0

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.025
whatsInRoot 0.025
listRootChildren 0.027
mgnlResourcesAreAvailableAtRoot 0.028
parentIsCorrect 0.021

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.015
communicatesFolderCreationAndDeletion 4.01
movedDirectoryIsDetected 4.018
subTreeIsSkippedWhenFileCantBeRead 2.013
watchedPathFilterDiscardsIgnoredElementsRegistration 0.004
communicatesAllPossibleFileChangeEvents 6.019

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.259
communicatesFileResourceAddition 1.348
communicatesResourceFolderDeletionWithContents 1.282
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.259
communicatesFileResourceDeletion 1.231
communicatesFileResourceModification 1.222
communicatesResourceFolderAdditionWithContents 1.205
ignoreChangesWhenResourceIsBypassed 2.263
bypassSetToTrueTreatedAsResourceRemoval 1.205