Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.003
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.02
info.magnolia.resourceloader.util 11 0 0 0 100% 0.012
info.magnolia.resourceloader.file 34 0 0 0 100% 20.2
info.magnolia.dirwatch 11 0 0 0 100% 34.341
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.035
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.759
info.magnolia.resourceloader.jcr 22 0 0 0 100% 15.219

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

Class Tests Errors Failures Skipped Success Rate Time
ResourceTreeWalkerTest 2 0 0 0 100% 0.012
FunctionsTest 7 0 0 0 100% 0
PredicatedResourceVisitorTest 2 0 0 0 100% 0

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
FileSystemResourceOriginTest 20 0 0 0 100% 0.132
ExclusionsFilterTest 8 0 0 0 100% 0.001
FileWatcherCallbackTest 6 0 0 0 100% 20.067

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.672
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.087

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginTest 13 0 0 0 100% 0.025
JcrResourceOriginRepositoryTest 9 0 0 0 100% 15.194

Test Cases

[Summary] [Package List] [Test Cases]

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.011
listChildrenAggregatesCorrectly 0.002
isEditableIsThatOfCorrectLayer 0.001
hotfixDeletionTriggersResourceModification 0.001
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0.001
lastModifiedIsThatOfCorrectLayer 0.002
navigationThroughParentAggregatesCorrectly 0.001
watchForChangesForwardsLayeredResourceToVisitor 0.004
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.002
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0.001
newValidatesThatPathsMatch 0.002
byPathFindsResourcesInTheDifferentLayers 0
newValidatesThatTypeMatch 0
hasPathFindsResourcesInTheDifferentLayers 0.006
getRootLayersAllOrigins 0

ResourceTreeWalkerTest

simpleVisit 0.008
canVisitJustAFileCauseWhyNot 0.004

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.091
lastModifiedReturnsTimeOfLastModification 0.026
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.02
getRootReturnsResourceForRoot 0.028
communicatesFileModification 0.094
communicatesFileRemoval 0.056
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.015
openInputStreamForResource 0.016
excludesNativeLibsAndOtherFunkyThingsByDefault 0.047
getByPathReturnsResourceForFile 0.025
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.019
getParentReturnsNullForRootPath 0.018
getParentReturnsTheParentFolderForPathToFolder 0.015
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.016
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.051
watchForChangesTriggersNothingIfServiceNotEnabled 0.016
getParentReturnsTheParentFolderForPathToFile 0.015
mgnlResourcesAreExcludedByDefault 0.016
reflectionsURLsFiltersNativeLibsOut 0.019
communicatesFileAddition 0.035
listChildrenReturnsVirtualDirectoryStructure 0.017
traverseWithCallsFunctionForEveryResource 0.017

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.217
createdFileInNewDirectoryIsDetected 6.011
allowsDirectoryWatchingViaSymbolicLinks 2.008
watchingFileIsNotPossible 0.005
filterPredicateDiscardsIgnoredElementsRegistration 6.017
supportsMultipleRootFolders 4.006
modifiedFileIsDetected 4.011
exceptionsThrownByCallbacksDontKillTheSystem 4.02
deletedFileIsDetected 4.01
createdFileIsDetected 2.012
subTreeIsSkippedWhenFileCantBeRead 2.024

DummyResourceOriginTest

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

FunctionsTest

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

FileSystemResourceOriginTest

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

ExclusionsFilterTest

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

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.003
attachAndIndex 0
identifiesChildrenCorrectly 0

JcrResourceOriginTest

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

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.016
whatsInRoot 0.022
listRootChildren 0.015
mgnlResourcesAreAvailableAtRoot 0.017
parentIsCorrect 0.017

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.016
communicatesFolderCreationAndDeletion 4.01
movedDirectoryIsDetected 4.013
subTreeIsSkippedWhenFileCantBeRead 2.011
watchedPathFilterDiscardsIgnoredElementsRegistration 0.003
communicatesAllPossibleFileChangeEvents 6.014

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.645
communicatesFileResourceAddition 1.474
communicatesResourceFolderDeletionWithContents 1.382
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.368
communicatesFileResourceDeletion 1.312
communicatesFileResourceModification 1.266
communicatesResourceFolderAdditionWithContents 1.309
ignoreChangesWhenResourceIsBypassed 2.241
bypassSetToTrueTreatedAsResourceRemoval 1.197