Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.022
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.036
info.magnolia.resourceloader.util 11 0 0 0 100% 0.008
info.magnolia.resourceloader.file 34 0 0 0 100% 0.227
info.magnolia.dirwatch 11 0 0 0 100% 0.36
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.053
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.136
info.magnolia.resourceloader.jcr 22 0 0 0 100% 18.089

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 8 0 0 0 100% 0.002
FileWatcherCallbackTest 6 0 0 0 100% 0.124
FileSystemResourceOriginTest 20 0 0 0 100% 0.101

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.101
ClasspathResourceOriginTest 22 0 0 0 100% 1.035

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 13 0 0 0 100% 0.048
JcrResourceOriginRepositoryTest 9 0 0 0 100% 18.041

Test Cases

[Summary] [Package List] [Test Cases]

ExclusionsFilterTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0.001

ResourceTreeWalkerTest

simpleVisit 0.006
canVisitJustAFileCauseWhyNot 0

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 0.019
communicatesFolderCreationAndDeletion 0.028
movedDirectoryIsDetected 0.032
subTreeIsSkippedWhenFileCantBeRead 0.015
watchedPathFilterDiscardsIgnoredElementsRegistration 0.004
communicatesAllPossibleFileChangeEvents 0.026

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.021
whatsInRoot 0.023
listRootChildren 0.016
mgnlResourcesAreAvailableAtRoot 0.023
parentIsCorrect 0.018

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.021
attachAndIndex 0.001
identifiesChildrenCorrectly 0

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.176
createdFileInNewDirectoryIsDetected 0.024
allowsDirectoryWatchingViaSymbolicLinks 0.008
watchingFileIsNotPossible 0.004
filterPredicateDiscardsIgnoredElementsRegistration 0.029
supportsMultipleRootFolders 0.018
modifiedFileIsDetected 0.016
exceptionsThrownByCallbacksDontKillTheSystem 0.03
deletedFileIsDetected 0.028
createdFileIsDetected 0.014
subTreeIsSkippedWhenFileCantBeRead 0.013

FunctionsTest

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

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.021
getByPathReturnsResourceForGivenStringPath 0.005
defaultExcludeListPatternIsCorrect 0.004
excludesAreAppliedEverywhere 0.021
listChildrenDoesntIncludeGivenFolder 0.004
newResourceReturnsFSRPForAbsolutePathToFile 0.003
lastModifiedReturnsTimeOfLastModification 0.002
getRootWrapsRootPathInResource 0.002
traverseWithCallsFunctionForEveryMatchingResource 0.004
openStreamReturnStreamForGivenPath 0.003
getParentReturnsNullForRootPath 0.002
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.002
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.003
exclusionOfDirectoriesFromPropertyFileWorks 0.002
nullExclusionPropertyFallbacksToDefault 0.002
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.003
listChildrenReturnsDirectChildren 0.01
newResourceThrowsExceptionWhenPathDoesNotExist 0.003
getByPathThrowsExceptionForNonExistingPath 0.002
newResourceReturnsFSRPForRelativePathToFile 0.003

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.017
listChildrenAggregatesCorrectly 0.003
isEditableIsThatOfCorrectLayer 0.003
hotfixDeletionTriggersResourceModification 0.004
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0.001
lastModifiedIsThatOfCorrectLayer 0.003
navigationThroughParentAggregatesCorrectly 0.001
watchForChangesForwardsLayeredResourceToVisitor 0.007
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.004
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.002
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0.001
newValidatesThatPathsMatch 0.002
byPathFindsResourcesInTheDifferentLayers 0.001
newValidatesThatTypeMatch 0.002
hasPathFindsResourcesInTheDifferentLayers 0.001
getRootLayersAllOrigins 0.001

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.134
lastModifiedReturnsTimeOfLastModification 0.052
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.04
getRootReturnsResourceForRoot 0.06
communicatesFileModification 0.17
communicatesFileRemoval 0.087
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.021
openInputStreamForResource 0.022
excludesNativeLibsAndOtherFunkyThingsByDefault 0.092
getByPathReturnsResourceForFile 0.018
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.022
getParentReturnsNullForRootPath 0.021
getParentReturnsTheParentFolderForPathToFolder 0.021
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.022
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.064
watchForChangesTriggersNothingIfServiceNotEnabled 0.017
getParentReturnsTheParentFolderForPathToFile 0.024
mgnlResourcesAreExcludedByDefault 0.017
reflectionsURLsFiltersNativeLibsOut 0.02
communicatesFileAddition 0.047
listChildrenReturnsVirtualDirectoryStructure 0.034
traverseWithCallsFunctionForEveryResource 0.03

JcrResourceOriginTest

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

DummyResourceOriginTest

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

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 3.64
communicatesFileResourceAddition 1.841
communicatesResourceFolderDeletionWithContents 1.795
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.615
communicatesFileResourceDeletion 1.478
communicatesFileResourceModification 1.407
communicatesResourceFolderAdditionWithContents 1.428
ignoreChangesWhenResourceIsBypassed 2.465
bypassSetToTrueTreatedAsResourceRemoval 1.372