Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.006
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.03
info.magnolia.resourceloader.util 11 0 0 0 100% 0.003
info.magnolia.resourceloader.file 34 0 0 0 100% 20.249
info.magnolia.dirwatch 11 0 0 0 100% 32.286
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.022
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.951
info.magnolia.resourceloader.jcr 22 0 0 0 100% 14.492

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

info.magnolia.resourceloader.dummy

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

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 8 0 0 0 100% 0.011
FileSystemResourceOriginTest 20 0 0 0 100% 0.154
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.286

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.829
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.122

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.475
JcrResourceOriginTest 13 0 0 0 100% 0.017

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.157
createdFileInNewDirectoryIsDetected 4.018
allowsDirectoryWatchingViaSymbolicLinks 2.011
watchingFileIsNotPossible 0.004
filterPredicateDiscardsIgnoredElementsRegistration 6.014
supportsMultipleRootFolders 4.016
modifiedFileIsDetected 4.015
exceptionsThrownByCallbacksDontKillTheSystem 4.015
deletedFileIsDetected 4.007
createdFileIsDetected 2.013
subTreeIsSkippedWhenFileCantBeRead 2.016

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.102
lastModifiedReturnsTimeOfLastModification 0.033
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.024
getRootReturnsResourceForRoot 0.032
communicatesFileModification 0.117
communicatesFileRemoval 0.065
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.021
openInputStreamForResource 0.022
excludesNativeLibsAndOtherFunkyThingsByDefault 0.058
getByPathReturnsResourceForFile 0.021
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.03
getParentReturnsNullForRootPath 0.024
getParentReturnsTheParentFolderForPathToFolder 0.019
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.02
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.066
watchForChangesTriggersNothingIfServiceNotEnabled 0.02
getParentReturnsTheParentFolderForPathToFile 0.022
mgnlResourcesAreExcludedByDefault 0.024
reflectionsURLsFiltersNativeLibsOut 0.023
communicatesFileAddition 0.046
listChildrenReturnsVirtualDirectoryStructure 0.02
traverseWithCallsFunctionForEveryResource 0.02

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.018
whatsInRoot 0.034
listRootChildren 0.02
mgnlResourcesAreAvailableAtRoot 0.021
parentIsCorrect 0.029

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.005
attachAndIndex 0.001
identifiesChildrenCorrectly 0

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.019
communicatesFolderCreationAndDeletion 4.012
movedDirectoryIsDetected 4.014
subTreeIsSkippedWhenFileCantBeRead 2.019
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.017

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.43
communicatesFileResourceAddition 1.353
communicatesResourceFolderDeletionWithContents 1.293
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.287
communicatesFileResourceDeletion 1.267
communicatesFileResourceModification 1.237
communicatesResourceFolderAdditionWithContents 1.216
ignoreChangesWhenResourceIsBypassed 2.196
bypassSetToTrueTreatedAsResourceRemoval 1.196

JcrResourceOriginTest

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

LayeredResourceOriginTest

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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0.001