Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
CurrentReferenceDocumentReferenceResolver | 45 | 3 | 0% | 2 | 0 | 1.0100% |
Class CurrentReferenceDocumentReferenceResolver |
Line # 45 |
3 |
0% |
2 |
0 |
1.0100% |
---|---|---|---|---|---|---|
resolve(EntityReference,Object) : DocumentReference resolve(EntityReference,Object) : DocumentReference | 5151 | 3.03 | 0.00% | 2.02 | 0.00 | 1.0 1.0100% |
1.0
|
com.xpn.xwiki.internal.objects.classes.XClassMigratorListenerTest.migratePropertycom.xpn.xwiki.internal.objects.classes.XClassMigratorListenerTest.migrateProperty | 1PASS | ||
1.0
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectField | 1PASS | ||
1.0
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersAttachmentcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersAttachment | 1PASS | ||
1.0
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldBeforeAttachmentcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldBeforeAttachment | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentButNonTerminalFromURLcom.xpn.xwiki.web.CreateActionTest.newDocumentButNonTerminalFromURL | 1PASS | ||
0.6666667
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeONDemandorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeONDemand | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedButNotAllowedcom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedButNotAllowed | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplaycom.xpn.xwiki.doc.XWikiDocumentTest.testDisplay | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testGetXObjectWithObjectReferencecom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testGetXObjectWithObjectReference | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRoot | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithnumberversioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithnumberversion | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImplTest.testLogintoVirtualXwikiWithWikiPrefixUsernamecom.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImplTest.testLogintoVirtualXwikiWithWikiPrefixUsername | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testMergeObjectsHaveCorrectReferenceAndDifferentGuidscom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testMergeObjectsHaveCorrectReferenceAndDifferentGuids | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.fallbackOnResourcecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.fallbackOnResource | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImplTest.testListMemberForGroupcom.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImplTest.testListMemberForGroup | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.CommentEventGeneratorListenerTest.testDeleteCommentcom.xpn.xwiki.internal.event.CommentEventGeneratorListenerTest.testDeleteComment | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilesUsingCommonsCompresscom.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilesUsingCommonsCompress | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMergeTest.testMergeNewObjectAddedcom.xpn.xwiki.doc.XWikiDocumentMergeTest.testMergeNewObjectAdded | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeTopLevelFromURLcom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeTopLevelFromURL | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImplTest.testLoginWithWikiPrefixcom.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImplTest.testLoginWithWikiPrefix | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentFromURLWhenNoTypecom.xpn.xwiki.web.CreateActionTest.newDocumentFromURLWhenNoType | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectDeletedcom.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectDeleted | 1PASS | ||
0.6666667
|
org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroTest.testExecuteWhenWikiRequiringPRAfterDropPermissionorg.xwiki.rendering.wikimacro.internal.DefaultWikiMacroTest.testExecuteWhenWikiRequiringPRAfterDropPermission | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithGuestUsercom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithGuestUser | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.fallackOnParentLocalecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.fallackOnParentLocale | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsWhenNoContextDocumentIsSetcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsWhenNoContextDocumentIsSet | 1PASS | ||
0.6666667
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiFromOtherWikiorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiFromOtherWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUICheckEscapingcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUICheckEscaping | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getTranslationWithParameterscom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getTranslationWithParameters | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedRestrictionExistsOnParentSpacecom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedRestrictionExistsOnParentSpace | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitleNonUtf8PlatformEncodingcom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitleNonUtf8PlatformEncoding | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testRelativeObjectReferencesAfterDocumentCopycom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testRelativeObjectReferencesAfterDocumentCopy | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentcom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocument | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceHTMLContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceHTMLContentLength | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testAdminAccessLevelscom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testAdminAccessLevels | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITopLevelDocumentcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITopLevelDocument | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallMandatoryorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallMandatory | 1PASS | ||
0.6666667
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedButNotAllowedcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedButNotAllowed | 1PASS | ||
0.6666667
|
org.xwiki.crypto.store.wiki.internal.DefaultSignatureStoreTest.testUpdatingSignatureorg.xwiki.crypto.store.wiki.internal.DefaultSignatureStoreTest.testUpdatingSignature | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUIDeprecatedCheckEscapingcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUIDeprecatedCheckEscaping | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testAddDocumentcom.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testAddDocument | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentFromURLcom.xpn.xwiki.web.CreateActionTest.newDocumentFromURL | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportTranslationsOverwritecom.xpn.xwiki.plugin.packaging.ImportTest.testImportTranslationsOverwrite | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testSetXObjectswithPreviousObjectcom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testSetXObjectswithPreviousObject | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallFromWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallFromWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiPreferencesCachecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiPreferencesCache | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentFromURLTemplateProviderSpecifiedNonTerminalcom.xpn.xwiki.web.CreateActionTest.newDocumentFromURLTemplateProviderSpecifiedNonTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplay1020com.xpn.xwiki.doc.XWikiDocumentTest.testDisplay1020 | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderExistingButNoneSelectedcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderExistingButNoneSelected | 1PASS | ||
0.6666667
|
org.xwiki.crypto.store.wiki.internal.DefaultSignatureStoreTest.testRetrievingMissingSignatureorg.xwiki.crypto.store.wiki.internal.DefaultSignatureStoreTest.testRetrievingMissingSignature | 1PASS | ||
0.6666667
|
com.xpn.xwiki.api.DocumentTest.testRemoveObjectDoesntCauseDataLosscom.xpn.xwiki.api.DocumentTest.testRemoveObjectDoesntCauseDataLoss | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.input.DocumentInstanceInputFilterStreamTest.testImportDocumentsPreserveVersioncom.xpn.xwiki.internal.filter.input.DocumentInstanceInputFilterStreamTest.testImportDocumentsPreserveVersion | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCreatorAfterDocumentCopycom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCreatorAfterDocumentCopy | 1PASS | ||
0.6666667
|
org.xwiki.activitystream.WebRssTest.webRssFiltersHiddenDocumentsorg.xwiki.activitystream.WebRssTest.webRssFiltersHiddenDocuments | 3FAIL | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLcom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURL | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateArchiveWhenSpaceInUsernamecom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateArchiveWhenSpaceInUsername | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithOnlyPageAsReferencecom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithOnlyPageAsReference | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourcePlainContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourcePlainContentLength | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateSpecifiedcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateSpecified | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMergeTest.testMergeObjectModifiedcom.xpn.xwiki.doc.XWikiDocumentMergeTest.testMergeObjectModified | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithTitlecom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithTitle | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportOverwriteDocumentcom.xpn.xwiki.plugin.packaging.ImportTest.testImportOverwriteDocument | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.api.DocumentTest.testChangeAuthorWhenModifyingObjectPropertycom.xpn.xwiki.api.DocumentTest.testChangeAuthorWhenModifyingObjectProperty | 1PASS | ||
0.6666667
|
org.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testUnRegisterWikiMacroWithDifferentVisibilityKeysorg.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testUnRegisterWikiMacroWithDifferentVisibilityKeys | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsPreserveVersioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsPreserveVersion | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeTopLevelSpaceButTerminalFromURLcom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeTopLevelSpaceButTerminalFromURL | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCloneObjectsHaveCorrectReferencecom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCloneObjectsHaveCorrectReference | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContent | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectPropertyModifiedcom.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectPropertyModified | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnRoot | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testSetXObjectWhithNoPreviousObjectcom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testSetXObjectWhithNoPreviousObject | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentTest.testConvertSyntaxcom.xpn.xwiki.doc.XWikiDocumentTest.testConvertSyntax | 1PASS | ||
0.6666667
|
org.xwiki.help.HelpTest.verifySubHeadingVelocityVariableCorrectlyEvaluatedWhenUsedInSectionorg.xwiki.help.HelpTest.verifySubHeadingVelocityVariableCorrectlyEvaluatedWhenUsedInSection | 3FAIL | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedButOldSpaceTypeButOverridenFromUIToTerminalcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedButOldSpaceTypeButOverridenFromUIToTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMergeTest.testApplyWithUnmodifiedObjectcom.xpn.xwiki.doc.XWikiDocumentMergeTest.testApplyWithUnmodifiedObject | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentCleansVelocityMacroCachecom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentCleansVelocityMacroCache | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithattachmentwithoutdatecom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithattachmentwithoutdate | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithUserFromAnotherWikicom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithUserFromAnotherWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedTerminalOverriddenFromUIToNonTerminalcom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedTerminalOverriddenFromUIToNonTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMergeTest.testMergeCurrentObjectRemovedcom.xpn.xwiki.doc.XWikiDocumentMergeTest.testMergeCurrentObjectRemoved | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentTest.testRename10com.xpn.xwiki.doc.XWikiDocumentTest.testRename10 | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiTranslationCachecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiTranslationCache | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelOnEmptyWikicom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelOnEmptyWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentTerminalFromUIcom.xpn.xwiki.web.CreateActionTest.existingDocumentTerminalFromUI | 1PASS | ||
0.6666667
|
org.xwiki.activitystream.WebRssTest.webRssDisplayorg.xwiki.activitystream.WebRssTest.webRssDisplay | 3FAIL | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeButTerminalFromURLcom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeButTerminalFromURL | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testRemovingObjectWithWrongObjectVectorcom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testRemovingObjectWithWrongObjectVector | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUIDeprecatedcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUIDeprecated | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testMergeObjectsTwicecom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testMergeObjectsTwice | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectPropertyDeletedcom.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectPropertyDeleted | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedTerminalcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testModifyObjectsSetsOnlyMetadataDirtyFlagcom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testModifyObjectsSetsOnlyMetadataDirtyFlag | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testGetXObjectWithNumbercom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testGetXObjectWithNumber | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentXarCreatedByCommonsCompresscom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentXarCreatedByCommonsCompress | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testCreateNewWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testCreateNewWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunexistingobjectpropertycom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunexistingobjectproperty | 1PASS | ||
0.6666667
|
com.xpn.xwiki.api.DocumentTest.testGetObjectscom.xpn.xwiki.api.DocumentTest.testGetObjects | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testObjectGuidsAfterDocumentCopycom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testObjectGuidsAfterDocumentCopy | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextWithSourceSyntaxcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextWithSourceSyntax | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUserWithoutWikicom.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUserWithoutWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedNonTerminalcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedNonTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUINoNamecom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUINoName | 1PASS | ||
0.6666667
|
org.xwiki.crypto.store.wiki.internal.DefaultSignatureStoreTest.testStoringNewSignatureorg.xwiki.crypto.store.wiki.internal.DefaultSignatureStoreTest.testStoringNewSignature | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunknownclasspropertycom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunknownclassproperty | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentTerminalFromUICheckEscapingcom.xpn.xwiki.web.CreateActionTest.existingDocumentTerminalFromUICheckEscaping | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMergeTest.testApplyWithModifiedObjectAndCleancom.xpn.xwiki.doc.XWikiDocumentMergeTest.testApplyWithModifiedObjectAndClean | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedTerminalOverridenFromUIToNonTerminalcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedTerminalOverridenFromUIToNonTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.tofromXMLDocumentcom.xpn.xwiki.doc.XWikiDocumentMockitoTest.tofromXMLDocument | 1PASS | ||
0.6666667
|
com.xpn.xwiki.api.DocumentTest.testChangeAuthorWhenModifyingDocumentPropertycom.xpn.xwiki.api.DocumentTest.testChangeAuthorWhenModifyingDocumentProperty | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentNonTerminalFromUIDeprecatedCheckEscapingcom.xpn.xwiki.web.CreateActionTest.existingDocumentNonTerminalFromUIDeprecatedCheckEscaping | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportExtensioncom.xpn.xwiki.plugin.packaging.ImportTest.testImportExtension | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentFromURLTemplateProviderSpecifiedNonTerminalButOverriddenFromUITerminalcom.xpn.xwiki.web.CreateActionTest.newDocumentFromURLTemplateProviderSpecifiedNonTerminalButOverriddenFromUITerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceXMLContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceXMLContentLength | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedRestrictionExistscom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedRestrictionExists | 1PASS | ||
0.6666667
|
com.xpn.xwiki.XWikiTest.testGetPrefsClasscom.xpn.xwiki.XWikiTest.testGetPrefsClass | 1PASS | ||
0.6666667
|
com.xpn.xwiki.XWikiTest.testGetDocumentWithEntityReferencecom.xpn.xwiki.XWikiTest.testGetDocumentWithEntityReference | 1PASS | ||
0.6666667
|
com.xpn.xwiki.XWikiTest.testValidationKeyStoragecom.xpn.xwiki.XWikiTest.testValidationKeyStorage | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContentWithSourceSyntaxcom.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContentWithSourceSyntax | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testRemoveVersionscom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testRemoveVersions | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiAndRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiAndRoot | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMergeTest.testMergeNewObjectRemovedcom.xpn.xwiki.doc.XWikiDocumentMergeTest.testMergeNewObjectRemoved | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUsersAndGroupsPreserveVersioncom.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUsersAndGroupsPreserveVersion | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelAdminOnDocumentcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelAdminOnDocument | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testCheckRightcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testCheckRight | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentRightscom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentRights | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testCurrentDocumentVariableIsInjectedBeforeRenderingcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testCurrentDocumentVariableIsInjectedBeforeRendering | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnWikiWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnWikiWithoutAdminRights | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getTranslatedWikiTranslationcom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getTranslatedWikiTranslation | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilescom.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFiles | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContentcom.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContent | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRootAndWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRootAndWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextRightscom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextRights | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCreationDateAfterDocumentCopycom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCreationDateAfterDocumentCopy | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUIcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUI | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getEmptyWikiTranslationcom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getEmptyWikiTranslation | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectModifiedcom.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectModified | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentFromURLTemplateProviderSpecifiedButNotAllowedcom.xpn.xwiki.web.CreateActionTest.newDocumentFromURLTemplateProviderSpecifiedButNotAllowed | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnRootWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnRootWithoutAdminRights | 1PASS | ||
0.6666667
|
com.xpn.xwiki.api.ContextTest.setDisplayModecom.xpn.xwiki.api.ContextTest.setDisplayMode | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getWikiTranslationcom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getWikiTranslation | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testDeleteDocumentcom.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testDeleteDocument | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCustomMappingAfterDocumentCopycom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCustomMappingAfterDocumentCopy | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testAuthorAfterDocumentCopycom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testAuthorAfterDocumentCopy | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.CommentEventGeneratorListenerTest.testModifiedCommentcom.xpn.xwiki.internal.event.CommentEventGeneratorListenerTest.testModifiedComment | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentNonTerminalFromUIDeprecatedcom.xpn.xwiki.web.CreateActionTest.existingDocumentNonTerminalFromUIDeprecated | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAuthororg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAuthor | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedButOldPageTypecom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedButOldPageType | 1PASS | ||
0.6666667
|
com.xpn.xwiki.stats.impl.StatsUtilTest.testGetFilteredUserscom.xpn.xwiki.stats.impl.StatsUtilTest.testGetFilteredUsers | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentNonTerminalFromUIDeprecatedIgnoringPagecom.xpn.xwiki.web.CreateActionTest.existingDocumentNonTerminalFromUIDeprecatedIgnoringPage | 1PASS | ||
0.6666667
|
org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroTest.testExecuteWhenWikiMacroBindingorg.xwiki.rendering.wikimacro.internal.DefaultWikiMacroTest.testExecuteWhenWikiMacroBinding | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedButOldPageTypeButOverriddenFromUIToNonTerminalcom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedButOldPageTypeButOverriddenFromUIToNonTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyCreationDateWhenLoadingDocumentFromArchivecom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyCreationDateWhenLoadingDocumentFromArchive | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testDeniesAccessLevelForCreateIfDocumentDeniesEditcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testDeniesAccessLevelForCreateIfDocumentDeniesEdit | 1PASS | ||
0.6666667
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testEditRightsOnWebPreferencesDocumentscom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testEditRightsOnWebPreferencesDocuments | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentTest.testRenamecom.xpn.xwiki.doc.XWikiDocumentTest.testRename | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testObjectNumbersAfterXMLRoundripcom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testObjectNumbersAfterXMLRoundrip | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplayTemplate20com.xpn.xwiki.doc.XWikiDocumentTest.testDisplayTemplate20 | 1PASS | ||
0.6666667
|
org.xwiki.crypto.store.wiki.internal.DefaultSignatureStoreTest.testRetrievingExistingSignatureorg.xwiki.crypto.store.wiki.internal.DefaultSignatureStoreTest.testRetrievingExistingSignature | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsWithoutLocaleAndRevisioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsWithoutLocaleAndRevision | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCopyDocumentcom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCopyDocument | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenOnRoot | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedTerminalcom.xpn.xwiki.web.CreateActionTest.newDocumentWebHomeFromURLTemplateProviderSpecifiedTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.objects.BaseObjectTest.getReferencecom.xpn.xwiki.objects.BaseObjectTest.getReference | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenUpgradeOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenUpgradeOnRoot | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithoutauthorandcreatorcom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithoutauthorandcreator | 1PASS | ||
0.6666667
|
com.xpn.xwiki.objects.BaseObjectTest.setXClassReferencecom.xpn.xwiki.objects.BaseObjectTest.setXClassReference | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedButOldSpaceTypecom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedButOldSpaceType | 1PASS | ||
0.6666667
|
org.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testSaveWikiMacroorg.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testSaveWikiMacro | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.CommentEventGeneratorListenerTest.testAddCommentcom.xpn.xwiki.internal.event.CommentEventGeneratorListenerTest.testAddComment | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectAddedcom.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectAdded | 1PASS | ||
0.6666667
|
com.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectPropertyAddedcom.xpn.xwiki.internal.event.XObjectEventGeneratorListenerTest.testModifiedDocumentXObjectPropertyAdded | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentTerminalFromUIButAlreadyExistingcom.xpn.xwiki.web.CreateActionTest.existingDocumentTerminalFromUIButAlreadyExisting | 1PASS | ||
0.6666667
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testDowngradeOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testDowngradeOnWiki | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedNonTerminalOverridenFromUIToTerminalcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedNonTerminalOverridenFromUIToTerminal | 1PASS | ||
0.6666667
|
com.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCloneNullObjectscom.xpn.xwiki.doc.XWikiDocumentMockitoTest.testCloneNullObjects | 1PASS | ||
0.6666667
|
com.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecifiedcom.xpn.xwiki.web.CreateActionTest.existingDocumentFromUITemplateProviderSpecified | 1PASS | ||
0.6666667
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitlecom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitle | 1PASS |
1 | /* | ||||||
2 | * See the NOTICE file distributed with this work for additional | ||||||
3 | * information regarding copyright ownership. | ||||||
4 | * | ||||||
5 | * This is free software; you can redistribute it and/or modify it | ||||||
6 | * under the terms of the GNU Lesser General Public License as | ||||||
7 | * published by the Free Software Foundation; either version 2.1 of | ||||||
8 | * the License, or (at your option) any later version. | ||||||
9 | * | ||||||
10 | * This software is distributed in the hope that it will be useful, | ||||||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||||
13 | * Lesser General Public License for more details. | ||||||
14 | * | ||||||
15 | * You should have received a copy of the GNU Lesser General Public | ||||||
16 | * License along with this software; if not, write to the Free | ||||||
17 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||||||
18 | * 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||||||
19 | */ | ||||||
20 | package com.xpn.xwiki.internal.model.reference; | ||||||
21 | |||||||
22 | import javax.inject.Inject; | ||||||
23 | import javax.inject.Named; | ||||||
24 | import javax.inject.Singleton; | ||||||
25 | |||||||
26 | import org.xwiki.component.annotation.Component; | ||||||
27 | import org.xwiki.model.EntityType; | ||||||
28 | import org.xwiki.model.reference.DocumentReference; | ||||||
29 | import org.xwiki.model.reference.DocumentReferenceResolver; | ||||||
30 | import org.xwiki.model.reference.EntityReference; | ||||||
31 | import org.xwiki.model.reference.EntityReferenceResolver; | ||||||
32 | |||||||
33 | /** | ||||||
34 | * Specialized version of {@link org.xwiki.model.reference.EntityReferenceResolver} which can be considered a helper | ||||||
35 | * component to resolve {@link DocumentReference} objects from Entity Reference (when they miss some parent references | ||||||
36 | * or have NULL values). The behavior is the one defined in | ||||||
37 | * {@link com.xpn.xwiki.internal.model.reference.CurrentEntityReferenceProvider}. | ||||||
38 | * | ||||||
39 | * @version $Id: d573f1e9ff63c16be8c39be739572b4e2641edc4 $ | ||||||
40 | * @since 2.2M1 | ||||||
41 | */ | ||||||
42 | @Component | ||||||
43 | @Named("current") | ||||||
44 | @Singleton | ||||||
|
|||||||
45 | public class CurrentReferenceDocumentReferenceResolver implements DocumentReferenceResolver<EntityReference> | ||||||
46 | { | ||||||
47 | @Inject | ||||||
48 | @Named("current") | ||||||
49 | private EntityReferenceResolver<EntityReference> entityReferenceResolver; | ||||||
50 | |||||||
|
|||||||
51 | 209072 | @Override... | |||||
52 | public DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters) | ||||||
53 | { | ||||||
54 | 209065 | if (documentReferenceRepresentation instanceof DocumentReference) { | |||||
55 | 419 | return (DocumentReference) documentReferenceRepresentation; | |||||
56 | } | ||||||
57 | |||||||
58 | 208650 | return new DocumentReference(this.entityReferenceResolver.resolve(documentReferenceRepresentation, | |||||
59 | EntityType.DOCUMENT, parameters)); | ||||||
60 | } | ||||||
61 | } |