Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
124 0 0 0 100% 53.636

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 27 0 0 0 100% 1.085
info.magnolia.dirwatch 7 0 0 0 100% 22.284
info.magnolia.resourceloader.file 30 0 0 0 100% 14.173
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.02
info.magnolia.resourceloader.jcr 22 0 0 0 100% 16.034
info.magnolia.resourceloader.classpath.service.impl.base 3 0 0 0 100% 0.006
info.magnolia.resourceloader.util 11 0 0 0 100% 0.003
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.031

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 22 0 0 0 100% 1.011
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.074

info.magnolia.dirwatch

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 7 0 0 0 100% 0.004
FileSystemResourceOriginTest 20 0 0 0 100% 0.119
FileWatcherCallbackTest 3 0 0 0 100% 14.05

info.magnolia.resourceloader.layered

Class Tests Errors Failures Skipped Success Rate Time
LayeredResourceOriginTest 15 0 0 0 100% 0.02

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 16.019
JcrResourceOriginTest 13 0 0 0 100% 0.015

info.magnolia.resourceloader.classpath.service.impl.base

Class Tests Errors Failures Skipped Success Rate Time
ClasspathEntriesResolverTest 3 0 0 0 100% 0.006

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

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 4.197
watchingFileIsNotPossible 0.002
supportsMultipleRootFolders 4.015
modifiedFileIsDetected 4.023
exceptionsThrownByCallbacksDontKillTheSystem 4.007
deletedFileIsDetected 4.021
createdFileIsDetected 2.019

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.127
lastModifiedReturnsTimeOfLastModification 0.079
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.039
getRootReturnsResourceForRoot 0.041
communicatesFileModification 0.162
communicatesFileRemoval 0.08
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.017
openInputStreamForResource 0.016
excludesNativeLibsAndOtherFunkyThingsByDefault 0.135
getByPathReturnsResourceForFile 0.022
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.027
getParentReturnsNullForRootPath 0.017
getParentReturnsTheParentFolderForPathToFolder 0.024
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.018
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.052
watchForChangesTriggersNothingIfServiceNotEnabled 0.016
getParentReturnsTheParentFolderForPathToFile 0.014
mgnlResourcesAreExcludedByDefault 0.015
reflectionsURLsFiltersNativeLibsOut 0.024
communicatesFileAddition 0.047
listChildrenReturnsVirtualDirectoryStructure 0.022
traverseWithCallsFunctionForEveryResource 0.017

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.014
whatsInRoot 0.019
listRootChildren 0.013
mgnlResourcesAreAvailableAtRoot 0.016
parentIsCorrect 0.012

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.005
attachAndIndex 0
identifiesChildrenCorrectly 0.001

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.014
getByPathReturnsResourceForGivenStringPath 0.004
defaultExcludeListPatternIsCorrect 0.003
excludesAreAppliedEverywhere 0.02
listChildrenDoesntIncludeGivenFolder 0.015
newResourceReturnsFSRPForAbsolutePathToFile 0.003
lastModifiedReturnsTimeOfLastModification 0.003
getRootWrapsRootPathInResource 0.003
traverseWithCallsFunctionForEveryMatchingResource 0.007
openStreamReturnStreamForGivenPath 0.003
getParentReturnsNullForRootPath 0.005
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.003
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.003
exclusionOfDirectoriesFromPropertyFileWorks 0.003
nullExclusionPropertyFallbacksToDefault 0.004
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.003
listChildrenReturnsDirectChildren 0.013
newResourceThrowsExceptionWhenPathDoesNotExist 0.003
getByPathThrowsExceptionForNonExistingPath 0.003
newResourceReturnsFSRPForRelativePathToFile 0.004

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.015
movedDirectoryIsDetected 4.021
communicatesAllPossibleFileChangeEvents 6.014

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 3.164
communicatesFileResourceAddition 1.631
communicatesResourceFolderDeletionWithContents 1.431
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.333
communicatesFileResourceDeletion 1.284
communicatesFileResourceModification 1.326
communicatesResourceFolderAdditionWithContents 1.305
ignoreChangesWhenResourceIsBypassed 2.271
bypassSetToTrueTreatedAsResourceRemoval 1.274

JcrResourceOriginTest

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

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.007
listChildrenAggregatesCorrectly 0.001
isEditableIsThatOfCorrectLayer 0.001
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0.001
lastModifiedIsThatOfCorrectLayer 0.001
navigationThroughParentAggregatesCorrectly 0.001
watchForChangesForwardsLayeredResourceToVisitor 0.004
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.001
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0
newValidatesThatPathsMatch 0
byPathFindsResourcesInTheDifferentLayers 0.001
newValidatesThatTypeMatch 0
hasPathFindsResourcesInTheDifferentLayers 0.001
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.001
canVisitJustAFileCauseWhyNot 0.001