Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
132 0 0 0 100% 65.558

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.025
info.magnolia.resourceloader.util 11 0 0 0 100% 0.004
info.magnolia.resourceloader.file 33 0 0 0 100% 16.141
info.magnolia.dirwatch 11 0 0 0 100% 34.247
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.022
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.656
info.magnolia.resourceloader.jcr 22 0 0 0 100% 14.459

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.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.001
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.055

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.588
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.443
JcrResourceOriginTest 13 0 0 0 100% 0.016

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.13
createdFileInNewDirectoryIsDetected 6.017
allowsDirectoryWatchingViaSymbolicLinks 2.018
watchingFileIsNotPossible 0.002
filterPredicateDiscardsIgnoredElementsRegistration 6.01
supportsMultipleRootFolders 4.007
modifiedFileIsDetected 4.017
exceptionsThrownByCallbacksDontKillTheSystem 4.01
deletedFileIsDetected 4.007
createdFileIsDetected 2.015
subTreeIsSkippedWhenFileCantBeRead 2.014

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.08
lastModifiedReturnsTimeOfLastModification 0.025
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.018
getRootReturnsResourceForRoot 0.03
communicatesFileModification 0.075
communicatesFileRemoval 0.049
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.013
openInputStreamForResource 0.013
excludesNativeLibsAndOtherFunkyThingsByDefault 0.048
getByPathReturnsResourceForFile 0.013
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.017
getParentReturnsNullForRootPath 0.017
getParentReturnsTheParentFolderForPathToFolder 0.016
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.014
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.044
watchForChangesTriggersNothingIfServiceNotEnabled 0.013
getParentReturnsTheParentFolderForPathToFile 0.016
mgnlResourcesAreExcludedByDefault 0.014
reflectionsURLsFiltersNativeLibsOut 0.014
communicatesFileAddition 0.03
listChildrenReturnsVirtualDirectoryStructure 0.015
traverseWithCallsFunctionForEveryResource 0.014

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.013
whatsInRoot 0.016
listRootChildren 0.012
mgnlResourcesAreAvailableAtRoot 0.015
parentIsCorrect 0.012

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.01
movedDirectoryIsDetected 4.013
subTreeIsSkippedWhenFileCantBeRead 2.016
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.013

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.503
communicatesFileResourceAddition 1.361
communicatesResourceFolderDeletionWithContents 1.283
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.277
communicatesFileResourceDeletion 1.238
communicatesFileResourceModification 1.212
communicatesResourceFolderAdditionWithContents 1.2
ignoreChangesWhenResourceIsBypassed 2.199
bypassSetToTrueTreatedAsResourceRemoval 1.17

JcrResourceOriginTest

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

LayeredResourceOriginTest

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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0.001

ResourceTreeWalkerTest

simpleVisit 0.002
canVisitJustAFileCauseWhyNot 0