Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.047
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.033
info.magnolia.resourceloader.util 11 0 0 0 100% 0.007
info.magnolia.resourceloader.file 34 0 1 0 97.059% 30.248
info.magnolia.dirwatch 11 0 0 0 100% 0.69
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.056
info.magnolia.resourceloader.classpath 27 0 0 0 100% 2.786
info.magnolia.resourceloader.jcr 22 0 0 0 100% 19.82

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

Class Tests Errors Failures Skipped Success Rate Time
PredicatedResourceVisitorTest 2 0 0 0 100% 0.001
ResourceTreeWalkerTest 2 0 0 0 100% 0.004
FunctionsTest 7 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.005
FileWatcherCallbackTest 6 0 1 0 83.333% 30.13
FileSystemResourceOriginTest 20 0 0 0 100% 0.113

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.175
ClasspathResourceOriginTest 22 0 0 0 100% 2.611

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 13 0 0 0 100% 0.047
JcrResourceOriginRepositoryTest 9 0 0 0 100% 19.773

Test Cases

[Summary] [Package List] [Test Cases]

ExclusionsFilterTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0.001
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.004
canVisitJustAFileCauseWhyNot 0

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.026
movedDirectoryIsDetected 0.032
subTreeIsSkippedWhenFileCantBeRead 0.015
watchedPathFilterDiscardsIgnoredElementsRegistration 0.004
communicatesAllPossibleFileChangeEvents 0.025

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.048
whatsInRoot 0.034
listRootChildren 0.023
mgnlResourcesAreAvailableAtRoot 0.029
parentIsCorrect 0.041

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.043
attachAndIndex 0.003
identifiesChildrenCorrectly 0.001

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.378
createdFileInNewDirectoryIsDetected 0.048
allowsDirectoryWatchingViaSymbolicLinks 0.03
watchingFileIsNotPossible 0.019
filterPredicateDiscardsIgnoredElementsRegistration 0.049
supportsMultipleRootFolders 0.028
modifiedFileIsDetected 0.034
exceptionsThrownByCallbacksDontKillTheSystem 0.043
deletedFileIsDetected 0.028
createdFileIsDetected 0.015
subTreeIsSkippedWhenFileCantBeRead 0.018

FunctionsTest

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

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.016
getByPathReturnsResourceForGivenStringPath 0.005
defaultExcludeListPatternIsCorrect 0.005
excludesAreAppliedEverywhere 0.023
listChildrenDoesntIncludeGivenFolder 0.005
newResourceReturnsFSRPForAbsolutePathToFile 0.003
lastModifiedReturnsTimeOfLastModification 0.003
getRootWrapsRootPathInResource 0.003
traverseWithCallsFunctionForEveryMatchingResource 0.007
openStreamReturnStreamForGivenPath 0.004
getParentReturnsNullForRootPath 0.002
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.002
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.004
exclusionOfDirectoriesFromPropertyFileWorks 0.002
nullExclusionPropertyFallbacksToDefault 0.003
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.005
listChildrenReturnsDirectChildren 0.01
newResourceThrowsExceptionWhenPathDoesNotExist 0.003
getByPathThrowsExceptionForNonExistingPath 0.004
newResourceReturnsFSRPForRelativePathToFile 0.004

LayeredResourceOriginTest

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

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.334
lastModifiedReturnsTimeOfLastModification 0.187
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.093
getRootReturnsResourceForRoot 0.113
communicatesFileModification 0.459
communicatesFileRemoval 0.191
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.034
openInputStreamForResource 0.037
excludesNativeLibsAndOtherFunkyThingsByDefault 0.301
getByPathReturnsResourceForFile 0.057
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.08
getParentReturnsNullForRootPath 0.07
getParentReturnsTheParentFolderForPathToFolder 0.067
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.034
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.14
watchForChangesTriggersNothingIfServiceNotEnabled 0.036
getParentReturnsTheParentFolderForPathToFile 0.065
mgnlResourcesAreExcludedByDefault 0.036
reflectionsURLsFiltersNativeLibsOut 0.031
communicatesFileAddition 0.112
listChildrenReturnsVirtualDirectoryStructure 0.059
traverseWithCallsFunctionForEveryResource 0.075

JcrResourceOriginTest

getByPathThrowsExceptionWhenPathDoesNotExist 0.009
lastModifiedReturnsTimeOfLastModification 0.011
getRootReturnsResourceForRoot 0.004
traverseWithCallsFunctionForEveryMatchingResource 0.008
getByPathReturnsResourceForPathToDirectory 0.001
listChildrenReturnsChildren 0.001
openInputStreamForTextResource 0.004
getParentReturnsNullForRootPath 0.001
getParentReturnsTheParentFolderForPathToFolder 0.004
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.001
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.001
getParentReturnsTheParentFolderForPathToFile 0.001
getByPathReturnsResourceForPathToFile 0.001

DummyResourceOriginTest

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

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 5.327
communicatesFileResourceAddition 1.808
communicatesResourceFolderDeletionWithContents 1.771
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.61
communicatesFileResourceDeletion 1.531
communicatesFileResourceModification 1.479
communicatesResourceFolderAdditionWithContents 1.418
ignoreChangesWhenResourceIsBypassed 2.411
bypassSetToTrueTreatedAsResourceRemoval 1.418

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.