Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
106 0 0 3 97.17% 122.754

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.406
info.magnolia.dirwatch 9 0 0 2 77.778% 110.089
info.magnolia.resourceloader.file 24 0 0 0 100% 0.093
info.magnolia.classpathwatch 4 0 0 1 75% 3.382
info.magnolia.resourceloader.layered 13 0 0 0 100% 0.048
info.magnolia.resourceloader.jcr 14 0 0 0 100% 6.709
info.magnolia.resourceloader.util 11 0 0 0 100% 0.001
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.026

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.236
LegacyClasspathResourceOriginTest 3 0 0 0 100% 0.17

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 5 0 0 0 100% 0.003
FileSystemResourceOriginTest 19 0 0 0 100% 0.09

info.magnolia.classpathwatch

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

info.magnolia.resourceloader.layered

Class Tests Errors Failures Skipped Success Rate Time
LayeredResourceOriginTest 13 0 0 0 100% 0.048

info.magnolia.resourceloader.jcr

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

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

info.magnolia.resourceloader.dummy

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

Test Cases

[Summary] [Package List] [Test Cases]

ClasspathScannerTest

createdResourceIsDetected 1.277
modifiedResourceIsDetected 1.055
exceptionsThrownByCallbacksDontKillTheSystem 1.05
deletedFileIsDetected 0
Currently does not detect deletions, would need to keep a cache of last scanned resources.

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 20.032
watchingFileIsNotPossible 0.003
supportsMultipleRootFolders 20.011
modifiedFileIsDetected 20.005
exceptionsThrownByCallbacksDontKillTheSystem 20.02
deletedFileIsDetected 20.007
createdFileIsDetected 10.011

ClasspathResourceOriginTest

watchForChangesTriggersFunctionForChangesToConfigFiles 0.236
mgnlBootstrapWhateverFoldersAreExcluded 0.138
lastModifiedReturnsTimeOfLastModification 0.118
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.104
getRootReturnsResourceForRoot 0.104
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.1
openInputStreamForResource 0.101
excludesNativeLibsAndOtherFunkyThingsByDefault 0.216
getByPathReturnsResourceForFile 0.106
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.101
getParentReturnsNullForRootPath 0.101
getParentReturnsTheParentFolderForPathToFolder 0.101
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.1
mgnlResourcesIsExcludedByDefault 0.103
watchForChangesTriggersNothingIfServiceNotEnabled 0.101
getParentReturnsTheParentFolderForPathToFile 0.1
reflectionsURLsFiltersNativeLibsOut 0.107
listChildrenReturnsVirtualDirectoryStructure 0.1
traverseWithCallsFunctionForEveryResource 0.099

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.06
whatsInRoot 0.056
mgnlResourcesAreAvailableAtRoot 0.054

DummyResourceOriginTest

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

ExclusionsFilterTest

directoryAndExtensionExcludesAreEscapedSoThatDotsCanAppearInExcludeWithNoSpecialMeaning 0.002
testApplyToRootDirectory 0
excludeWithPattern 0.001
excludedDirectoryNameIsCompleteMatch 0
excludedDirectoryAreExcludedEveryWhereNotJustInRoot 0

FileSystemResourceOriginTest

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

JcrResourceOriginTest

getByPathThrowsExceptionWhenPathDoesNotExist 1.89
lastModifiedReturnsTimeOfLastModification 0.666
getRootReturnsResourceForRoot 0.38
traverseWithCallsFunctionForEveryMatchingResource 0.323
getByPathReturnsResourceForPathToDirectory 0.284
listChildrenReturnsChildren 0.272
openInputStreamForResource 0.254
getParentReturnsNullForRootPath 0.256
getParentReturnsTheParentFolderForPathToFolder 0.245
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.242
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.221
getParentReturnsTheParentFolderForPathToFile 0.221
callbackIsCalledAfterResourceBecomesBypassed 1.254
getByPathReturnsResourceForPathToFile 0.201

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.022
listChildrenAggregatesCorrectly 0.001
isEditableIsThatOfCorrectLayer 0
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0
lastModifiedIsThatOfCorrectLayer 0.001
navigationThroughParentAggregatesCorrectly 0.001
watchForChangesForwardsLayeredResourceToVisitor 0.019
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0.001
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
collectorCollectsToGivenCollection 0

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0

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