Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.012
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.034
info.magnolia.resourceloader.util 11 0 0 0 100% 0.035
info.magnolia.resourceloader.file 34 0 0 0 100% 20.292
info.magnolia.dirwatch 11 0 0 0 100% 32.422
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.1
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.757
info.magnolia.resourceloader.jcr 22 0 0 0 100% 17.764

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

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

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 1.533
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.224

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 13 0 0 0 100% 0.042
JcrResourceOriginRepositoryTest 9 0 0 0 100% 17.722

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

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

ResourceTreeWalkerTest

simpleVisit 0.023
canVisitJustAFileCauseWhyNot 0

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.181
lastModifiedReturnsTimeOfLastModification 0.067
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.049
getRootReturnsResourceForRoot 0.055
communicatesFileModification 0.239
communicatesFileRemoval 0.149
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.037
openInputStreamForResource 0.039
excludesNativeLibsAndOtherFunkyThingsByDefault 0.085
getByPathReturnsResourceForFile 0.044
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.041
getParentReturnsNullForRootPath 0.043
getParentReturnsTheParentFolderForPathToFolder 0.033
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.041
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.101
watchForChangesTriggersNothingIfServiceNotEnabled 0.04
getParentReturnsTheParentFolderForPathToFile 0.029
mgnlResourcesAreExcludedByDefault 0.037
reflectionsURLsFiltersNativeLibsOut 0.032
communicatesFileAddition 0.061
listChildrenReturnsVirtualDirectoryStructure 0.072
traverseWithCallsFunctionForEveryResource 0.058

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.267
createdFileInNewDirectoryIsDetected 4.017
allowsDirectoryWatchingViaSymbolicLinks 2.016
watchingFileIsNotPossible 0.004
filterPredicateDiscardsIgnoredElementsRegistration 6.016
supportsMultipleRootFolders 4.008
modifiedFileIsDetected 4.013
exceptionsThrownByCallbacksDontKillTheSystem 4.03
deletedFileIsDetected 4.017
createdFileIsDetected 2.021
subTreeIsSkippedWhenFileCantBeRead 2.013

DummyResourceOriginTest

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

FunctionsTest

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

FileSystemResourceOriginTest

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

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.012
attachAndIndex 0
identifiesChildrenCorrectly 0

JcrResourceOriginTest

getByPathThrowsExceptionWhenPathDoesNotExist 0.01
lastModifiedReturnsTimeOfLastModification 0.008
getRootReturnsResourceForRoot 0.004
traverseWithCallsFunctionForEveryMatchingResource 0.008
getByPathReturnsResourceForPathToDirectory 0.001
listChildrenReturnsChildren 0.001
openInputStreamForTextResource 0.003
getParentReturnsNullForRootPath 0.001
getParentReturnsTheParentFolderForPathToFolder 0
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.006
listChildrenThrowsExceptionWhenGivenPathIsAFile 0
getParentReturnsTheParentFolderForPathToFile 0
getByPathReturnsResourceForPathToFile 0

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.042
whatsInRoot 0.068
listRootChildren 0.045
mgnlResourcesAreAvailableAtRoot 0.038
parentIsCorrect 0.031

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.017
communicatesFolderCreationAndDeletion 4.009
movedDirectoryIsDetected 4.013
subTreeIsSkippedWhenFileCantBeRead 2.017
watchedPathFilterDiscardsIgnoredElementsRegistration 0.007
communicatesAllPossibleFileChangeEvents 6.021

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0.005
traversalPredicateIgnoresRoot 0

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 3.621
communicatesFileResourceAddition 1.765
communicatesResourceFolderDeletionWithContents 1.615
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.608
communicatesFileResourceDeletion 1.461
communicatesFileResourceModification 1.451
communicatesResourceFolderAdditionWithContents 1.425
ignoreChangesWhenResourceIsBypassed 2.389
bypassSetToTrueTreatedAsResourceRemoval 1.387