Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
125 0 0 0 100% 56.79

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 8 0 0 0 100% 24.284
info.magnolia.resourceloader.file 30 0 0 0 100% 14.151
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.025
info.magnolia.resourceloader.jcr 22 0 0 0 100% 17.211
info.magnolia.resourceloader.classpath.service.impl.base 3 0 0 0 100% 0.005
info.magnolia.resourceloader.util 11 0 0 0 100% 0.003
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 22 0 0 0 100% 1.006
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.079

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherTest 8 0 0 0 100% 24.284

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 7 0 0 0 100% 0.005
FileSystemResourceOriginTest 20 0 0 0 100% 0.102
FileWatcherCallbackTest 3 0 0 0 100% 14.044

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 17.187
JcrResourceOriginTest 13 0 0 0 100% 0.024

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

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 4.189
allowsDirectoryWatchingViaSymbolicLinks 2.018
watchingFileIsNotPossible 0.002
supportsMultipleRootFolders 4.017
modifiedFileIsDetected 4.015
exceptionsThrownByCallbacksDontKillTheSystem 4.017
deletedFileIsDetected 4.011
createdFileIsDetected 2.015

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.15
lastModifiedReturnsTimeOfLastModification 0.072
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.041
getRootReturnsResourceForRoot 0.051
communicatesFileModification 0.148
communicatesFileRemoval 0.087
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.017
openInputStreamForResource 0.023
excludesNativeLibsAndOtherFunkyThingsByDefault 0.119
getByPathReturnsResourceForFile 0.017
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.021
getParentReturnsNullForRootPath 0.017
getParentReturnsTheParentFolderForPathToFolder 0.018
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.017
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.056
watchForChangesTriggersNothingIfServiceNotEnabled 0.017
getParentReturnsTheParentFolderForPathToFile 0.017
mgnlResourcesAreExcludedByDefault 0.02
reflectionsURLsFiltersNativeLibsOut 0.017
communicatesFileAddition 0.04
listChildrenReturnsVirtualDirectoryStructure 0.024
traverseWithCallsFunctionForEveryResource 0.017

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.015
whatsInRoot 0.019
listRootChildren 0.013
mgnlResourcesAreAvailableAtRoot 0.018
parentIsCorrect 0.014

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.005
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.009
getByPathReturnsResourceForGivenStringPath 0.003
defaultExcludeListPatternIsCorrect 0.004
excludesAreAppliedEverywhere 0.022
listChildrenDoesntIncludeGivenFolder 0.006
newResourceReturnsFSRPForAbsolutePathToFile 0.004
lastModifiedReturnsTimeOfLastModification 0.004
getRootWrapsRootPathInResource 0.003
traverseWithCallsFunctionForEveryMatchingResource 0.007
openStreamReturnStreamForGivenPath 0.004
getParentReturnsNullForRootPath 0.002
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.004
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.003
exclusionOfDirectoriesFromPropertyFileWorks 0.003
nullExclusionPropertyFallbacksToDefault 0.003
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.004
listChildrenReturnsDirectChildren 0.008
newResourceThrowsExceptionWhenPathDoesNotExist 0.003
getByPathThrowsExceptionForNonExistingPath 0.003
newResourceReturnsFSRPForRelativePathToFile 0.003

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.018
movedDirectoryIsDetected 4.012
communicatesAllPossibleFileChangeEvents 6.014

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 3.542
communicatesFileResourceAddition 1.761
communicatesResourceFolderDeletionWithContents 1.526
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.43
communicatesFileResourceDeletion 1.403
communicatesFileResourceModification 1.447
communicatesResourceFolderAdditionWithContents 1.37
ignoreChangesWhenResourceIsBypassed 2.334
bypassSetToTrueTreatedAsResourceRemoval 1.374

JcrResourceOriginTest

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

LayeredResourceOriginTest

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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0.001
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0.001