Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
81 0 0 0 100% 0.905 s

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
org.onehippo.forge.exdocpicker.impl.field.tree 27 0 0 0 100% 0.036 s
org.onehippo.forge.exdocpicker.api 4 0 0 0 100% 0.002 s
org.onehippo.forge.exdocpicker.impl 42 0 0 0 100% 0.748 s
org.onehippo.forge.exdocpicker.impl.field 8 0 0 0 100% 0.119 s

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

org.onehippo.forge.exdocpicker.impl.field.tree

- Class Tests Errors Failures Skipped Success Rate Time
TreeItemExpansionSetTest 21 0 0 0 100% 0.011 s
ExternalTreeItemDataProviderTest 6 0 0 0 100% 0.025 s

org.onehippo.forge.exdocpicker.api

- Class Tests Errors Failures Skipped Success Rate Time
ExternalDocumentDisplayServiceTest 1 0 0 0 100% 0.001 s
ExternalDocumentTreeServiceTest 3 0 0 0 100% 0.001 s

org.onehippo.forge.exdocpicker.impl

- Class Tests Errors Failures Skipped Success Rate Time
SimpleExternalDocumentCollectionDataProviderTest 4 0 0 0 100% 0.485 s
SimpleExternalDocumentServiceContextTest 10 0 0 0 100% 0.241 s
SimpleExternalDocumentCollectionTest 19 0 0 0 100% 0.009 s
ServiceDelegatingExternalDocumentServiceFacadeTest 9 0 0 0 100% 0.013 s

org.onehippo.forge.exdocpicker.impl.field

- Class Tests Errors Failures Skipped Success Rate Time
AbstractExternalDocumentFieldBrowserDialogTest 8 0 0 0 100% 0.119 s

Test Cases

[Summary] [Package List] [Test Cases]

AbstractExternalDocumentFieldBrowserDialogTest

onOk_multiSelectionMode_addsOnlyNewPickedItems 0.105 s
onOk_singleSelectionMode_nothingPicked_clearsSelectionAndStillNotifiesFacade 0.002 s
isSingleSelectionMode_singleConfigValueMixedCase_returnsTrue 0.002 s
onOk_singleSelectionMode_keepsOnlyLastPickedItem 0.002 s
onOk_multiSelectionMode_noNewItemsPicked_doesNotNotifyFacade 0.002 s
isSingleSelectionMode_unsetConfig_defaultsToMultiple 0.002 s
isSingleSelectionMode_singleConfigValue_returnsTrue 0.001 s
isSingleSelectionMode_multipleConfigValue_returnsFalse 0.002 s

ExternalDocumentDisplayServiceTest

isDocumentSelectable_defaultsToTrue 0 s

TreeItemExpansionSetTest

toArrayWithArgument_throwsUnsupportedOperationException 0.001 s
iterator_throwsUnsupportedOperationException 0 s
add_whenNotInversed_duplicateItem_returnsFalse 0.001 s
containsAll_throwsUnsupportedOperationException 0.001 s
expandAll_setsInversedAndClearsItems_soEveryItemIsContained 0 s
isEmpty_throwsUnsupportedOperationException 0.001 s
size_throwsUnsupportedOperationException 0 s
remove_whenNotInversed_absentItem_returnsFalse 0.001 s
collapseAll_clearsItemsAndUninverts_soNoItemIsContained 0 s
add_whenInversed_itemNotYetExcepted_returnsFalseAndLeavesItContained 0.001 s
remove_whenInversed_marksItemAsExceptionAndReturnsTrue 0 s
add_whenNotInversed_addsItemAndMakesItContained 0.001 s
retainAll_throwsUnsupportedOperationException 0 s
clear_throwsUnsupportedOperationException 0 s
addAll_throwsUnsupportedOperationException 0 s
removeAll_throwsUnsupportedOperationException 0 s
newSet_notInversedByDefault_containsReturnsFalseForAnyItem 0 s
add_whenInversed_reAddsPreviouslyExceptedItem_returnsTrueAndRestoresContainment 0 s
toArray_throwsUnsupportedOperationException 0 s
remove_whenInversed_duplicateException_returnsFalse 0 s
remove_whenNotInversed_presentItem_removesItAndReturnsTrue 0 s

