Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
135 0 0 0 100% 70.084

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.005
info.magnolia.resourceloader.dummy 10 0 0 0 100% 0.03
info.magnolia.resourceloader.util 11 0 0 0 100% 0.006
info.magnolia.resourceloader.file 34 0 0 0 100% 20.242
info.magnolia.dirwatch 11 0 0 0 100% 32.605
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.035
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.122
info.magnolia.resourceloader.jcr 23 0 0 0 100% 16.039

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
FileSystemResourceOriginTest 20 0 0 0 100% 0.118
ExclusionsFilterTest 8 0 0 0 100% 0.003
FileWatcherCallbackTest 6 0 0 0 100% 20.121

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.991
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.131

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 14 0 0 0 100% 0.032
JcrResourceOriginRepositoryTest 9 0 0 0 100% 16.007

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

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

ResourceTreeWalkerTest

simpleVisit 0.002
canVisitJustAFileCauseWhyNot 0.001

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.13
lastModifiedReturnsTimeOfLastModification 0.044
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.026
getRootReturnsResourceForRoot 0.033
communicatesFileModification 0.102
communicatesFileRemoval 0.061
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.024
openInputStreamForResource 0.024
excludesNativeLibsAndOtherFunkyThingsByDefault 0.093
getByPathReturnsResourceForFile 0.025
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.031
getParentReturnsNullForRootPath 0.024
getParentReturnsTheParentFolderForPathToFolder 0.025
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.028
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.103
watchForChangesTriggersNothingIfServiceNotEnabled 0.025
getParentReturnsTheParentFolderForPathToFile 0.024
mgnlResourcesAreExcludedByDefault 0.024
reflectionsURLsFiltersNativeLibsOut 0.048
communicatesFileAddition 0.04
listChildrenReturnsVirtualDirectoryStructure 0.03
traverseWithCallsFunctionForEveryResource 0.025

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.393
createdFileInNewDirectoryIsDetected 4.013
allowsDirectoryWatchingViaSymbolicLinks 2.027
watchingFileIsNotPossible 0.007
filterPredicateDiscardsIgnoredElementsRegistration 6.026
supportsMultipleRootFolders 4.02
modifiedFileIsDetected 4.025
exceptionsThrownByCallbacksDontKillTheSystem 4.019
deletedFileIsDetected 4.022
createdFileIsDetected 2.022
subTreeIsSkippedWhenFileCantBeRead 2.021

DummyResourceOriginTest

findResources 0.01
singleOriginPassesGivenReaderOnlyToThatOneResource 0.011
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0.001
nameIsStupidSubstringButThisIsGoodEnoughHere 0
singleOriginPassesGivenStreamOnlyToThatOneResource 0.002
parentsMustBeSpecified 0
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0.001
pathsAreInInsertionOrder 0.001
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.002

FunctionsTest

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

FileSystemResourceOriginTest

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

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0

JcrResourceOriginTest

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

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.027
whatsInRoot 0.031
listRootChildren 0.022
mgnlResourcesAreAvailableAtRoot 0.026
parentIsCorrect 0.024

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.031
communicatesFolderCreationAndDeletion 4.013
movedDirectoryIsDetected 4.026
subTreeIsSkippedWhenFileCantBeRead 2.024
watchedPathFilterDiscardsIgnoredElementsRegistration 0.002
communicatesAllPossibleFileChangeEvents 6.024

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0.001

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.929
communicatesFileResourceAddition 1.436
communicatesResourceFolderDeletionWithContents 1.449
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.554
communicatesFileResourceDeletion 1.355
communicatesFileResourceModification 1.366
communicatesResourceFolderAdditionWithContents 1.402
ignoreChangesWhenResourceIsBypassed 2.295
bypassSetToTrueTreatedAsResourceRemoval 1.216