Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
133 0 0 0 100% 67.371

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.004
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.024
info.magnolia.resourceloader.util 11 0 0 0 100% 0.002
info.magnolia.resourceloader.file 34 0 0 0 100% 20.155
info.magnolia.dirwatch 11 0 0 0 100% 32.273
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.023
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.652
info.magnolia.resourceloader.jcr 22 0 0 0 100% 14.238

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

info.magnolia.resourceloader.dummy

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

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 8 0 0 0 100% 0.005
FileSystemResourceOriginTest 20 0 0 0 100% 0.086
FileWatcherCallbackTest 6 0 0 0 100% 20.064

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

Class Tests Errors Failures Skipped Success Rate Time
LayeredResourceOriginTest 16 0 0 0 100% 0.023

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.587
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.065

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.22
JcrResourceOriginTest 13 0 0 0 100% 0.018

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.138
createdFileInNewDirectoryIsDetected 4.012
allowsDirectoryWatchingViaSymbolicLinks 2.015
watchingFileIsNotPossible 0.002
filterPredicateDiscardsIgnoredElementsRegistration 6.017
supportsMultipleRootFolders 4.008
modifiedFileIsDetected 4.016
exceptionsThrownByCallbacksDontKillTheSystem 4.024
deletedFileIsDetected 4.016
createdFileIsDetected 2.012
subTreeIsSkippedWhenFileCantBeRead 2.013

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.077
lastModifiedReturnsTimeOfLastModification 0.027
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.017
getRootReturnsResourceForRoot 0.024
communicatesFileModification 0.085
communicatesFileRemoval 0.046
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.014
openInputStreamForResource 0.013
excludesNativeLibsAndOtherFunkyThingsByDefault 0.043
getByPathReturnsResourceForFile 0.014
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.023
getParentReturnsNullForRootPath 0.016
getParentReturnsTheParentFolderForPathToFolder 0.013
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.013
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.046
watchForChangesTriggersNothingIfServiceNotEnabled 0.013
getParentReturnsTheParentFolderForPathToFile 0.013
mgnlResourcesAreExcludedByDefault 0.014
reflectionsURLsFiltersNativeLibsOut 0.014
communicatesFileAddition 0.033
listChildrenReturnsVirtualDirectoryStructure 0.015
traverseWithCallsFunctionForEveryResource 0.014

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.013
whatsInRoot 0.015
listRootChildren 0.011
mgnlResourcesAreAvailableAtRoot 0.014
parentIsCorrect 0.012

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.018
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0
nameIsStupidSubstringButThisIsGoodEnoughHere 0.001
singleOriginPassesGivenStreamOnlyToThatOneResource 0.001
parentsMustBeSpecified 0.001
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0
pathsAreInInsertionOrder 0.001
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.001

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.009
communicatesFolderCreationAndDeletion 4.009
movedDirectoryIsDetected 4.018
subTreeIsSkippedWhenFileCantBeRead 2.008
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.017

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.381
communicatesFileResourceAddition 1.33
communicatesResourceFolderDeletionWithContents 1.265
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.245
communicatesFileResourceDeletion 1.217
communicatesFileResourceModification 1.235
communicatesResourceFolderAdditionWithContents 1.191
ignoreChangesWhenResourceIsBypassed 2.185
bypassSetToTrueTreatedAsResourceRemoval 1.171

JcrResourceOriginTest

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

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.007
listChildrenAggregatesCorrectly 0.002
isEditableIsThatOfCorrectLayer 0.002
hotfixDeletionTriggersResourceModification 0.001
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0
lastModifiedIsThatOfCorrectLayer 0.002
navigationThroughParentAggregatesCorrectly 0
watchForChangesForwardsLayeredResourceToVisitor 0.004
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.002
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0
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
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0.001