Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
130 0 0 0 100% 67.312

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.017
info.magnolia.resourceloader.util 11 0 0 0 100% 0.002
info.magnolia.resourceloader.file 32 0 0 0 100% 16.155
info.magnolia.dirwatch 11 0 0 0 100% 34.274
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.035
info.magnolia.resourceloader.classpath 27 0 0 0 100% 0.863
info.magnolia.resourceloader.jcr 22 0 0 0 100% 15.961

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

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
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 5 0 0 0 100% 16.069

info.magnolia.dirwatch

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

info.magnolia.resourceloader.layered

Class Tests Errors Failures Skipped Success Rate Time
LayeredResourceOriginTest 15 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.793
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.07

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 15.943
JcrResourceOriginTest 13 0 0 0 100% 0.018

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

filterPredicateDiscardsEventsForIgnoredElements 0.146
createdFileInNewDirectoryIsDetected 6.012
allowsDirectoryWatchingViaSymbolicLinks 2.012
watchingFileIsNotPossible 0.003
filterPredicateDiscardsIgnoredElementsRegistration 6.019
supportsMultipleRootFolders 4.011
modifiedFileIsDetected 4.015
exceptionsThrownByCallbacksDontKillTheSystem 4.011
deletedFileIsDetected 4.014
createdFileIsDetected 2.014
subTreeIsSkippedWhenFileCantBeRead 2.017

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.143
lastModifiedReturnsTimeOfLastModification 0.063
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.019
getRootReturnsResourceForRoot 0.041
communicatesFileModification 0.094
communicatesFileRemoval 0.069
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.015
openInputStreamForResource 0.014
excludesNativeLibsAndOtherFunkyThingsByDefault 0.056
getByPathReturnsResourceForFile 0.019
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.022
getParentReturnsNullForRootPath 0.022
getParentReturnsTheParentFolderForPathToFolder 0.019
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.018
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.051
watchForChangesTriggersNothingIfServiceNotEnabled 0.013
getParentReturnsTheParentFolderForPathToFile 0.014
mgnlResourcesAreExcludedByDefault 0.013
reflectionsURLsFiltersNativeLibsOut 0.014
communicatesFileAddition 0.032
listChildrenReturnsVirtualDirectoryStructure 0.02
traverseWithCallsFunctionForEveryResource 0.022

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.015
whatsInRoot 0.017
listRootChildren 0.011
mgnlResourcesAreAvailableAtRoot 0.015
parentIsCorrect 0.012

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.005
attachAndIndex 0
identifiesChildrenCorrectly 0

DummyResourceOriginTest

singleOriginPassesGivenReaderOnlyToThatOneResource 0.014
singleOriginFakesParents 0.001
pathsMustStartWithLeadingSlash 0
nameIsStupidSubstringButThisIsGoodEnoughHere 0
singleOriginPassesGivenStreamOnlyToThatOneResource 0.001
parentsMustBeSpecified 0
traverseWithAppliesPredicateAndFunctionOnBothFilesAndFoldersButPredicateIsNotUsedToDriveTraversal 0
pathsAreInInsertionOrder 0
parsesPathsAndInfersParentChildRelationShipsCorrectly 0.001

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.009
movedDirectoryIsDetected 4.01
subTreeIsSkippedWhenFileCantBeRead 2.023
watchedPathFilterDiscardsIgnoredElementsRegistration 0.009
communicatesAllPossibleFileChangeEvents 6.018

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 3.076
communicatesFileResourceAddition 1.506
communicatesResourceFolderDeletionWithContents 1.435
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.437
communicatesFileResourceDeletion 1.317
communicatesFileResourceModification 1.303
communicatesResourceFolderAdditionWithContents 1.268
ignoreChangesWhenResourceIsBypassed 2.299
bypassSetToTrueTreatedAsResourceRemoval 1.302

JcrResourceOriginTest

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

LayeredResourceOriginTest

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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0