Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
135 0 1 0 99.259% 99.583

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
info.magnolia.resourceloader.dummy 10 0 0 0 100% 0.046
info.magnolia.resourceloader.util 11 0 0 0 100% 0.023
info.magnolia.resourceloader.file 34 0 1 0 97.059% 48.132
info.magnolia.dirwatch 11 0 0 0 100% 33.178
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.059
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.611
info.magnolia.resourceloader.jcr 23 0 0 0 100% 16.534

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

Class Tests Errors Failures Skipped Success Rate Time
ResourceTreeWalkerTest 2 0 0 0 100% 0.016
FunctionsTest 7 0 0 0 100% 0.006
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.089
ExclusionsFilterTest 8 0 0 0 100% 0.001
FileWatcherCallbackTest 6 0 1 0 83.333% 48.042

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 1.375
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.236

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 14 0 0 0 100% 0.025
JcrResourceOriginRepositoryTest 9 0 0 0 100% 16.509

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

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

ResourceTreeWalkerTest

simpleVisit 0.013
canVisitJustAFileCauseWhyNot 0.003

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.038
lastModifiedReturnsTimeOfLastModification 0.056
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.033
getRootReturnsResourceForRoot 0.044
communicatesFileModification 0.141
communicatesFileRemoval 0.08
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.03
openInputStreamForResource 0.032
excludesNativeLibsAndOtherFunkyThingsByDefault 0.172
getByPathReturnsResourceForFile 0.048
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.06
getParentReturnsNullForRootPath 0.062
getParentReturnsTheParentFolderForPathToFolder 0.067
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.061
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.146
watchForChangesTriggersNothingIfServiceNotEnabled 0.041
getParentReturnsTheParentFolderForPathToFile 0.046
mgnlResourcesAreExcludedByDefault 0.037
reflectionsURLsFiltersNativeLibsOut 0.029
communicatesFileAddition 0.069
listChildrenReturnsVirtualDirectoryStructure 0.044
traverseWithCallsFunctionForEveryResource 0.038

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.859
createdFileInNewDirectoryIsDetected 6.015
allowsDirectoryWatchingViaSymbolicLinks 2.045
watchingFileIsNotPossible 0.013
filterPredicateDiscardsIgnoredElementsRegistration 4.013
supportsMultipleRootFolders 4.018
modifiedFileIsDetected 4.005
exceptionsThrownByCallbacksDontKillTheSystem 4.032
deletedFileIsDetected 4.01
createdFileIsDetected 2.009
subTreeIsSkippedWhenFileCantBeRead 2.015

DummyResourceOriginTest

findResources 0.012
singleOriginPassesGivenReaderOnlyToThatOneResource 0.021
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0.001
nameIsStupidSubstringButThisIsGoodEnoughHere 0
singleOriginPassesGivenStreamOnlyToThatOneResource 0.005
parentsMustBeSpecified 0
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0.002
pathsAreInInsertionOrder 0.001
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.002

FunctionsTest

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

FileSystemResourceOriginTest

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

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0
attachAndIndex 0
identifiesChildrenCorrectly 0

JcrResourceOriginTest

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

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.025
whatsInRoot 0.06
listRootChildren 0.044
mgnlResourcesAreAvailableAtRoot 0.064
parentIsCorrect 0.042

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 3.981
communicatesFolderCreationAndDeletion 4.017
movedDirectoryIsDetected 32.055
Argument(s) are different! Wanted: resourceChangeHandler.onResourceChanged( ANYTHING with with relatedResourcePath which is "/foo" with with type which is <REMOVED> ); -> at info.magnolia.resourceloader.file.FileWatcherCallbackTest.movedDirectoryIsDetected(FileWatcherCallbackTest.java:193) Actual invocation has different arguments: resourceChangeHandler.onResourceChanged( ResourceOriginChange(type=ADDED, relatedResourcePath=/foo, relatedOrigin=info.magnolia.resourceloader.file.FileSystemResourceOrigin@13d9cbf5) ); -> at info.magnolia.resourceloader.AbstractResourceOrigin.dispatchResourceChange(AbstractResourceOrigin.java:132)
subTreeIsSkippedWhenFileCantBeRead 1.978
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.006

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 3.27
communicatesFileResourceAddition 1.99
communicatesResourceFolderDeletionWithContents 1.492
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.345
communicatesFileResourceDeletion 1.298
communicatesFileResourceModification 1.254
communicatesResourceFolderAdditionWithContents 1.301
ignoreChangesWhenResourceIsBypassed 2.228
bypassSetToTrueTreatedAsResourceRemoval 1.325

Failure Details

[Summary] [Package List] [Test Cases]


movedDirectoryIsDetected
org.mockito.exceptions.verification.junit.ArgumentsAreDifferent: Argument(s) are different! Wanted: resourceChangeHandler.onResourceChanged( ANYTHING with with relatedResourcePath which is "/foo" with with type which is <REMOVED> ); -> at info.magnolia.resourceloader.file.FileWatcherCallbackTest.movedDirectoryIsDetected(FileWatcherCallbackTest.java:193) Actual invocation has different arguments: resourceChangeHandler.onResourceChanged( ResourceOriginChange(type=ADDED, relatedResourcePath=/foo, relatedOrigin=info.magnolia.resourceloader.file.FileSystemResourceOrigin@13d9cbf5) ); -> at info.magnolia.resourceloader.AbstractResourceOrigin.dispatchResourceChange(AbstractResourceOrigin.java:132)