Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.008
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.032
info.magnolia.resourceloader.util 11 0 0 0 100% 0.006
info.magnolia.resourceloader.file 34 0 0 0 100% 20.208
info.magnolia.dirwatch 11 0 0 0 100% 34.269
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.045
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.425
info.magnolia.resourceloader.jcr 22 0 0 0 100% 15.464

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

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.004
FunctionsTest 7 0 0 0 100% 0.001
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.146
ExclusionsFilterTest 8 0 0 0 100% 0.001
FileWatcherCallbackTest 6 0 0 0 100% 20.061

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 1.277
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.148

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 13 0 0 0 100% 0.021
JcrResourceOriginRepositoryTest 9 0 0 0 100% 15.443

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

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

ResourceTreeWalkerTest

simpleVisit 0.003
canVisitJustAFileCauseWhyNot 0.001

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.168
lastModifiedReturnsTimeOfLastModification 0.065
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.04
getRootReturnsResourceForRoot 0.05
communicatesFileModification 0.227
communicatesFileRemoval 0.107
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.029
openInputStreamForResource 0.028
excludesNativeLibsAndOtherFunkyThingsByDefault 0.086
getByPathReturnsResourceForFile 0.035
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.043
getParentReturnsNullForRootPath 0.038
getParentReturnsTheParentFolderForPathToFolder 0.034
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.032
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.078
watchForChangesTriggersNothingIfServiceNotEnabled 0.026
getParentReturnsTheParentFolderForPathToFile 0.024
mgnlResourcesAreExcludedByDefault 0.024
reflectionsURLsFiltersNativeLibsOut 0.024
communicatesFileAddition 0.057
listChildrenReturnsVirtualDirectoryStructure 0.03
traverseWithCallsFunctionForEveryResource 0.032

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.15
createdFileInNewDirectoryIsDetected 6.009
allowsDirectoryWatchingViaSymbolicLinks 2.009
watchingFileIsNotPossible 0.003
filterPredicateDiscardsIgnoredElementsRegistration 6.017
supportsMultipleRootFolders 4.01
modifiedFileIsDetected 4.006
exceptionsThrownByCallbacksDontKillTheSystem 4.026
deletedFileIsDetected 4.01
createdFileIsDetected 2.012
subTreeIsSkippedWhenFileCantBeRead 2.017

DummyResourceOriginTest

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

FunctionsTest

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

FileSystemResourceOriginTest

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

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.007
attachAndIndex 0.001
identifiesChildrenCorrectly 0

JcrResourceOriginTest

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

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.029
whatsInRoot 0.035
listRootChildren 0.027
mgnlResourcesAreAvailableAtRoot 0.034
parentIsCorrect 0.023

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.015
communicatesFolderCreationAndDeletion 4.013
movedDirectoryIsDetected 4.009
subTreeIsSkippedWhenFileCantBeRead 2.014
watchedPathFilterDiscardsIgnoredElementsRegistration 0.002
communicatesAllPossibleFileChangeEvents 6.008

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0.001

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.577
communicatesFileResourceAddition 1.423
communicatesResourceFolderDeletionWithContents 1.438
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.499
communicatesFileResourceDeletion 1.416
communicatesFileResourceModification 1.365
communicatesResourceFolderAdditionWithContents 1.25
ignoreChangesWhenResourceIsBypassed 2.238
bypassSetToTrueTreatedAsResourceRemoval 1.237