Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
117 0 0 2 98.291% 31.7

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% 1.519
info.magnolia.dirwatch 7 0 0 0 100% 22.271
info.magnolia.resourceloader.file 29 0 0 0 100% 0.11
info.magnolia.resourceloader.layered 14 0 0 0 100% 0.031
info.magnolia.resourceloader.jcr 19 0 0 2 89.474% 7.742
info.magnolia.resourceloader.classpath.service.impl.base 3 0 0 0 100% 0.005
info.magnolia.resourceloader.util 11 0 0 0 100% 0.002
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.02

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% 1.45
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.069

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherTest 7 0 0 0 100% 22.271

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 7 0 0 0 100% 0.004
FileSystemResourceOriginTest 22 0 0 0 100% 0.106

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 6 0 0 2 66.667% 7.728
JcrResourceOriginTest 13 0 0 0 100% 0.014

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

info.magnolia.resourceloader.dummy

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

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 4.2
watchingFileIsNotPossible 0.002
supportsMultipleRootFolders 4.01
modifiedFileIsDetected 4.015
exceptionsThrownByCallbacksDontKillTheSystem 4.023
deletedFileIsDetected 4.014
createdFileIsDetected 2.007

ClasspathResourceOriginTest

watchForChangesTriggersFunctionForChangesToConfigFiles 0.665
mgnlBootstrapWhateverFoldersAreExcluded 0.061
lastModifiedReturnsTimeOfLastModification 0.046
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.036
getRootReturnsResourceForRoot 0.035
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.048
openInputStreamForResource 0.039
excludesNativeLibsAndOtherFunkyThingsByDefault 0.119
getByPathReturnsResourceForFile 0.03
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.033
getParentReturnsNullForRootPath 0.03
getParentReturnsTheParentFolderForPathToFolder 0.029
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.029
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.074
watchForChangesTriggersNothingIfServiceNotEnabled 0.028
getParentReturnsTheParentFolderForPathToFile 0.03
mgnlResourcesAreExcludedByDefault 0.026
reflectionsURLsFiltersNativeLibsOut 0.031
listChildrenReturnsVirtualDirectoryStructure 0.034
traverseWithCallsFunctionForEveryResource 0.027

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.017
whatsInRoot 0.016
listRootChildren 0.013
mgnlResourcesAreAvailableAtRoot 0.011
parentIsCorrect 0.012

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0.001
identifiesChildrenCorrectly 0

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

JcrResourceOriginRepositoryTest

watchForChangesWhenResourceBecomesBypassed 2.575
watchForChangesWhenResourceIsAdded 1.553
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.322
watchForChangesWhenResourceIsRemoved 0
Currently removed files go unnoticed.
watchForChangesWhenResourceIsModified 1.278
ignoreChangesWhenResourceIsBypassed 0
Currently bypass isn't checked, so that we see when a resource actually becomes bypassed.

JcrResourceOriginTest

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

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.007
listChildrenAggregatesCorrectly 0.001
isEditableIsThatOfCorrectLayer 0.001
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0
lastModifiedIsThatOfCorrectLayer 0.001
navigationThroughParentAggregatesCorrectly 0
watchForChangesForwardsLayeredResourceToVisitor 0.018
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0.001
newValidatesThatPathsMatch 0
byPathFindsResourcesInTheDifferentLayers 0.001
newValidatesThatTypeMatch 0
hasPathFindsResourcesInTheDifferentLayers 0
getRootLayersAllOrigins 0

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0

Failure Details

[Summary] [Package List] [Test Cases]


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