Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
135 0 0 0 100% 16.457

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.087
info.magnolia.resourceloader.util 11 0 0 0 100% 0.279
info.magnolia.resourceloader.file 34 0 0 0 100% 0.185
info.magnolia.dirwatch 11 0 0 0 100% 0.28
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.023
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.894
info.magnolia.resourceloader.jcr 23 0 0 0 100% 14.705

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

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

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.788
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.106

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.671
JcrResourceOriginTest 14 0 0 0 100% 0.034

Test Cases

[Summary] [Package List] [Test Cases]

FileSystemResourceOriginTest

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

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.135
lastModifiedReturnsTimeOfLastModification 0.03
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.023
getRootReturnsResourceForRoot 0.023
communicatesFileModification 0.083
communicatesFileRemoval 0.061
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.022
openInputStreamForResource 0.02
excludesNativeLibsAndOtherFunkyThingsByDefault 0.062
getByPathReturnsResourceForFile 0.02
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.026
getParentReturnsNullForRootPath 0.02
getParentReturnsTheParentFolderForPathToFolder 0.019
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.02
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.052
watchForChangesTriggersNothingIfServiceNotEnabled 0.026
getParentReturnsTheParentFolderForPathToFile 0.022
mgnlResourcesAreExcludedByDefault 0.023
reflectionsURLsFiltersNativeLibsOut 0.02
communicatesFileAddition 0.037
listChildrenReturnsVirtualDirectoryStructure 0.02
traverseWithCallsFunctionForEveryResource 0.022

ResourceTreeWalkerTest

simpleVisit 0.271
canVisitJustAFileCauseWhyNot 0.001

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 0.027
communicatesFolderCreationAndDeletion 0.026
movedDirectoryIsDetected 0.029
subTreeIsSkippedWhenFileCantBeRead 0.014
watchedPathFilterDiscardsIgnoredElementsRegistration 0.002
communicatesAllPossibleFileChangeEvents 0.035

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.02
whatsInRoot 0.024
listRootChildren 0.019
mgnlResourcesAreAvailableAtRoot 0.023
parentIsCorrect 0.02

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.371
communicatesFileResourceAddition 1.421
communicatesResourceFolderDeletionWithContents 1.358
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.295
communicatesFileResourceDeletion 1.281
communicatesFileResourceModification 1.261
communicatesResourceFolderAdditionWithContents 1.239
ignoreChangesWhenResourceIsBypassed 2.261
bypassSetToTrueTreatedAsResourceRemoval 1.18

JcrResourceOriginTest

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

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.005
createdFileInNewDirectoryIsDetected 0.024
allowsDirectoryWatchingViaSymbolicLinks 0.054
watchingFileIsNotPossible 0.012
filterPredicateDiscardsIgnoredElementsRegistration 0.029
supportsMultipleRootFolders 0.031
modifiedFileIsDetected 0.03
exceptionsThrownByCallbacksDontKillTheSystem 0.037
deletedFileIsDetected 0.024
createdFileIsDetected 0.014
subTreeIsSkippedWhenFileCantBeRead 0.016

FunctionsTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0.001
traversalPredicateIgnoresRoot 0.001

DummyResourceOriginTest

findResources 0.046
singleOriginPassesGivenReaderOnlyToThatOneResource 0.016
singleOriginFakesParents 0.003
pathsMustStartWithLeadingSlash 0.001
nameIsStupidSubstringButThisIsGoodEnoughHere 0
singleOriginPassesGivenStreamOnlyToThatOneResource 0.002
parentsMustBeSpecified 0.001
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0.004
pathsAreInInsertionOrder 0.001
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.002

LayeredResourceOriginTest

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

ExclusionsFilterTest

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