Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
107 0 0 3 97.196% 122.597

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 22 0 0 0 100% 2.157
info.magnolia.dirwatch 9 0 0 2 77.778% 110.079
info.magnolia.resourceloader.file 24 0 0 0 100% 0.092
info.magnolia.classpathwatch 4 0 0 1 75% 3.287
info.magnolia.resourceloader.layered 14 0 0 0 100% 0.051
info.magnolia.resourceloader.jcr 14 0 0 0 100% 6.905
info.magnolia.resourceloader.util 11 0 0 0 100% 0.004
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.022

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 19 0 0 0 100% 2.029
LegacyClasspathResourceOriginTest 3 0 0 0 100% 0.128

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherServiceTest 2 0 0 2 0% 0
DirectoryWatcherTest 7 0 0 0 100% 110.079

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 5 0 0 0 100% 0.004
FileSystemResourceOriginTest 19 0 0 0 100% 0.088

info.magnolia.classpathwatch

Class Tests Errors Failures Skipped Success Rate Time
ClasspathScannerTest 4 0 0 1 75% 3.287

info.magnolia.resourceloader.layered

Class Tests Errors Failures Skipped Success Rate Time
LayeredResourceOriginTest 14 0 0 0 100% 0.051

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 14 0 0 0 100% 6.905

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.dummy

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

Test Cases

[Summary] [Package List] [Test Cases]

ClasspathScannerTest

createdResourceIsDetected 1.251
modifiedResourceIsDetected 1.014
exceptionsThrownByCallbacksDontKillTheSystem 1.022
deletedFileIsDetected 0
Currently does not detect deletions, would need to keep a cache of last scanned resources.

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 20.026
watchingFileIsNotPossible 0.002
supportsMultipleRootFolders 20.007
modifiedFileIsDetected 20.004
exceptionsThrownByCallbacksDontKillTheSystem 20.021
deletedFileIsDetected 20.013
createdFileIsDetected 10.006

ClasspathResourceOriginTest

watchForChangesTriggersFunctionForChangesToConfigFiles 0.229
mgnlBootstrapWhateverFoldersAreExcluded 0.1
lastModifiedReturnsTimeOfLastModification 0.103
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.091
getRootReturnsResourceForRoot 0.104
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.106
openInputStreamForResource 0.087
excludesNativeLibsAndOtherFunkyThingsByDefault 0.206
getByPathReturnsResourceForFile 0.092
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.098
getParentReturnsNullForRootPath 0.095
getParentReturnsTheParentFolderForPathToFolder 0.089
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.092
mgnlResourcesIsExcludedByDefault 0.088
watchForChangesTriggersNothingIfServiceNotEnabled 0.09
getParentReturnsTheParentFolderForPathToFile 0.085
reflectionsURLsFiltersNativeLibsOut 0.093
listChildrenReturnsVirtualDirectoryStructure 0.092
traverseWithCallsFunctionForEveryResource 0.089

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.042
whatsInRoot 0.043
mgnlResourcesAreAvailableAtRoot 0.043

DummyResourceOriginTest

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

ExclusionsFilterTest

directoryAndExtensionExcludesAreEscapedSoThatDotsCanAppearInExcludeWithNoSpecialMeaning 0.002
testApplyToRootDirectory 0
excludeWithPattern 0.001
excludedDirectoryNameIsCompleteMatch 0.001
excludedDirectoryAreExcludedEveryWhereNotJustInRoot 0

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.018
getByPathReturnsResourceForGivenStringPath 0.004
defaultExcludeListPatternIsCorrect 0.004
excludesAreAppliedEverywhere 0.013
listChildrenDoesntIncludeGivenFolder 0.005
newResourceReturnsFSRPForAbsolutePathToFile 0.003
lastModifiedReturnsTimeOfLastModification 0.003
getRootWrapsRootPathInResource 0.002
traverseWithCallsFunctionForEveryMatchingResource 0.006
openStreamReturnStreamForGivenPath 0.003
getParentReturnsNullForRootPath 0.002
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.002
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.003
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.003
listChildrenReturnsDirectChildren 0.005
newResourceThrowsExceptionWhenPathDoesNotExist 0.004
getByPathThrowsExceptionForNonExistingPath 0.002
newResourceReturnsFSRPForRelativePathToFile 0.002
watchForChangesTriggersCallbackForGivenPattern 0.004

JcrResourceOriginTest

getByPathThrowsExceptionWhenPathDoesNotExist 1.969
lastModifiedReturnsTimeOfLastModification 0.649
getRootReturnsResourceForRoot 0.381
traverseWithCallsFunctionForEveryMatchingResource 0.34
getByPathReturnsResourceForPathToDirectory 0.285
listChildrenReturnsChildren 0.274
openInputStreamForResource 0.284
getParentReturnsNullForRootPath 0.257
getParentReturnsTheParentFolderForPathToFolder 0.261
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.242
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.232
getParentReturnsTheParentFolderForPathToFile 0.251
callbackIsCalledAfterResourceBecomesBypassed 1.251
getByPathReturnsResourceForPathToFile 0.229

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.023
listChildrenAggregatesCorrectly 0.002
isEditableIsThatOfCorrectLayer 0
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0
lastModifiedIsThatOfCorrectLayer 0.001
navigationThroughParentAggregatesCorrectly 0.001
watchForChangesForwardsLayeredResourceToVisitor 0.02
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0
newValidatesThatPathsMatch 0.001
byPathFindsResourcesInTheDifferentLayers 0
newValidatesThatTypeMatch 0.001
hasPathFindsResourcesInTheDifferentLayers 0
getRootLayersAllOrigins 0.001

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0.001

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0.001

Failure Details

[Summary] [Package List] [Test Cases]


deletedFileIsDetected
skipped: Currently does not detect deletions, would need to keep a cache of last scanned resources.
testWatchForFileChanges
skipped: skipped
testRegisterNewDirecotryToWatch
skipped: skipped