Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
131 0 0 0 100% 63.351

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.023
info.magnolia.resourceloader.util 11 0 0 0 100% 0.002
info.magnolia.resourceloader.file 33 0 0 0 100% 16.135
info.magnolia.dirwatch 11 0 0 0 100% 32.259
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.036
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.66
info.magnolia.resourceloader.jcr 22 0 0 0 100% 14.231

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

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.006
FileSystemResourceOriginTest 20 0 0 0 100% 0.08
FileWatcherCallbackTest 5 0 0 0 100% 16.049

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.596
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.064

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.215
JcrResourceOriginTest 13 0 0 0 100% 0.016

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.117
createdFileInNewDirectoryIsDetected 6.018
allowsDirectoryWatchingViaSymbolicLinks 2.019
watchingFileIsNotPossible 0.002
filterPredicateDiscardsIgnoredElementsRegistration 4.016
supportsMultipleRootFolders 4.015
modifiedFileIsDetected 4.008
exceptionsThrownByCallbacksDontKillTheSystem 4.013
deletedFileIsDetected 4.016
createdFileIsDetected 2.017
subTreeIsSkippedWhenFileCantBeRead 2.018

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.077
lastModifiedReturnsTimeOfLastModification 0.024
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.017
getRootReturnsResourceForRoot 0.027
communicatesFileModification 0.088
communicatesFileRemoval 0.054
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.013
openInputStreamForResource 0.013
excludesNativeLibsAndOtherFunkyThingsByDefault 0.045
getByPathReturnsResourceForFile 0.014
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.016
getParentReturnsNullForRootPath 0.017
getParentReturnsTheParentFolderForPathToFolder 0.015
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.014
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.045
watchForChangesTriggersNothingIfServiceNotEnabled 0.014
getParentReturnsTheParentFolderForPathToFile 0.012
mgnlResourcesAreExcludedByDefault 0.016
reflectionsURLsFiltersNativeLibsOut 0.014
communicatesFileAddition 0.03
listChildrenReturnsVirtualDirectoryStructure 0.017
traverseWithCallsFunctionForEveryResource 0.014

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.013
whatsInRoot 0.015
listRootChildren 0.011
mgnlResourcesAreAvailableAtRoot 0.014
parentIsCorrect 0.011

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0.001

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.018
singleOriginFakesParents 0
pathsMustStartWithLeadingSlash 0.001
nameIsStupidSubstringButThisIsGoodEnoughHere 0
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.001
excludeWithPattern 0
excludedDirectoryNameIsCompleteMatch 0.001
excludedDirectoryAreExcludedEveryWhereNotJustInRoot 0

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.018
movedDirectoryIsDetected 4.012
subTreeIsSkippedWhenFileCantBeRead 2.009
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.007

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.344
communicatesFileResourceAddition 1.329
communicatesResourceFolderDeletionWithContents 1.288
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.235
communicatesFileResourceDeletion 1.228
communicatesFileResourceModification 1.218
communicatesResourceFolderAdditionWithContents 1.191
ignoreChangesWhenResourceIsBypassed 2.198
bypassSetToTrueTreatedAsResourceRemoval 1.184

JcrResourceOriginTest

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

LayeredResourceOriginTest

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