Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
133 0 1 0 99.248% 54.662

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.034
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.048
info.magnolia.resourceloader.util 11 0 0 0 100% 0.028
info.magnolia.resourceloader.file 34 0 1 0 97.059% 30.302
info.magnolia.dirwatch 11 0 0 0 100% 0.415
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.098
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.939
info.magnolia.resourceloader.jcr 22 0 0 0 100% 21.798

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 8 0 0 0 100% 0.005
FileWatcherCallbackTest 6 0 1 0 83.333% 30.177
FileSystemResourceOriginTest 20 0 0 0 100% 0.12

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.266
ClasspathResourceOriginTest 22 0 0 0 100% 1.673

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 13 0 0 0 100% 0.067
JcrResourceOriginRepositoryTest 9 0 0 0 100% 21.731

Test Cases

[Summary] [Package List] [Test Cases]

ExclusionsFilterTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0.008
traversalPredicateIgnoresRoot 0.002

ResourceTreeWalkerTest

simpleVisit 0.012
canVisitJustAFileCauseWhyNot 0.001

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 30.028
Wanted but not invoked: resourceChangeHandler.onResourceChanged( ANYTHING with with type which is <ADDED> with with relatedResourcePath which is "/symLink/bar.yaml" ); -> at info.magnolia.resourceloader.file.FileWatcherCallbackTest.allowsDirectoryWatchingViaSymbolicLinks(FileWatcherCallbackTest.java:271) Actually, there were zero interactions with this mock.
communicatesFolderCreationAndDeletion 0.037
movedDirectoryIsDetected 0.038
subTreeIsSkippedWhenFileCantBeRead 0.021
watchedPathFilterDiscardsIgnoredElementsRegistration 0.009
communicatesAllPossibleFileChangeEvents 0.044

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.033
whatsInRoot 0.059
listRootChildren 0.047
mgnlResourcesAreAvailableAtRoot 0.045
parentIsCorrect 0.082

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.03
attachAndIndex 0.003
identifiesChildrenCorrectly 0.001

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.222
createdFileInNewDirectoryIsDetected 0.021
allowsDirectoryWatchingViaSymbolicLinks 0.008
watchingFileIsNotPossible 0.004
filterPredicateDiscardsIgnoredElementsRegistration 0.035
supportsMultipleRootFolders 0.033
modifiedFileIsDetected 0.008
exceptionsThrownByCallbacksDontKillTheSystem 0.031
deletedFileIsDetected 0.027
createdFileIsDetected 0.012
subTreeIsSkippedWhenFileCantBeRead 0.014

FunctionsTest

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

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.027
getByPathReturnsResourceForGivenStringPath 0.005
defaultExcludeListPatternIsCorrect 0.008
excludesAreAppliedEverywhere 0.02
listChildrenDoesntIncludeGivenFolder 0.004
newResourceReturnsFSRPForAbsolutePathToFile 0.003
lastModifiedReturnsTimeOfLastModification 0.003
getRootWrapsRootPathInResource 0
traverseWithCallsFunctionForEveryMatchingResource 0.007
openStreamReturnStreamForGivenPath 0.002
getParentReturnsNullForRootPath 0.003
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.002
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.003
exclusionOfDirectoriesFromPropertyFileWorks 0.003
nullExclusionPropertyFallbacksToDefault 0.006
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.006
listChildrenReturnsDirectChildren 0.012
newResourceThrowsExceptionWhenPathDoesNotExist 0.002
getByPathThrowsExceptionForNonExistingPath 0.002
newResourceReturnsFSRPForRelativePathToFile 0.002

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.033
listChildrenAggregatesCorrectly 0.005
isEditableIsThatOfCorrectLayer 0.004
hotfixDeletionTriggersResourceModification 0.005
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0.009
lastModifiedIsThatOfCorrectLayer 0.008
navigationThroughParentAggregatesCorrectly 0.002
watchForChangesForwardsLayeredResourceToVisitor 0.01
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.006
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.003
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0.001
newValidatesThatPathsMatch 0.005
byPathFindsResourcesInTheDifferentLayers 0.002
newValidatesThatTypeMatch 0.002
hasPathFindsResourcesInTheDifferentLayers 0.001
getRootLayersAllOrigins 0.002

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.183
lastModifiedReturnsTimeOfLastModification 0.078
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.097
getRootReturnsResourceForRoot 0.114
communicatesFileModification 0.266
communicatesFileRemoval 0.106
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.018
openInputStreamForResource 0.026
excludesNativeLibsAndOtherFunkyThingsByDefault 0.112
getByPathReturnsResourceForFile 0.032
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.043
getParentReturnsNullForRootPath 0.034
getParentReturnsTheParentFolderForPathToFolder 0.033
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.019
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.133
watchForChangesTriggersNothingIfServiceNotEnabled 0.038
getParentReturnsTheParentFolderForPathToFile 0.04
mgnlResourcesAreExcludedByDefault 0.077
reflectionsURLsFiltersNativeLibsOut 0.031
communicatesFileAddition 0.102
listChildrenReturnsVirtualDirectoryStructure 0.034
traverseWithCallsFunctionForEveryResource 0.057

JcrResourceOriginTest

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

DummyResourceOriginTest

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

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 4.72
communicatesFileResourceAddition 2.546
communicatesResourceFolderDeletionWithContents 2.085
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.924
communicatesFileResourceDeletion 1.927
communicatesFileResourceModification 1.8
communicatesResourceFolderAdditionWithContents 1.656
ignoreChangesWhenResourceIsBypassed 2.588
bypassSetToTrueTreatedAsResourceRemoval 1.485

Failure Details

[Summary] [Package List] [Test Cases]


allowsDirectoryWatchingViaSymbolicLinks
org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked: resourceChangeHandler.onResourceChanged( ANYTHING with with type which is <ADDED> with with relatedResourcePath which is "/symLink/bar.yaml" ); -> at info.magnolia.resourceloader.file.FileWatcherCallbackTest.allowsDirectoryWatchingViaSymbolicLinks(FileWatcherCallbackTest.java:271) Actually, there were zero interactions with this mock.