Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
132 0 0 0 100% 67.639

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.032
info.magnolia.resourceloader.util 11 0 0 0 100% 0.002
info.magnolia.resourceloader.file 33 0 0 0 100% 16.245
info.magnolia.dirwatch 11 0 0 0 100% 34.352
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.038
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.143
info.magnolia.resourceloader.jcr 22 0 0 0 100% 15.821

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
FileSystemResourceOriginTest 20 0 0 0 100% 0.148
ExclusionsFilterTest 8 0 0 0 100% 0.001
FileWatcherCallbackTest 5 0 0 0 100% 16.096

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.997
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.146

info.magnolia.resourceloader.jcr

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

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

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

ResourceTreeWalkerTest

simpleVisit 0.002
canVisitJustAFileCauseWhyNot 0

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.132
lastModifiedReturnsTimeOfLastModification 0.052
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.038
getRootReturnsResourceForRoot 0.046
communicatesFileModification 0.13
communicatesFileRemoval 0.083
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.023
openInputStreamForResource 0.026
excludesNativeLibsAndOtherFunkyThingsByDefault 0.058
getByPathReturnsResourceForFile 0.025
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.034
getParentReturnsNullForRootPath 0.027
getParentReturnsTheParentFolderForPathToFolder 0.025
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.024
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.077
watchForChangesTriggersNothingIfServiceNotEnabled 0.023
getParentReturnsTheParentFolderForPathToFile 0.023
mgnlResourcesAreExcludedByDefault 0.023
reflectionsURLsFiltersNativeLibsOut 0.025
communicatesFileAddition 0.05
listChildrenReturnsVirtualDirectoryStructure 0.029
traverseWithCallsFunctionForEveryResource 0.024

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.188
createdFileInNewDirectoryIsDetected 6.015
allowsDirectoryWatchingViaSymbolicLinks 2.02
watchingFileIsNotPossible 0.004
filterPredicateDiscardsIgnoredElementsRegistration 6.016
supportsMultipleRootFolders 4.018
modifiedFileIsDetected 4.015
exceptionsThrownByCallbacksDontKillTheSystem 4.014
deletedFileIsDetected 4.026
createdFileIsDetected 2.023
subTreeIsSkippedWhenFileCantBeRead 2.013

DummyResourceOriginTest

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

FunctionsTest

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

FileSystemResourceOriginTest

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

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.005
attachAndIndex 0.001
identifiesChildrenCorrectly 0

JcrResourceOriginTest

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

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.024
whatsInRoot 0.035
listRootChildren 0.026
mgnlResourcesAreAvailableAtRoot 0.039
parentIsCorrect 0.022

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.023
movedDirectoryIsDetected 4.026
subTreeIsSkippedWhenFileCantBeRead 2.024
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.02

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.901
communicatesFileResourceAddition 1.499
communicatesResourceFolderDeletionWithContents 1.434
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.414
communicatesFileResourceDeletion 1.357
communicatesFileResourceModification 1.342
communicatesResourceFolderAdditionWithContents 1.304
ignoreChangesWhenResourceIsBypassed 2.277
bypassSetToTrueTreatedAsResourceRemoval 1.274