On Jul 3, 2009, at 11:33 AM, vmassol (SVN) wrote:
Author: vmassol
Date: 2009-07-03 11:33:25 +0200 (Fri, 03 Jul 2009)
New Revision: 21806
Added:
platform/core/trunk/xwiki-configuration/xwiki-configuration-
default/src/main/java/org/xwiki/configuration/internal/
AbstractDocumentConfigurationSource.java
platform/core/trunk/xwiki-configuration/xwiki-configuration-
default/src/main/java/org/xwiki/configuration/internal/
AllConfigurationSource.java
platform/core/trunk/xwiki-configuration/xwiki-configuration-
default/src/main/java/org/xwiki/configuration/internal/
SpacePreferencesConfigurationSource.java
platform/core/trunk/xwiki-configuration/xwiki-configuration-
default/src/main/java/org/xwiki/configuration/internal/
UserPreferencesConfigurationSource.java
platform/core/trunk/xwiki-configuration/xwiki-configuration-
default/src/main/java/org/xwiki/configuration/internal/
WikiPreferencesConfigurationSource.java
platform/core/trunk/xwiki-shared-tests/src/main/java/org/xwiki/
test/MockConfigurationSource.java
Removed:
platform/core/trunk/xwiki-rendering/xwiki-rendering-xwiki/src/test/
java/org/xwiki/rendering/scaffolding/MockConfigurationSource.java
Modified:
platform/core/trunk/xwiki-bridge/src/main/java/org/xwiki/bridge/
DocumentAccessBridge.java
platform/core/trunk/xwiki-cache/xwiki-cache-api/src/main/java/org/
xwiki/cache/internal/DefaultCacheManagerConfiguration.java
platform/core/trunk/xwiki-cache/xwiki-cache-tests/src/main/java/
org/xwiki/cache/tests/AbstractTestCache.java
platform/core/trunk/xwiki-configuration/xwiki-configuration-
default/pom.xml
platform/core/trunk/xwiki-configuration/xwiki-configuration-
default/src/main/java/org/xwiki/configuration/internal/
DefaultConfigurationSource.java
platform/core/trunk/xwiki-configuration/xwiki-configuration-
default/src/main/resources/META-INF/components.txt
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/doc/
DefaultDocumentAccessBridge.java
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/doc/
XWikiDocument.java
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/
internal/DefaultCoreConfiguration.java
platform/core/trunk/xwiki-officeimporter/src/test/java/org/xwiki/
officeimporter/internal/MockDocumentAccessBridge.java
platform/core/trunk/xwiki-refactoring/src/test/java/org/xwiki/
refactoring/internal/MockDocumentAccessBridge.java
platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-
rendering-macro-chart/src/test/java/org/xwiki/rendering/internal/
MockDocumentAccessBridge.java
platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-
rendering-macro-useravatar/src/main/java/org/xwiki/rendering/
internal/macro/useravatar/UserAvatarMacro.java
platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-
rendering-macro-useravatar/src/test/java/org/xwiki/rendering/
internal/MockDocumentAccessBridge.java
platform/core/trunk/xwiki-rendering/xwiki-rendering-xwiki/src/test/
java/org/xwiki/rendering/scaffolding/
AbstractXWikiRenderingTestCase.java
platform/core/trunk/xwiki-rendering/xwiki-rendering-xwiki/src/test/
java/org/xwiki/rendering/scaffolding/MockDocumentAccessBridge.java
platform/core/trunk/xwiki-shared-tests/pom.xml
platform/core/trunk/xwiki-shared-tests/src/main/java/org/xwiki/
test/AbstractComponentTestCase.java
platform/core/trunk/xwiki-shared-tests/src/main/java/org/xwiki/
test/AbstractXWikiComponentTestCase.java
platform/core/trunk/xwiki-shared-tests/src/main/java/org/xwiki/
test/ComponentManagerTestSetup.java
platform/core/trunk/xwiki-shared-tests/src/main/java/org/xwiki/
test/XWikiComponentInitializer.java
Log:
XWIKI-4044: Add support for looking for configuration parameters in
XWikiPreferences, WebPreferences and the User Profile
XWIKI-4058: Do not fail if the default syntax defined doesn't exist,
instead default to xwiki/2.0 syntax
XWIKI-4059: Modify Document Access Bridge to return Objects instead
of Strings when returning XWiki Object properties
XWIKI-4060: Allow default document syntax to be specified in User
profile configuration
XWIKI-4061: Add getProperties() API in Document Access Bridge to
return all properties for a given XWiki Object
+ Added default ConfigurationSource mock in shared test
Note: I'm missing automated tests for these. I'm still hesitating on
how to best do that. Right now I think some selenium tests are best.
Will add them a bit later.
Thanks
-Vincent