Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
ReadOnlyXWikiContextProvider | 45 | 5 | 0% | 3 | 0 | 1.0100% |
Class ReadOnlyXWikiContextProvider |
Line # 45 |
5 |
0% |
3 |
0 |
1.0100% |
---|---|---|---|---|---|---|
get() : XWikiContext get() : XWikiContext | 5353 | 1.01 | 0.00% | 1.01 | 0.00 | 1.0 1.0100% |
getXWikiContext() : XWikiContext getXWikiContext() : XWikiContext | 6262 | 4.04 | 0.00% | 2.02 | 0.00 | 1.0 1.0100% |
0.7777778
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeONDemandorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeONDemand | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplaycom.xpn.xwiki.doc.XWikiDocumentTest.testDisplay | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.mailsender.MailSenderApiTest.testSendMailWithCustomConfigurationcom.xpn.xwiki.plugin.mailsender.MailSenderApiTest.testSendMailWithCustomConfiguration | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRoot | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithnumberversioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithnumberversion | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallFromRootorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallFromRoot | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsAfterDropPermissionsForRenderingCyclecom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsAfterDropPermissionsForRenderingCycle | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.fallbackOnResourcecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.fallbackOnResource | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.mailsender.MailSenderApiTest.testSendMailcom.xpn.xwiki.plugin.mailsender.MailSenderApiTest.testSendMail | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilesUsingCommonsCompresscom.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilesUsingCommonsCompress | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWhenNotMatchingTitleHeaderDepthcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWhenNotMatchingTitleHeaderDepth | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getResourceTranslationcom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getResourceTranslation | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachment | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testRelativeDocumentReferenceorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testRelativeDocumentReference | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testCreationDateAfterDocumentCopycom.xpn.xwiki.XWikiTest.testCreationDateAfterDocumentCopy | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGroupFromAnotherWiki1org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGroupFromAnotherWiki1 | 1PASS | ||
0.7777778
|
org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroTest.testExecuteWhenWikiRequiringPRAfterDropPermissionorg.xwiki.rendering.wikimacro.internal.DefaultWikiMacroTest.testExecuteWhenWikiRequiringPRAfterDropPermission | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithGuestUsercom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithGuestUser | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.fallackOnParentLocalecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.fallackOnParentLocale | 1PASS | ||
0.7777778
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiFromOtherWikiorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiFromOtherWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.model.reference.CurrentReferenceEntityReferenceResolverTest.testResolveAttachmentReferenceWhenMissingParentsAndNoContextDocumentcom.xpn.xwiki.internal.model.reference.CurrentReferenceEntityReferenceResolverTest.testResolveAttachmentReferenceWhenMissingParentsAndNoContextDocument | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsWhenNoContextDocumentIsSetcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsWhenNoContextDocumentIsSet | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testAuthorAfterDocumentCopycom.xpn.xwiki.XWikiTest.testAuthorAfterDocumentCopy | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getTranslationWithParameterscom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getTranslationWithParameters | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testCreatorAfterDocumentCopycom.xpn.xwiki.XWikiTest.testCreatorAfterDocumentCopy | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitleNonUtf8PlatformEncodingcom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitleNonUtf8PlatformEncoding | 1PASS | ||
0.7777778
|
org.xwiki.wysiwyg.server.internal.cleaner.HTMLCleanerTest.executeorg.xwiki.wysiwyg.server.internal.cleaner.HTMLCleanerTest.execute | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentcom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocument | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceHTMLContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceHTMLContentLength | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleNoTitleAndContentcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleNoTitleAndContent | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testAdminAccessLevelscom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testAdminAccessLevels | 1PASS | ||
0.7777778
|
org.xwiki.wysiwyg.server.internal.cleaner.HTMLCleanerTest.executeorg.xwiki.wysiwyg.server.internal.cleaner.HTMLCleanerTest.execute | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallMandatoryorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallMandatory | 1PASS | ||
0.7777778
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportTranslationsOverwritecom.xpn.xwiki.plugin.packaging.ImportTest.testImportTranslationsOverwrite | 1PASS | ||
0.7777778
|
com.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationOrderAndIgnorecom.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationOrderAndIgnore | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallFromWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallFromWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiPreferencesCachecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiPreferencesCache | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnRootWithoutProgrammingRigthsorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnRootWithoutProgrammingRigths | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplay1020com.xpn.xwiki.doc.XWikiDocumentTest.testDisplay1020 | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.input.DocumentInstanceInputFilterStreamTest.testImportDocumentsPreserveVersioncom.xpn.xwiki.internal.filter.input.DocumentInstanceInputFilterStreamTest.testImportDocumentsPreserveVersion | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileLinkcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileLink | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testBackupRestoreContextUpdatesVContextcom.xpn.xwiki.doc.XWikiDocumentTest.testBackupRestoreContextUpdatesVContext | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourcePolymorphismcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourcePolymorphism | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGuestRightsOnEmptyWikiorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testGuestRightsOnEmptyWiki | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testUserFromAnotherWiki2org.xwiki.security.authorization.internal.XWikiRightServiceTest.testUserFromAnotherWiki2 | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.ExportURLFactoryTest.testCreateAttachmentURLcom.xpn.xwiki.web.ExportURLFactoryTest.testCreateAttachmentURL | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnNamespaceWithoutProgrammingRigthsorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnNamespaceWithoutProgrammingRigths | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleRecursivecom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleRecursive | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateArchiveWhenSpaceInUsernamecom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateArchiveWhenSpaceInUsername | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithOnlyPageAsReferencecom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithOnlyPageAsReference | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourcePlainContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourcePlainContentLength | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenWithTranslationcom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenWithTranslation | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetDocumentBundlesWhenDocumentDoesNotExistcom.xpn.xwiki.web.XWikiMessageToolTest.testGetDocumentBundlesWhenDocumentDoesNotExist | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenDocumentModifiedAfterItIsInCachecom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenDocumentModifiedAfterItIsInCache | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileListcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileList | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.model.reference.CurrentMixedStringDocumentReferenceResolverTest.testResolveDocumentReferenceWhenContextDocumentcom.xpn.xwiki.internal.model.reference.CurrentMixedStringDocumentReferenceResolverTest.testResolveDocumentReferenceWhenContextDocument | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWhenURLIsNotZipFilecom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWhenURLIsNotZipFile | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPagescom.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPages | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenWithUTF8Translationcom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenWithUTF8Translation | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportOverwriteDocumentcom.xpn.xwiki.plugin.packaging.ImportTest.testImportOverwriteDocument | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceConsistencycom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceConsistency | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithTitlecom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithTitle | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWiki | 1PASS | ||
0.7777778
|
org.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testUnRegisterWikiMacroWithDifferentVisibilityKeysorg.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testUnRegisterWikiMacroWithDifferentVisibilityKeys | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testLanguageSelectioncom.xpn.xwiki.XWikiTest.testLanguageSelection | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRoot | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsPreserveVersioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsPreserveVersion | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateLoadcom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateLoad | 1PASS | ||
0.7777778
|
com.xpn.xwiki.api.UserTest.testIsUserInGroupDoesNotThrowNPEcom.xpn.xwiki.api.UserTest.testIsUserInGroupDoesNotThrowNPE | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testUpdateDocumentSectioncom.xpn.xwiki.doc.XWikiDocumentTest.testUpdateDocumentSection | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testSaveDocumentSendsObservationEventscom.xpn.xwiki.XWikiTest.testSaveDocumentSendsObservationEvents | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testGetorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testGet | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGlobalGroupInLocalGrouporg.xwiki.security.authorization.internal.XWikiRightServiceTest.testGlobalGroupInLocalGroup | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContent | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnNamespaceorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnNamespace | 1PASS | ||
0.7777778
|
com.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationForcecom.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationForce | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnRoot | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testConvertSyntaxcom.xpn.xwiki.doc.XWikiDocumentTest.testConvertSyntax | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnNamespaceorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnNamespace | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.model.reference.CurrentMixedReferenceEntityReferenceResolverTest.testResolveAttachmentReferenceWhenMissingParentsAndContextDocumentcom.xpn.xwiki.internal.model.reference.CurrentMixedReferenceEntityReferenceResolverTest.testResolveAttachmentReferenceWhenMissingParentsAndContextDocument | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentCleansVelocityMacroCachecom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentCleansVelocityMacroCache | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithUserFromAnotherWikicom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithUserFromAnotherWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithattachmentwithoutdatecom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithattachmentwithoutdate | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testRename10com.xpn.xwiki.doc.XWikiDocumentTest.testRename10 | 1PASS | ||
0.7777778
|
com.xpn.xwiki.store.VoidAttachmentVersioningStoreTest.testHistorycom.xpn.xwiki.store.VoidAttachmentVersioningStoreTest.testHistory | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiTranslationCachecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiTranslationCache | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelOnEmptyWikicom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelOnEmptyWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetContentOfSectioncom.xpn.xwiki.doc.XWikiDocumentTest.testGetContentOfSection | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testProgrammingRightsWhenNoContextDocumentIsSetorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testProgrammingRightsWhenNoContextDocumentIsSet | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelForDeleteRightWhenUserIsDocumentCreatorcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelForDeleteRightWhenUserIsDocumentCreator | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetReturnsFromCacheWhenCalledTwicecom.xpn.xwiki.web.XWikiMessageToolTest.testGetReturnsFromCacheWhenCalledTwice | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.image.ImagePluginTest.testCacheOfScaledAttachmentcom.xpn.xwiki.plugin.image.ImagePluginTest.testCacheOfScaledAttachment | 1PASS | ||
0.7777778
|
com.xpn.xwiki.api.XWikiTest.testAuthorIsntChangedAfterDocumentCopycom.xpn.xwiki.api.XWikiTest.testAuthorIsntChangedAfterDocumentCopy | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.model.reference.CurrentReferenceEntityReferenceResolverTest.testResolveAttachmentReferenceWhenMissingParentsAndContextDocumentcom.xpn.xwiki.internal.model.reference.CurrentReferenceEntityReferenceResolverTest.testResolveAttachmentReferenceWhenMissingParentsAndContextDocument | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectField | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAdminRights | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentXarCreatedByCommonsCompresscom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentXarCreatedByCommonsCompress | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testCreateNewWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testCreateNewWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunexistingobjectpropertycom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunexistingobjectproperty | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetDocumentSectioncom.xpn.xwiki.doc.XWikiDocumentTest.testGetDocumentSection | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextWithSourceSyntaxcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextWithSourceSyntax | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsAfterDropPermissionscom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsAfterDropPermissions | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnRootWithoutProgrammingRigthsorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnRootWithoutProgrammingRigths | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUserWithoutWikicom.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUserWithoutWiki | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testUserFromAnotherWiki1org.xwiki.security.authorization.internal.XWikiRightServiceTest.testUserFromAnotherWiki1 | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPages10com.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPages10 | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRootWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRootWithoutAdminRights | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunknownclasspropertycom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunknownclassproperty | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenInXWikiPreferencescom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenInXWikiPreferences | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnRootorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnRoot | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testGetCurrentContentSyntaxIdcom.xpn.xwiki.XWikiTest.testGetCurrentContentSyntaxId | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.AuthorizationManagerTest.testRightOnUserAndDeleteorg.xwiki.security.authorization.internal.AuthorizationManagerTest.testRightOnUserAndDelete | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testProgrammingRightsWhenCustomSecureDocIsSetorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testProgrammingRightsWhenCustomSecureDocIsSet | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportExtensioncom.xpn.xwiki.plugin.packaging.ImportTest.testImportExtension | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithoutTitlePLAINcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithoutTitlePLAIN | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getInvalidTranslationcom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getInvalidTranslation | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWithParameterscom.xpn.xwiki.web.XWikiMessageToolTest.testGetWithParameters | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnNamespaceWithoutProgrammingRigthsorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnNamespaceWithoutProgrammingRigths | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceXMLContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceXMLContentLength | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testGetPrefsClasscom.xpn.xwiki.XWikiTest.testGetPrefsClass | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testGetDocumentWithEntityReferencecom.xpn.xwiki.XWikiTest.testGetDocumentWithEntityReference | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testValidationKeyStoragecom.xpn.xwiki.XWikiTest.testValidationKeyStorage | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnUnsupportedNamespaceorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnUnsupportedNamespace | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.model.reference.CurrentMixedStringDocumentReferenceResolverTest.testResolveDocumentReferenceForDefaultWikiWhenNoContextDocumentcom.xpn.xwiki.internal.model.reference.CurrentMixedStringDocumentReferenceResolverTest.testResolveDocumentReferenceForDefaultWikiWhenNoContextDocument | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testRemoveVersionscom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testRemoveVersions | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContentWithSourceSyntaxcom.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContentWithSourceSyntax | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiAndRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiAndRoot | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceAccessRightscom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceAccessRights | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUsersAndGroupsPreserveVersioncom.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUsersAndGroupsPreserveVersion | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testWikiOwnerFromAnotherWikiorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testWikiOwnerFromAnotherWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelAdminOnDocumentcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelAdminOnDocument | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testCheckRightcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testCheckRight | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentRightscom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentRights | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersAttachmentcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersAttachment | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testCurrentDocumentVariableIsInjectedBeforeRenderingcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testCurrentDocumentVariableIsInjectedBeforeRendering | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getTranslatedWikiTranslationcom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getTranslatedWikiTranslation | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnWikiWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnWikiWithoutAdminRights | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilescom.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFiles | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContentcom.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContent | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRootAndWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRootAndWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextRightscom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextRights | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testDeleteDocumentSendsObservationEventscom.xpn.xwiki.XWikiTest.testDeleteDocumentSendsObservationEvents | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getEmptyWikiTranslationcom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getEmptyWikiTranslation | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnRootWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnRootWithoutAdminRights | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileTreeListcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileTreeList | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.getWikiTranslationcom.xpn.xwiki.web.XWikiMessageToolBridgeTest.getWikiTranslation | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetSectionscom.xpn.xwiki.doc.XWikiDocumentTest.testGetSections | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.mailsender.MailSenderApiTest.testSendRawMessagecom.xpn.xwiki.plugin.mailsender.MailSenderApiTest.testSendRawMessage | 1PASS | ||
0.7777778
|
com.xpn.xwiki.store.VoidAttachmentVersioningStoreTest.testStorecom.xpn.xwiki.store.VoidAttachmentVersioningStoreTest.testStore | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testIsMultilingualDefaultFalsecom.xpn.xwiki.XWikiTest.testIsMultilingualDefaultFalse | 1PASS | ||
0.7777778
|
org.xwiki.wysiwyg.server.internal.cleaner.HTMLCleanerTest.executeorg.xwiki.wysiwyg.server.internal.cleaner.HTMLCleanerTest.execute | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWhenMatchingTitleHeaderDepthcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWhenMatchingTitleHeaderDepth | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetIncludedPagescom.xpn.xwiki.doc.XWikiDocumentTest.testGetIncludedPages | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAuthororg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAuthor | 1PASS | ||
0.7777778
|
org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactoryTest.testCreateWikiMacroWithoutNameorg.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactoryTest.testCreateWikiMacroWithoutName | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyDiffAndFullRevisionAlgorithmcom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyDiffAndFullRevisionAlgorithm | 1PASS | ||
0.7777778
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testOverwriteAllowedNamespacesorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testOverwriteAllowedNamespaces | 1PASS | ||
0.7777778
|
com.xpn.xwiki.stats.impl.StatsUtilTest.testGetFilteredUserscom.xpn.xwiki.stats.impl.StatsUtilTest.testGetFilteredUsers | 1PASS | ||
0.7777778
|
com.xpn.xwiki.api.XWikiTest.testCreationDateAfterDocumentCopycom.xpn.xwiki.api.XWikiTest.testCreationDateAfterDocumentCopy | 1PASS | ||
0.7777778
|
org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroTest.testExecuteWhenWikiMacroBindingorg.xwiki.rendering.wikimacro.internal.DefaultWikiMacroTest.testExecuteWhenWikiMacroBinding | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyCreationDateWhenLoadingDocumentFromArchivecom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyCreationDateWhenLoadingDocumentFromArchive | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testDeniesAccessLevelForCreateIfDocumentDeniesEditcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testDeniesAccessLevelForCreateIfDocumentDeniesEdit | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWhenURLIsZipButNotPointingInsideZipcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWhenURLIsZipButNotPointingInsideZip | 1PASS | ||
0.7777778
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testEditRightsOnWebPreferencesDocumentscom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testEditRightsOnWebPreferencesDocuments | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testRenamecom.xpn.xwiki.doc.XWikiDocumentTest.testRename | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithoutTitleHTMLcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithoutTitleHTML | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplayTemplate20com.xpn.xwiki.doc.XWikiDocumentTest.testDisplayTemplate20 | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsWithoutLocaleAndRevisioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsWithoutLocaleAndRevision | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWiki | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceContentTypecom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceContentType | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenOnRoot | 1PASS | ||
0.7777778
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetDocumentSectionWhenSectionInGroupscom.xpn.xwiki.doc.XWikiDocumentTest.testGetDocumentSectionWhenSectionInGroups | 1PASS | ||
0.7777778
|
com.xpn.xwiki.api.XWikiTest.testGetAvailableRendererSyntaxcom.xpn.xwiki.api.XWikiTest.testGetAvailableRendererSyntax | 1PASS | ||
0.7777778
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenInXWikiConfigurationFilecom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenInXWikiConfigurationFile | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenUpgradeOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenUpgradeOnRoot | 1PASS | ||
0.7777778
|
com.xpn.xwiki.api.XWikiTest.testCreatorIsntChangedAfterDocumentCopycom.xpn.xwiki.api.XWikiTest.testCreatorIsntChangedAfterDocumentCopy | 1PASS | ||
0.7777778
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithoutauthorandcreatorcom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithoutauthorandcreator | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWithInvalidZipURLcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWithInvalidZipURL | 1PASS | ||
0.7777778
|
org.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testSaveWikiMacroorg.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testSaveWikiMacro | 1PASS | ||
0.7777778
|
com.xpn.xwiki.api.UserTest.testGetEmailcom.xpn.xwiki.api.UserTest.testGetEmail | 1PASS | ||
0.7777778
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldBeforeAttachmentcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldBeforeAttachment | 1PASS | ||
0.7777778
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGlobalUserInLocalGrouporg.xwiki.security.authorization.internal.XWikiRightServiceTest.testGlobalUserInLocalGroup | 1PASS | ||
0.7777778
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testDowngradeOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testDowngradeOnWiki | 1PASS | ||
0.7777778
|
org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactoryTest.testCreateWikiMacroorg.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactoryTest.testCreateWikiMacro | 1PASS | ||
0.7777778
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitlecom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitle | 1PASS | ||
0.7777778
|
com.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationWhenNoVersioncom.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationWhenNoVersion | 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; | ||||||
21 | |||||||
22 | import javax.inject.Inject; | ||||||
23 | import javax.inject.Named; | ||||||
24 | import javax.inject.Provider; | ||||||
25 | import javax.inject.Singleton; | ||||||
26 | |||||||
27 | import org.xwiki.component.annotation.Component; | ||||||
28 | import org.xwiki.context.Execution; | ||||||
29 | import org.xwiki.context.ExecutionContext; | ||||||
30 | |||||||
31 | import com.xpn.xwiki.XWikiContext; | ||||||
32 | |||||||
33 | /** | ||||||
34 | * Provide current {@link XWikiContext} or null if none is set. Should be used in cases creating a new | ||||||
35 | * {@link XWikiContext} would not help anyway (usually when checking something that might be null even in a valid | ||||||
36 | * {@link XWikiContext} like the current user). | ||||||
37 | * | ||||||
38 | * @version $Id: 7072b59581b462e5d6aa04dd49e4805fc530dbaa $ | ||||||
39 | * @see XWikiContextProvider | ||||||
40 | * @since 7.2M1 | ||||||
41 | */ | ||||||
42 | @Component | ||||||
43 | @Singleton | ||||||
44 | @Named("readonly") | ||||||
|
|||||||
45 | public class ReadOnlyXWikiContextProvider implements Provider<XWikiContext> | ||||||
46 | { | ||||||
47 | /** | ||||||
48 | * Used to access current {@link XWikiContext}. | ||||||
49 | */ | ||||||
50 | @Inject | ||||||
51 | private Execution execution; | ||||||
52 | |||||||
|
|||||||
53 | 18900429 | @Override... | |||||
54 | public XWikiContext get() | ||||||
55 | { | ||||||
56 | 18900442 | return getXWikiContext(); | |||||
57 | } | ||||||
58 | |||||||
59 | /** | ||||||
60 | * @return current XWikiContext or new one | ||||||
61 | */ | ||||||
|
|||||||
62 | 18900446 | private XWikiContext getXWikiContext()... | |||||
63 | { | ||||||
64 | 18900479 | ExecutionContext econtext = this.execution.getContext(); | |||||
65 | |||||||
66 | 18900834 | if (econtext != null) { | |||||
67 | 18891336 | return (XWikiContext) this.execution.getContext().getProperty(XWikiContext.EXECUTIONCONTEXT_KEY); | |||||
68 | } | ||||||
69 | |||||||
70 | 9609 | return null; | |||||
71 | } | ||||||
72 | } |