Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
136 1 1 0 98.529% 70.656

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.004
info.magnolia.resourceloader.dummy 10 0 0 0 100% 0.033
info.magnolia.resourceloader.util 11 0 0 0 100% 0.005
info.magnolia.resourceloader.file 34 0 0 0 100% 20.221
info.magnolia.dirwatch 11 0 0 0 100% 34.73
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.041
info.magnolia.resourceloader.classpath 27 0 0 0 100% 1.152
info.magnolia.resourceloader.jcr 24 1 1 0 91.667% 14.47

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

info.magnolia.resourceloader.dummy

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

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
FileSystemResourceOriginTest 20 0 0 0 100% 0.143
ExclusionsFilterTest 8 0 0 0 100% 0.002
FileWatcherCallbackTest 6 0 0 0 100% 20.076

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 1.025
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.127

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 14 0 0 0 100% 0.03
JcrResourceOriginRepositoryTest 10 1 1 0 80% 14.44

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

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

ResourceTreeWalkerTest

simpleVisit 0.004
canVisitJustAFileCauseWhyNot 0

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.134
lastModifiedReturnsTimeOfLastModification 0.039
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.029
getRootReturnsResourceForRoot 0.041
communicatesFileModification 0.1
communicatesFileRemoval 0.073
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.025
openInputStreamForResource 0.027
excludesNativeLibsAndOtherFunkyThingsByDefault 0.129
getByPathReturnsResourceForFile 0.034
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.025
getParentReturnsNullForRootPath 0.025
getParentReturnsTheParentFolderForPathToFolder 0.028
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.028
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.079
watchForChangesTriggersNothingIfServiceNotEnabled 0.025
getParentReturnsTheParentFolderForPathToFile 0.025
mgnlResourcesAreExcludedByDefault 0.027
reflectionsURLsFiltersNativeLibsOut 0.028
communicatesFileAddition 0.043
listChildrenReturnsVirtualDirectoryStructure 0.031
traverseWithCallsFunctionForEveryResource 0.026

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.518
createdFileInNewDirectoryIsDetected 6.014
allowsDirectoryWatchingViaSymbolicLinks 2.014
watchingFileIsNotPossible 0.007
filterPredicateDiscardsIgnoredElementsRegistration 6.014
supportsMultipleRootFolders 4.013
modifiedFileIsDetected 4.019
exceptionsThrownByCallbacksDontKillTheSystem 4.029
deletedFileIsDetected 4.014
createdFileIsDetected 2.013
subTreeIsSkippedWhenFileCantBeRead 2.019

DummyResourceOriginTest

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

FunctionsTest

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

FileSystemResourceOriginTest

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

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0

JcrResourceOriginTest

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

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.025
whatsInRoot 0.028
listRootChildren 0.027
mgnlResourcesAreAvailableAtRoot 0.025
parentIsCorrect 0.021

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.02
communicatesFolderCreationAndDeletion 4.016
movedDirectoryIsDetected 4.017
subTreeIsSkippedWhenFileCantBeRead 2.011
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.009

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.414
communicatesFileResourceAddition 1.352
communicatesResourceFolderDeletionWithContents 1.402
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.279
communicatesFileResourceDeletion 1.203
Original session is released. Actual: session-admin-225
communicatesFileResourceDeletion 1.203
communicatesFileResourceModification 1.138
communicatesResourceFolderAdditionWithContents 1.242
ignoreChangesWhenResourceIsBypassed 2.213
bypassSetToTrueTreatedAsResourceRemoval 1.193

Failure Details

[Summary] [Package List] [Test Cases]


communicatesFileResourceDeletion
java.lang.AssertionError: Original session is released. Actual: session-admin-225
communicatesFileResourceDeletion
java.util.ConcurrentModificationException