Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.016
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.069
info.magnolia.resourceloader.util 11 0 0 0 100% 0.008
info.magnolia.resourceloader.file 34 0 0 0 100% 20.338
info.magnolia.dirwatch 11 0 0 0 100% 34.802
info.magnolia.resourceloader.layered 16 0 0 0 100% 0.08
info.magnolia.resourceloader.classpath 27 0 0 0 100% 2.014
info.magnolia.resourceloader.jcr 22 0 0 0 100% 24.163

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

info.magnolia.resourceloader.dummy

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

info.magnolia.resourceloader.util

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

info.magnolia.resourceloader.file

Class Tests Errors Failures Skipped Success Rate Time
ExclusionsFilterTest 8 0 0 0 100% 0.014
FileSystemResourceOriginTest 20 0 0 0 100% 0.247
FileWatcherCallbackTest 6 0 0 0 100% 20.077

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 1.795
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.219

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 24.11
JcrResourceOriginTest 13 0 0 0 100% 0.053

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.639
createdFileInNewDirectoryIsDetected 6.009
allowsDirectoryWatchingViaSymbolicLinks 2.015
watchingFileIsNotPossible 0.006
filterPredicateDiscardsIgnoredElementsRegistration 6.02
supportsMultipleRootFolders 4.015
modifiedFileIsDetected 4.019
exceptionsThrownByCallbacksDontKillTheSystem 4.039
deletedFileIsDetected 4.009
createdFileIsDetected 2.014
subTreeIsSkippedWhenFileCantBeRead 2.017

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.227
lastModifiedReturnsTimeOfLastModification 0.084
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.053
getRootReturnsResourceForRoot 0.056
communicatesFileModification 0.381
communicatesFileRemoval 0.153
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.045
openInputStreamForResource 0.053
excludesNativeLibsAndOtherFunkyThingsByDefault 0.126
getByPathReturnsResourceForFile 0.056
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.039
getParentReturnsNullForRootPath 0.042
getParentReturnsTheParentFolderForPathToFolder 0.035
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.029
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.095
watchForChangesTriggersNothingIfServiceNotEnabled 0.035
getParentReturnsTheParentFolderForPathToFile 0.036
mgnlResourcesAreExcludedByDefault 0.041
reflectionsURLsFiltersNativeLibsOut 0.041
communicatesFileAddition 0.072
listChildrenReturnsVirtualDirectoryStructure 0.051
traverseWithCallsFunctionForEveryResource 0.045

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.048
whatsInRoot 0.053
listRootChildren 0.037
mgnlResourcesAreAvailableAtRoot 0.042
parentIsCorrect 0.039

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.016
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.051
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0.003
nameIsStupidSubstringButThisIsGoodEnoughHere 0.001
singleOriginPassesGivenStreamOnlyToThatOneResource 0.006
parentsMustBeSpecified 0.002
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0.001
pathsAreInInsertionOrder 0.002
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.002

ExclusionsFilterTest

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

FileSystemResourceOriginTest

newResourceReturnsFSRPForPathToFolder 0.021
getByPathReturnsResourceForGivenStringPath 0.006
defaultExcludeListPatternIsCorrect 0.008
excludesAreAppliedEverywhere 0.062
listChildrenDoesntIncludeGivenFolder 0.012
newResourceReturnsFSRPForAbsolutePathToFile 0.013
lastModifiedReturnsTimeOfLastModification 0.006
getRootWrapsRootPathInResource 0.012
traverseWithCallsFunctionForEveryMatchingResource 0.019
openStreamReturnStreamForGivenPath 0.01
getParentReturnsNullForRootPath 0.006
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.011
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.01
exclusionOfDirectoriesFromPropertyFileWorks 0.007
nullExclusionPropertyFallbacksToDefault 0.006
newResourceThrowsExceptionWhenResourceIsNotBelowRoot 0.007
listChildrenReturnsDirectChildren 0.013
newResourceThrowsExceptionWhenPathDoesNotExist 0.008
getByPathThrowsExceptionForNonExistingPath 0.005
newResourceReturnsFSRPForRelativePathToFile 0.005

FileWatcherCallbackTest

allowsDirectoryWatchingViaSymbolicLinks 4.013
communicatesFolderCreationAndDeletion 4.013
movedDirectoryIsDetected 4.014
subTreeIsSkippedWhenFileCantBeRead 2.016
watchedPathFilterDiscardsIgnoredElementsRegistration 0.004
communicatesAllPossibleFileChangeEvents 6.017

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 4.539
communicatesFileResourceAddition 1.918
communicatesResourceFolderDeletionWithContents 2.372
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 3.246
communicatesFileResourceDeletion 2.453
communicatesFileResourceModification 2.274
communicatesResourceFolderAdditionWithContents 1.717
ignoreChangesWhenResourceIsBypassed 3.133
bypassSetToTrueTreatedAsResourceRemoval 2.458

JcrResourceOriginTest

getByPathThrowsExceptionWhenPathDoesNotExist 0.01
lastModifiedReturnsTimeOfLastModification 0.012
getRootReturnsResourceForRoot 0.005
traverseWithCallsFunctionForEveryMatchingResource 0.01
getByPathReturnsResourceForPathToDirectory 0.001
listChildrenReturnsChildren 0.004
openInputStreamForTextResource 0.007
getParentReturnsNullForRootPath 0
getParentReturnsTheParentFolderForPathToFolder 0.001
hasPathTellsIfOriginCanProvideAResourceForTheGivenPath 0.001
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.001
getParentReturnsTheParentFolderForPathToFile 0
getByPathReturnsResourceForPathToFile 0.001

LayeredResourceOriginTest

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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0.001
traversalPredicateIgnoresRoot 0.001

ResourceTreeWalkerTest

simpleVisit 0.004
canVisitJustAFileCauseWhyNot 0