Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.service.impl.base 3 0 0 0 100% 0.005
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.022
info.magnolia.resourceloader.util 11 0 0 0 100% 0.004
info.magnolia.resourceloader.file 30 0 0 0 100% 14.113
info.magnolia.dirwatch 8 0 0 0 100% 24.249
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.024
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.705
info.magnolia.resourceloader.jcr 22 0 0 0 100% 14.556

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

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

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

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.001
ResourceTreeWalkerTest 2 0 0 0 100% 0.002

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.069
FileWatcherCallbackTest 3 0 0 0 100% 14.039

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.637
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.068

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.536
JcrResourceOriginTest 13 0 0 0 100% 0.02

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 4.134
allowsDirectoryWatchingViaSymbolicLinks 2.047
watchingFileIsNotPossible 0.003
supportsMultipleRootFolders 4.008
modifiedFileIsDetected 4.01
exceptionsThrownByCallbacksDontKillTheSystem 4.022
deletedFileIsDetected 4.012
createdFileIsDetected 2.013

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.088
lastModifiedReturnsTimeOfLastModification 0.069
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.02
getRootReturnsResourceForRoot 0.035
communicatesFileModification 0.078
communicatesFileRemoval 0.049
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.013
openInputStreamForResource 0.013
excludesNativeLibsAndOtherFunkyThingsByDefault 0.049
getByPathReturnsResourceForFile 0.013
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.017
getParentReturnsNullForRootPath 0.014
getParentReturnsTheParentFolderForPathToFolder 0.012
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.016
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.044
watchForChangesTriggersNothingIfServiceNotEnabled 0.012
getParentReturnsTheParentFolderForPathToFile 0.014
mgnlResourcesAreExcludedByDefault 0.014
reflectionsURLsFiltersNativeLibsOut 0.013
communicatesFileAddition 0.027
listChildrenReturnsVirtualDirectoryStructure 0.014
traverseWithCallsFunctionForEveryResource 0.013

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.014
whatsInRoot 0.014
listRootChildren 0.011
mgnlResourcesAreAvailableAtRoot 0.017
parentIsCorrect 0.012

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.005
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.01
movedDirectoryIsDetected 4.014
communicatesAllPossibleFileChangeEvents 6.015

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.354
communicatesFileResourceAddition 1.47
communicatesResourceFolderDeletionWithContents 1.34
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.409
communicatesFileResourceDeletion 1.211
communicatesFileResourceModification 1.209
communicatesResourceFolderAdditionWithContents 1.211
ignoreChangesWhenResourceIsBypassed 2.162
bypassSetToTrueTreatedAsResourceRemoval 1.17

JcrResourceOriginTest

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

LayeredResourceOriginTest

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

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0.001