Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
130 0 0 0 100% 66.54

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.008
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.025
info.magnolia.resourceloader.util 11 0 0 0 100% 0.002
info.magnolia.resourceloader.file 32 0 0 0 100% 16.152
info.magnolia.dirwatch 11 0 0 0 100% 34.35
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.025
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.91
info.magnolia.resourceloader.jcr 22 0 0 0 100% 15.068

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

info.magnolia.resourceloader.dummy

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

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

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 7 0 0 0 100% 0.004
FileSystemResourceOriginTest 20 0 0 0 100% 0.102
FileWatcherCallbackTest 5 0 0 0 100% 16.046

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherTest 11 0 0 0 100% 34.35

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.836
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.074

info.magnolia.resourceloader.jcr

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

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.213
createdFileInNewDirectoryIsDetected 6.02
allowsDirectoryWatchingViaSymbolicLinks 2.017
watchingFileIsNotPossible 0.002
filterPredicateDiscardsIgnoredElementsRegistration 6.012
supportsMultipleRootFolders 4.016
modifiedFileIsDetected 4.011
exceptionsThrownByCallbacksDontKillTheSystem 4.018
deletedFileIsDetected 4.013
createdFileIsDetected 2.013
subTreeIsSkippedWhenFileCantBeRead 2.015

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.166
lastModifiedReturnsTimeOfLastModification 0.049
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.026
getRootReturnsResourceForRoot 0.039
communicatesFileModification 0.1
communicatesFileRemoval 0.054
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.015
openInputStreamForResource 0.013
excludesNativeLibsAndOtherFunkyThingsByDefault 0.055
getByPathReturnsResourceForFile 0.024
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.024
getParentReturnsNullForRootPath 0.019
getParentReturnsTheParentFolderForPathToFolder 0.019
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.019
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.055
watchForChangesTriggersNothingIfServiceNotEnabled 0.015
getParentReturnsTheParentFolderForPathToFile 0.048
mgnlResourcesAreExcludedByDefault 0.015
reflectionsURLsFiltersNativeLibsOut 0.015
communicatesFileAddition 0.029
listChildrenReturnsVirtualDirectoryStructure 0.019
traverseWithCallsFunctionForEveryResource 0.018

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.015
whatsInRoot 0.019
listRootChildren 0.012
mgnlResourcesAreAvailableAtRoot 0.015
parentIsCorrect 0.013

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.007
attachAndIndex 0
identifiesChildrenCorrectly 0.001

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.019
singleOriginFakesParents 0
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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.007
movedDirectoryIsDetected 4.015
subTreeIsSkippedWhenFileCantBeRead 2.013
watchedPathFilterDiscardsIgnoredElementsRegistration 0.001
communicatesAllPossibleFileChangeEvents 6.01

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.856
communicatesFileResourceAddition 1.454
communicatesResourceFolderDeletionWithContents 1.348
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.293
communicatesFileResourceDeletion 1.284
communicatesFileResourceModification 1.209
communicatesResourceFolderAdditionWithContents 1.188
ignoreChangesWhenResourceIsBypassed 2.231
bypassSetToTrueTreatedAsResourceRemoval 1.185

JcrResourceOriginTest

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

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.007
listChildrenAggregatesCorrectly 0.002
isEditableIsThatOfCorrectLayer 0.002
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0.001
lastModifiedIsThatOfCorrectLayer 0.001
navigationThroughParentAggregatesCorrectly 0.001
watchForChangesForwardsLayeredResourceToVisitor 0.005
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.001
pathEqualsChecksResourcePath 0
sanityCheckForGuavaRegexPredicate 0
canPassPredicateToPathEqualsPredicate 0
collectorCollectsToGivenCollection 0

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0