Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
124 0 0 0 100% 52.97

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 27 0 0 0 100% 0.927
info.magnolia.dirwatch 7 0 0 0 100% 22.264
info.magnolia.resourceloader.file 30 0 0 0 100% 14.163
info.magnolia.resourceloader.layered 15 0 0 0 100% 0.02
info.magnolia.resourceloader.jcr 22 0 0 0 100% 15.557
info.magnolia.resourceloader.classpath.service.impl.base 3 0 0 0 100% 0.005
info.magnolia.resourceloader.util 11 0 0 0 100% 0.002
info.magnolia.resourceloader.dummy 9 0 0 0 100% 0.032

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.resourceloader.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClasspathResourceOriginTest 22 0 0 0 100% 0.844
LegacyClasspathResourceOriginTest 5 0 0 0 100% 0.083

info.magnolia.dirwatch

Class Tests Errors Failures Skipped Success Rate Time
DirectoryWatcherTest 7 0 0 0 100% 22.264

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.1
FileWatcherCallbackTest 3 0 0 0 100% 14.058

info.magnolia.resourceloader.layered

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

info.magnolia.resourceloader.jcr

Class Tests Errors Failures Skipped Success Rate Time
JcrResourceOriginRepositoryTest 9 0 0 0 100% 15.534
JcrResourceOriginTest 13 0 0 0 100% 0.023

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

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

Test Cases

[Summary] [Package List] [Test Cases]

DirectoryWatcherTest

createdFileInNewDirectoryIsDetected 4.178
watchingFileIsNotPossible 0.003
supportsMultipleRootFolders 4.022
modifiedFileIsDetected 4.013
exceptionsThrownByCallbacksDontKillTheSystem 4.014
deletedFileIsDetected 4.015
createdFileIsDetected 2.019

ClasspathResourceOriginTest

mgnlBootstrapWhateverFoldersAreExcluded 0.121
lastModifiedReturnsTimeOfLastModification 0.06
hasPathReturnsTrueForExistingResourcesAndTheirParents 0.029
getRootReturnsResourceForRoot 0.039
communicatesFileModification 0.119
communicatesFileRemoval 0.063
getByPathReturnsResourceForDirectoriesIfPatternMatchesDirectories 0.016
openInputStreamForResource 0.015
excludesNativeLibsAndOtherFunkyThingsByDefault 0.112
getByPathReturnsResourceForFile 0.017
getByPathThrowsExceptionWhenPathDoesNotExistOrDoesNotMatchPattern 0.027
getParentReturnsNullForRootPath 0.016
getParentReturnsTheParentFolderForPathToFolder 0.016
listChildrenThrowsExceptionWhenGivenPathIsAFile 0.014
resourceShouldBeRemovedFromCacheIfNotPresentAnymore 0.05
watchForChangesTriggersNothingIfServiceNotEnabled 0.015
getParentReturnsTheParentFolderForPathToFile 0.014
mgnlResourcesAreExcludedByDefault 0.014
reflectionsURLsFiltersNativeLibsOut 0.014
communicatesFileAddition 0.034
listChildrenReturnsVirtualDirectoryStructure 0.024
traverseWithCallsFunctionForEveryResource 0.015

LegacyClasspathResourceOriginTest

mgnlResourcesAreNotAvailableAtMgnlResources 0.014
whatsInRoot 0.018
listRootChildren 0.022
mgnlResourcesAreAvailableAtRoot 0.016
parentIsCorrect 0.013

ClasspathEntriesResolverTest

identifiesRootCorrectly 0.004
attachAndIndex 0.001
identifiesChildrenCorrectly 0

DummyResourceOriginTest

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

ExclusionsFilterTest

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

FileSystemResourceOriginTest

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

FileWatcherCallbackTest

communicatesFolderCreationAndDeletion 4.018
movedDirectoryIsDetected 4.018
communicatesAllPossibleFileChangeEvents 6.022

JcrResourceOriginRepositoryTest

bypassSetToFalseTreatedAsResourceAddition 2.915
communicatesFileResourceAddition 1.55
communicatesResourceFolderDeletionWithContents 1.379
ignoreChangesOnSharedSystemNodesWhenWatchingResourcesRoot 2.309
communicatesFileResourceDeletion 1.291
communicatesFileResourceModification 1.315
communicatesResourceFolderAdditionWithContents 1.27
ignoreChangesWhenResourceIsBypassed 2.265
bypassSetToTrueTreatedAsResourceRemoval 1.24

JcrResourceOriginTest

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

LayeredResourceOriginTest

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

FunctionsTest

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

PredicatedResourceVisitorTest

traversalAppliesIndependentlyFromFunction 0
traversalPredicateIgnoresRoot 0

ResourceTreeWalkerTest

simpleVisit 0.001
canVisitJustAFileCauseWhyNot 0