Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
125 0 0 0 100% 54.995

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.003
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.019
info.magnolia.resourceloader.util 11 0 0 0 100% 0.001
info.magnolia.resourceloader.file 30 0 0 0 100% 14.128
info.magnolia.dirwatch 8 0 0 0 100% 26.248
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.016
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.647
info.magnolia.resourceloader.jcr 22 0 0 0 100% 13.933

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 7 0 0 0 100% 0.004
FileSystemResourceOriginTest 20 0 0 0 100% 0.078
FileWatcherCallbackTest 3 0 0 0 100% 14.046

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherTest 8 0 0 0 100% 26.248

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.582
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.065

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 13.914
JcrResourceOriginTest 13 0 0 0 100% 0.019

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 6.137
allowsDirectoryWatchingViaSymbolicLinks 2.046
watchingFileIsNotPossible 0.003
supportsMultipleRootFolders 4.007
modifiedFileIsDetected 4.011
exceptionsThrownByCallbacksDontKillTheSystem 4.009
deletedFileIsDetected 4.019
createdFileIsDetected 2.016

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.083
lastModifiedReturnsTimeOfLastModification 0.037
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.018
getRootReturnsResourceForRoot 0.031
communicatesFileModification 0.076
communicatesFileRemoval 0.046
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.012
openInputStreamForResource 0.012
excludesNativeLibsAndOtherFunkyThingsByDefault 0.043
getByPathReturnsResourceForFile 0.013
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.017
getParentReturnsNullForRootPath 0.015
getParentReturnsTheParentFolderForPathToFolder 0.014
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.013
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.043
watchForChangesTriggersNothingIfServiceNotEnabled 0.013
getParentReturnsTheParentFolderForPathToFile 0.015
mgnlResourcesAreExcludedByDefault 0.013
reflectionsURLsFiltersNativeLibsOut 0.013
communicatesFileAddition 0.028
listChildrenReturnsVirtualDirectoryStructure 0.014
traverseWithCallsFunctionForEveryResource 0.013

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.013
whatsInRoot 0.014
listRootChildren 0.011
mgnlResourcesAreAvailableAtRoot 0.014
parentIsCorrect 0.013

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.003
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.013
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.002
testApplyToRootDirectory 0
exclusionFilterNormalizesGivenRootPathAndExclusionDirectories 0.001
exclusionFilterNormalizesGivenExclusionDirectories 0
excludeWithPattern 0.001
excludedDirectoryNameIsCompleteMatch 0
excludedDirectoryAreExcludedEveryWhereNotJustInRoot 0

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.012
movedDirectoryIsDetected 4.017
communicatesAllPossibleFileChangeEvents 6.017

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.245
communicatesFileResourceAddition 1.295
communicatesResourceFolderDeletionWithContents 1.269
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.207
communicatesFileResourceDeletion 1.209
communicatesFileResourceModification 1.188
communicatesResourceFolderAdditionWithContents 1.169
ignoreChangesWhenResourceIsBypassed 2.171
bypassSetToTrueTreatedAsResourceRemoval 1.161

JcrResourceOriginTest

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

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.005
listChildrenAggregatesCorrectly 0.001
isEditableIsThatOfCorrectLayer 0.002
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0
lastModifiedIsThatOfCorrectLayer 0.001
navigationThroughParentAggregatesCorrectly 0
watchForChangesForwardsLayeredResourceToVisitor 0.004
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.001
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0
newValidatesThatPathsMatch 0
byPathFindsResourcesInTheDifferentLayers 0
newValidatesThatTypeMatch 0.001
hasPathFindsResourcesInTheDifferentLayers 0
getRootLayersAllOrigins 0

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0
canVisitJustAFileCauseWhyNot 0