Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.005
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.031
info.magnolia.resourceloader.util 11 0 0 0 100% 0
info.magnolia.resourceloader.file 34 0 0 0 100% 20.195
info.magnolia.dirwatch 11 0 0 0 100% 32.601
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.039
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.933
info.magnolia.resourceloader.jcr 22 0 0 0 100% 14.169

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 8 0 0 0 100% 0.005
FileSystemResourceOriginTest 20 0 0 0 100% 0.11
FileWatcherCallbackTest 6 0 0 0 100% 20.08

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.799
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.134

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.153
JcrResourceOriginTest 13 0 0 0 100% 0.016

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.122
createdFileInNewDirectoryIsDetected 6.015
allowsDirectoryWatchingViaSymbolicLinks 2.018
watchingFileIsNotPossible 0.004
filterPredicateDiscardsIgnoredElementsRegistration 4.016
supportsMultipleRootFolders 4.015
modifiedFileIsDetected 4.009
exceptionsThrownByCallbacksDontKillTheSystem 4.021
deletedFileIsDetected 4.017
createdFileIsDetected 2.015
subTreeIsSkippedWhenFileCantBeRead 2.013

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.123
lastModifiedReturnsTimeOfLastModification 0.036
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.023
getRootReturnsResourceForRoot 0.031
communicatesFileModification 0.093
communicatesFileRemoval 0.057
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.019
openInputStreamForResource 0.019
excludesNativeLibsAndOtherFunkyThingsByDefault 0.049
getByPathReturnsResourceForFile 0.021
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.027
getParentReturnsNullForRootPath 0.023
getParentReturnsTheParentFolderForPathToFolder 0.02
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.02
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.05
watchForChangesTriggersNothingIfServiceNotEnabled 0.02
getParentReturnsTheParentFolderForPathToFile 0.02
mgnlResourcesAreExcludedByDefault 0.024
reflectionsURLsFiltersNativeLibsOut 0.024
communicatesFileAddition 0.04
listChildrenReturnsVirtualDirectoryStructure 0.028
traverseWithCallsFunctionForEveryResource 0.023

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.019
whatsInRoot 0.037
listRootChildren 0.024
mgnlResourcesAreAvailableAtRoot 0.024
parentIsCorrect 0.03

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.015
communicatesFolderCreationAndDeletion 4.013
movedDirectoryIsDetected 4.016
subTreeIsSkippedWhenFileCantBeRead 2.013
watchedPathFilterDiscardsIgnoredElementsRegistration 0.002
communicatesAllPossibleFileChangeEvents 6.02

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.336
communicatesFileResourceAddition 1.318
communicatesResourceFolderDeletionWithContents 1.267
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.248
communicatesFileResourceDeletion 1.215
communicatesFileResourceModification 1.21
communicatesResourceFolderAdditionWithContents 1.192
ignoreChangesWhenResourceIsBypassed 2.18
bypassSetToTrueTreatedAsResourceRemoval 1.181

JcrResourceOriginTest

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

LayeredResourceOriginTest

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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0
canVisitJustAFileCauseWhyNot 0