Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
125 0 0 0 100% 53.189

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.025
info.magnolia.resourceloader.util 11 0 0 0 100% 0.001
info.magnolia.resourceloader.file 30 0 0 0 100% 14.107
info.magnolia.dirwatch 8 0 0 0 100% 24.271
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.018
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.733
info.magnolia.resourceloader.jcr 22 0 0 0 100% 14.029

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

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 7 0 0 0 100% 0.005
FileSystemResourceOriginTest 20 0 0 0 100% 0.081
FileWatcherCallbackTest 3 0 0 0 100% 14.021

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherTest 8 0 0 0 100% 24.271

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.651
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.082

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 14.012
JcrResourceOriginTest 13 0 0 0 100% 0.017

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 4.164
allowsDirectoryWatchingViaSymbolicLinks 2.049
watchingFileIsNotPossible 0.002
supportsMultipleRootFolders 4.01
modifiedFileIsDetected 4.018
exceptionsThrownByCallbacksDontKillTheSystem 4.014
deletedFileIsDetected 4.011
createdFileIsDetected 2.003

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.082
lastModifiedReturnsTimeOfLastModification 0.062
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.021
getRootReturnsResourceForRoot 0.031
communicatesFileModification 0.084
communicatesFileRemoval 0.052
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.013
openInputStreamForResource 0.014
excludesNativeLibsAndOtherFunkyThingsByDefault 0.047
getByPathReturnsResourceForFile 0.014
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.022
getParentReturnsNullForRootPath 0.018
getParentReturnsTheParentFolderForPathToFolder 0.013
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.012
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.045
watchForChangesTriggersNothingIfServiceNotEnabled 0.013
getParentReturnsTheParentFolderForPathToFile 0.015
mgnlResourcesAreExcludedByDefault 0.013
reflectionsURLsFiltersNativeLibsOut 0.014
communicatesFileAddition 0.032
listChildrenReturnsVirtualDirectoryStructure 0.016
traverseWithCallsFunctionForEveryResource 0.018

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.013
whatsInRoot 0.02
listRootChildren 0.018
mgnlResourcesAreAvailableAtRoot 0.018
parentIsCorrect 0.013

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.005
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.008
movedDirectoryIsDetected 4.005
communicatesAllPossibleFileChangeEvents 6.008

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.293
communicatesFileResourceAddition 1.319
communicatesResourceFolderDeletionWithContents 1.271
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.235
communicatesFileResourceDeletion 1.208
communicatesFileResourceModification 1.197
communicatesResourceFolderAdditionWithContents 1.164
ignoreChangesWhenResourceIsBypassed 2.159
bypassSetToTrueTreatedAsResourceRemoval 1.166

JcrResourceOriginTest

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

LayeredResourceOriginTest

traverseWithReturnsResourcesFromAllLayersInAlphabeticalOrder 0.005
listChildrenAggregatesCorrectly 0.001
isEditableIsThatOfCorrectLayer 0.001
traverseWithCanFilterWhatTheFunctionIsAppliedOnIndependentlyOfTheTraversal 0.001
lastModifiedIsThatOfCorrectLayer 0.001
navigationThroughParentAggregatesCorrectly 0
watchForChangesForwardsLayeredResourceToVisitor 0.005
doNotFailIfOneResourceIsFileAndSecondIsDirectoryIfBothHaveSamePath 0.001
resourceChangeHandlerRegistrationControlsLayerRegistrations 0.001
byPathThrowsExceptionIfResourceIsNowhereToBeFound 0.001
newValidatesThatPathsMatch 0
byPathFindsResourcesInTheDifferentLayers 0
newValidatesThatTypeMatch 0
hasPathFindsResourcesInTheDifferentLayers 0
getRootLayersAllOrigins 0.001

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