Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
130 0 0 0 100% 61.295

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 9 0 0 0 100% 0.022
info.magnolia.resourceloader.util 11 0 0 0 100% 0.001
info.magnolia.resourceloader.file 32 0 0 0 100% 16.128
info.magnolia.dirwatch 11 0 0 0 100% 30.26
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.018
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.772
info.magnolia.resourceloader.jcr 22 0 0 0 100% 14.09

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 9 0 0 0 100% 0.022

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 7 0 0 0 100% 0.006
FileSystemResourceOriginTest 20 0 0 0 100% 0.07
FileWatcherCallbackTest 5 0 0 0 100% 16.052

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

Class Tests Errors Failures Skipped Success Rate Time
LayeredResourceOriginTest 15 0 0 0 100% 0.018

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.704
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.068

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.075
JcrResourceOriginTest 13 0 0 0 100% 0.015

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.144
createdFileInNewDirectoryIsDetected 4.014
allowsDirectoryWatchingViaSymbolicLinks 2.015
watchingFileIsNotPossible 0.004
filterPredicateDiscardsIgnoredElementsRegistration 4.013
supportsMultipleRootFolders 4.015
modifiedFileIsDetected 4.007
exceptionsThrownByCallbacksDontKillTheSystem 4.018
deletedFileIsDetected 4.008
createdFileIsDetected 2.015
subTreeIsSkippedWhenFileCantBeRead 2.007

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.094
lastModifiedReturnsTimeOfLastModification 0.047
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.045
getRootReturnsResourceForRoot 0.067
communicatesFileModification 0.089
communicatesFileRemoval 0.048
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.019
openInputStreamForResource 0.013
excludesNativeLibsAndOtherFunkyThingsByDefault 0.041
getByPathReturnsResourceForFile 0.013
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.017
getParentReturnsNullForRootPath 0.014
getParentReturnsTheParentFolderForPathToFolder 0.015
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.015
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.048
watchForChangesTriggersNothingIfServiceNotEnabled 0.014
getParentReturnsTheParentFolderForPathToFile 0.012
mgnlResourcesAreExcludedByDefault 0.015
reflectionsURLsFiltersNativeLibsOut 0.015
communicatesFileAddition 0.033
listChildrenReturnsVirtualDirectoryStructure 0.015
traverseWithCallsFunctionForEveryResource 0.015

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.013
whatsInRoot 0.018
listRootChildren 0.011
mgnlResourcesAreAvailableAtRoot 0.013
parentIsCorrect 0.013

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.016
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0
nameIsStupidSubstringButThisIsGoodEnoughHere 0.001
singleOriginPassesGivenStreamOnlyToThatOneResource 0.001
parentsMustBeSpecified 0.001
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0
pathsAreInInsertionOrder 0.001
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.001

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.011
movedDirectoryIsDetected 4.009
subTreeIsSkippedWhenFileCantBeRead 2.016
watchedPathFilterDiscardsIgnoredElementsRegistration 0.002
communicatesAllPossibleFileChangeEvents 6.014

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.363
communicatesFileResourceAddition 1.31
communicatesResourceFolderDeletionWithContents 1.278
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.219
communicatesFileResourceDeletion 1.206
communicatesFileResourceModification 1.199
communicatesResourceFolderAdditionWithContents 1.178
ignoreChangesWhenResourceIsBypassed 2.163
bypassSetToTrueTreatedAsResourceRemoval 1.159

JcrResourceOriginTest

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

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.006
listChildrenAggregatesCorrectly 0.001
isEditableIsThatOfCorrectLayer 0
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0.001
lastModifiedIsThatOfCorrectLayer 0.001
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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0