Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
115 0 0 4 96.522% 125.569

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 25 0 0 0 100% 2.909
info.magnolia.dirwatch 9 0 0 2 77.778% 110.108
info.magnolia.resourceloader.file 24 0 0 0 100% 0.084
info.magnolia.classpathwatch 4 0 0 0 100% 4.456
info.magnolia.resourceloader.layered 14 0 0 0 100% 0.051
info.magnolia.resourceloader.jcr 19 0 0 2 89.474% 7.935
info.magnolia.resourceloader.util 11 0 0 0 100% 0.003
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.023

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 20 0 0 0 100% 2.614
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.295

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 5 0 0 0 100% 0.002
FileSystemResourceOriginTest 19 0 0 0 100% 0.082

info.magnolia.classpathwatch

Class Tests Errors Failures Skipped Success Rate Time
ClasspathScannerTest 4 0 0 0 100% 4.456

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
JcrResourceOriginRepositoryTest 6 0 0 2 66.667% 7.92
JcrResourceOriginTest 13 0 0 0 100% 0.015

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

Test Cases

[Summary] [Package List] [Test Cases]

ClasspathScannerTest

createdResourceIsDetected 1.283
modifiedResourceIsDetected 1.056
exceptionsThrownByCallbacksDontKillTheSystem 1.053
deletedFileIsDetected 1.064

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 20.035
watchingFileIsNotPossible 0.003
supportsMultipleRootFolders 20.013
modifiedFileIsDetected 20.015
exceptionsThrownByCallbacksDontKillTheSystem 20.017
deletedFileIsDetected 20.007
createdFileIsDetected 10.018

ClasspathResourceOriginTest

watchForChangesTriggersFunctionForChangesToConfigFiles 0.216
mgnlBootstrapWhateverFoldersAreExcluded 0.114
lastModifiedReturnsTimeOfLastModification 0.105
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.12
getRootReturnsResourceForRoot 0.121
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.103
openInputStreamForResource 0.093
excludesNativeLibsAndOtherFunkyThingsByDefault 0.366
getByPathReturnsResourceForFile 0.258
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.097
getParentReturnsNullForRootPath 0.096
getParentReturnsTheParentFolderForPathToFolder 0.093
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.095
mgnlResourcesIsExcludedByDefault 0.101
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.093
watchForChangesTriggersNothingIfServiceNotEnabled 0.099
getParentReturnsTheParentFolderForPathToFile 0.095
reflectionsURLsFiltersNativeLibsOut 0.101
listChildrenReturnsVirtualDirectoryStructure 0.102
traverseWithCallsFunctionForEveryResource 0.146

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.081
whatsInRoot 0.067
listRootChildren 0.046
mgnlResourcesAreAvailableAtRoot 0.05
parentIsCorrect 0.051

DummyResourceOriginTest

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

ExclusionsFilterTest

directoryAndExtensionExcludesAreEscapedSoThatDotsCanAppearInExcludeWithNoSpecialMeaning 0.001
testApplyToRootDirectory 0
excludeWithPattern 0
excludedDirectoryNameIsCompleteMatch 0.001
excludedDirectoryAreExcludedEveryWhereNotJustInRoot 0

FileSystemResourceOriginTest

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

JcrResourceOriginRepositoryTest

watchForChangesWhenResourceBecomesBypassed 2.758
watchForChangesWhenResourceIsAdded 1.548
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.318
watchForChangesWhenResourceIsRemoved 0
Currently removed files go unnoticed.
watchForChangesWhenResourceIsModified 1.296
ignoreChangesWhenResourceIsBypassed 0
Currently bypass isn't checked, so that we see when a resource actually becomes bypassed.

JcrResourceOriginTest

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

LayeredResourceOriginTest

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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.002
canVisitJustAFileCauseWhyNot 0

Failure Details

[Summary] [Package List] [Test Cases]


testWatchForFileChanges
skipped: skipped
testRegisterNewDirecotryToWatch
skipped: skipped
watchForChangesWhenResourceIsRemoved
skipped: Currently removed files go unnoticed.
ignoreChangesWhenResourceIsBypassed
skipped: Currently bypass isn't checked, so that we see when a resource actually becomes bypassed.