SimpleExternalDocumentCollectionDataProviderTest

iterator_delegatesToCollectionWithFirstAndCount 0.473 s
detach_doesNotThrow 0.002 s
size_delegatesToCollectionGetSize 0.002 s
model_wrapsObjectInModel 0.002 s

SimpleExternalDocumentServiceContextTest

getPluginContext_returnsConstructorArgument 0.223 s
getAttribute_unknownName_returnsNull 0.003 s
setAttribute_withNullValue_reAddsKeyWithNullValueInsteadOfRemovingIt 0.002 s
removeAttribute_presentName_removesIt 0.002 s
getAttributeNames_reflectsStoredAttributes 0.001 s
setAttribute_thenGetAttribute_returnsStoredValue 0.001 s
setAttribute_nullName_throwsIllegalArgumentException 0.001 s
getPlugin_returnsConstructorArgument 0.001 s
getPluginConfig_returnsConstructorArgument 0.001 s
getContextModel_returnsConstructorArgument 0.001 s

ExternalDocumentTreeServiceTest

getChildren_defaultsToEmptyIteratorNotNull 0.001 s
getParent_defaultsToNull 0 s
hasChildren_defaultsToFalse 0 s

SimpleExternalDocumentCollectionTest

iterator_returnsEntriesInInsertionOrder 0.001 s
iteratorWithRange_zeroCount_returnsNoEntries 0.001 s
addAll_appendsEveryEntryFromGivenCollection 0 s
toArray_returnsEveryEntryInInsertionOrder 0 s
contains_missingEntry_returnsFalse 0.001 s
indexOf_missingEntry_returnsNegativeOne 0 s
iteratorWithRange_offsetAndCount_returnsBoundedSubset 0 s
contains_existingEntry_returnsTrue 0 s
noArgConstructor_createsEmptyCollection 0 s
addAtIndex_insertsEntryAtGivenPosition 0 s
clone_returnsIndependentCollectionWithSameEntries 0 s
iteratorWithRange_countExceedingRemainingEntries_stopsAtLastEntry 0 s
remove_missingEntry_leavesCollectionUnchanged 0 s
listConstructor_withSource_copiesEntries 0 s
clear_removesAllEntries 0.001 s
remove_existingEntry_removesItAndDecreasesSize 0 s
add_appendsEntryAndIncreasesSize 0 s
listConstructor_withNullSource_createsEmptyCollection 0 s
indexOf_existingEntry_returnsItsPosition 0 s

ServiceDelegatingExternalDocumentServiceFacadeTest

getDocumentIconLink_delegatesToLookedUpService 0.002 s
searchExternalDocuments_delegatesToLookedUpService 0.001 s
serviceIdLookup_isCachedAfterFirstResolution_configReadOnlyOnce 0.002 s
getFieldExternalDocuments_delegatesToLookedUpService 0.001 s
setFieldExternalDocuments_delegatesToLookedUpService 0.001 s
getDocumentDescription_delegatesToLookedUpService 0.001 s
serviceIdLookup_nullConfigValue_throwsIllegalStateExceptionAndNeverLooksUpService 0 s
getDocumentTitle_delegatesToLookedUpService 0.001 s
serviceIdLookup_blankConfigValue_throwsIllegalStateException 0.001 s

ExternalTreeItemDataProviderTest

getRoots_delegatesToRootTreeItemsIterator 0.017 s
detach_doesNotThrow 0.001 s
hasChildren_delegatesToTreeService 0.003 s
getParent_delegatesToTreeService 0.001 s
getChildren_delegatesToTreeService 0.001 s
model_wrapsItemInModel 0.001 s