Author: julien_viet
Date: 2010-01-05 06:57:55 -0500 (Tue, 05 Jan 2010)
New Revision: 1159
Added:
portal/trunk/component/common/src/test/resources/conf/chromattic-configuration.xml
portal/trunk/component/portal/src/test/java/conf/portal-configuration.xml
portal/trunk/component/wsrp/src/test/resources/conf/wsrp-configuration.xml
Removed:
portal/trunk/component/common/src/test/resources/conf/test-configuration.xml
portal/trunk/component/portal/src/test/java/conf/test-configuration.xml
portal/trunk/component/wsrp/src/test/resources/conf/test-configuration.xml
Modified:
portal/trunk/component/common/src/test/java/org/exoplatform/commons/chromattic/ChromatticIntegrationTestCase.java
portal/trunk/component/identity/src/test/java/conf/portal/idm-configuration.xml
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/AbstractPortalTest.java
portal/trunk/component/test/core/src/main/java/org/exoplatform/component/test/AbstractGateInTest.java
portal/trunk/component/test/core/src/main/resources/conf/portal-configuration.xml
portal/trunk/component/test/core/src/test/java/org/exoplatform/component/test/BootstrapTestCase.java
portal/trunk/component/test/jcr/src/main/resources/conf/jcr/repository-configuration.xml
portal/trunk/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer/ConsumerRegistryTestCase.java
Log:
- update GateInTest to create a tmp dir per runtime execution (allow to avoid mvn clean
install)
- change ../temp to ${basedir}/target in test idm configuration as it's putting data
at wrong place
Modified:
portal/trunk/component/common/src/test/java/org/exoplatform/commons/chromattic/ChromatticIntegrationTestCase.java
===================================================================
---
portal/trunk/component/common/src/test/java/org/exoplatform/commons/chromattic/ChromatticIntegrationTestCase.java 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/common/src/test/java/org/exoplatform/commons/chromattic/ChromatticIntegrationTestCase.java 2010-01-05
11:57:55 UTC (rev 1159)
@@ -35,7 +35,7 @@
*/
@ConfiguredBy({
@ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/jcr/jcr-configuration.xml"),
- @ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/test-configuration.xml")
+ @ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/chromattic-configuration.xml")
})
public class ChromatticIntegrationTestCase extends AbstractGateInTest
{
Copied: portal/trunk/component/common/src/test/resources/conf/chromattic-configuration.xml
(from rev 1154,
portal/trunk/component/common/src/test/resources/conf/test-configuration.xml)
===================================================================
--- portal/trunk/component/common/src/test/resources/conf/chromattic-configuration.xml
(rev 0)
+++
portal/trunk/component/common/src/test/resources/conf/chromattic-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+ Copyright (C) 2009 eXo Platform SAS.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+
+-->
+
+<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd
http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"
+
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd">
+ <component>
+ <key>org.exoplatform.commons.chromattic.ChromatticManager</key>
+ <type>org.exoplatform.commons.chromattic.ChromatticManager</type>
+ </component>
+ <external-component-plugins>
+
<target-component>org.exoplatform.commons.chromattic.ChromatticManager</target-component>
+ <component-plugin>
+ <name>chromattic</name>
+ <set-method>addLifeCycle</set-method>
+ <type>org.exoplatform.commons.chromattic.ChromatticLifeCycle</type>
+ <init-params>
+ <value-param>
+ <name>domain-name</name>
+ <value>test</value>
+ </value-param>
+ <value-param>
+ <name>workspace-name</name>
+ <value>portal-test</value>
+ </value-param>
+ <values-param>
+ <name>entities</name>
+ <value>org.exoplatform.commons.chromattic.FooEntity</value>
+ </values-param>
+ </init-params>
+ </component-plugin>
+ </external-component-plugins>
+</configuration>
Deleted: portal/trunk/component/common/src/test/resources/conf/test-configuration.xml
===================================================================
---
portal/trunk/component/common/src/test/resources/conf/test-configuration.xml 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/common/src/test/resources/conf/test-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-
- Copyright (C) 2009 eXo Platform SAS.
-
- This is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this software; if not, write to the Free
- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-
--->
-
-<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd
http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"
-
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd">
- <component>
- <key>org.exoplatform.commons.chromattic.ChromatticManager</key>
- <type>org.exoplatform.commons.chromattic.ChromatticManager</type>
- </component>
- <external-component-plugins>
-
<target-component>org.exoplatform.commons.chromattic.ChromatticManager</target-component>
- <component-plugin>
- <name>chromattic</name>
- <set-method>addLifeCycle</set-method>
- <type>org.exoplatform.commons.chromattic.ChromatticLifeCycle</type>
- <init-params>
- <value-param>
- <name>domain-name</name>
- <value>test</value>
- </value-param>
- <value-param>
- <name>workspace-name</name>
- <value>portal-test</value>
- </value-param>
- <values-param>
- <name>entities</name>
- <value>org.exoplatform.commons.chromattic.FooEntity</value>
- </values-param>
- </init-params>
- </component-plugin>
- </external-component-plugins>
-</configuration>
Modified: portal/trunk/component/identity/src/test/java/conf/portal/idm-configuration.xml
===================================================================
---
portal/trunk/component/identity/src/test/java/conf/portal/idm-configuration.xml 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/identity/src/test/java/conf/portal/idm-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -59,7 +59,7 @@
<!--CHANGEME HashtableCacheProvider shold not be used in production env-->
<property name="hibernate.cache.provider_class"
value="org.hibernate.cache.HashtableCacheProvider"/>
<property name="hibernate.cglib.use_reflection_optimizer"
value="true"/>
- <property name="hibernate.connection.url"
value="jdbc:hsqldb:file:../temp/data/exodb${container.name.suffix}"/>
+ <property name="hibernate.connection.url"
value="jdbc:hsqldb:file:${basedir}/target/temp/data/exodb${container.name.suffix}"/>
<property name="hibernate.connection.driver_class"
value="org.hsqldb.jdbcDriver"/>
<property name="hibernate.connection.autocommit"
value="true"/>
<property name="hibernate.connection.username"
value="sa"/>
Copied: portal/trunk/component/portal/src/test/java/conf/portal-configuration.xml (from
rev 1154, portal/trunk/component/portal/src/test/java/conf/test-configuration.xml)
===================================================================
--- portal/trunk/component/portal/src/test/java/conf/portal-configuration.xml
(rev 0)
+++ portal/trunk/component/portal/src/test/java/conf/portal-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -0,0 +1,406 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+ Copyright (C) 2009 eXo Platform SAS.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+
+-->
+
+<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd
http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"
+
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd">
+
+ <external-component-plugins>
+
<target-component>org.exoplatform.portal.config.UserPortalConfigService</target-component>
+ <component-plugin>
+ <name>new.portal.config.user.listener</name>
+ <set-method>initListener</set-method>
+ <type>org.exoplatform.portal.config.NewPortalConfigListener</type>
+ <description>this listener init the portal configuration</description>
+ <init-params>
+ <value-param>
+ <name>default.portal</name>
+ <description>The default portal for checking db is empty or
not</description>
+ <value>classic</value>
+ </value-param>
+ <value-param>
+ <name>initializing.failure.ignore</name>
+ <description>In the run method, use try catch or not (value is
true/false)</description>
+ <value>true</value>
+ </value-param>
+ <object-param>
+ <name>portal.configuration</name>
+ <description>description</description>
+ <object type="org.exoplatform.portal.config.NewPortalConfig">
+ <field name="predefinedOwner">
+ <collection type="java.util.HashSet">
+ <value>
+ <string>classic</string>
+ </value>
+ <value>
+ <string>test</string>
+ </value>
+ </collection>
+ </field>
+ <field name="ownerType">
+ <string>portal</string>
+ </field>
+ <field name="templateLocation">
+ <string>classpath:/portal</string>
+ </field>
+ </object>
+ </object-param>
+ <object-param>
+ <name>group.configuration</name>
+ <description>description</description>
+ <object type="org.exoplatform.portal.config.NewPortalConfig">
+ <field name="predefinedOwner">
+ <collection type="java.util.HashSet">
+ <value>
+ <string>platform/administrators</string>
+ </value>
+ <value>
+ <string>platform/users</string>
+ </value>
+ <value>
+ <string>platform/guests</string>
+ </value>
+ <value>
+ <string>platform/test/legacy</string>
+ </value>
+ <value>
+ <string>platform/test/normalized</string>
+ </value>
+ <value>
+ <string>organization/management/executive-board</string>
+ </value>
+ </collection>
+ </field>
+ <field name="ownerType">
+ <string>group</string>
+ </field>
+ <field name="templateLocation">
+ <string>classpath:/portal</string>
+ </field>
+ </object>
+ </object-param>
+ <object-param>
+ <name>user.configuration</name>
+ <description>description</description>
+ <object type="org.exoplatform.portal.config.NewPortalConfig">
+ <field name="predefinedOwner">
+ <collection type="java.util.HashSet">
+ <value>
+ <string>root</string>
+ </value>
+ <value>
+ <string>john</string>
+ </value>
+ <value>
+ <string>mary</string>
+ </value>
+ <value>
+ <string>demo</string>
+ </value>
+ <value>
+ <string>overwritelayout</string>
+ </value>
+ </collection>
+ </field>
+ <field name="ownerType">
+ <string>user</string>
+ </field>
+ <field name="templateLocation">
+ <string>classpath:/portal</string>
+ </field>
+ </object>
+ </object-param>
+ <object-param>
+ <name>page.templates</name>
+ <description>List of page templates</description>
+ <object
type="org.exoplatform.portal.config.PageTemplateConfig">
+ <field name="templates">
+ <collection type="java.util.ArrayList"></collection>
+ </field>
+ <field name="location">
+ <string>classpath:/portal/template/pages</string>
+ </field>
+ </object>
+ </object-param>
+ </init-params>
+ </component-plugin>
+ </external-component-plugins>
+
+ <external-component-plugins>
+
<target-component>org.exoplatform.services.organization.OrganizationService</target-component>
+ <component-plugin>
+ <name>init.service.listener</name>
+ <set-method>addListenerPlugin</set-method>
+
<type>org.exoplatform.services.organization.OrganizationDatabaseInitializer</type>
+ <description>this listener populate organization data for the first
launch</description>
+ <init-params>
+ <value-param>
+ <name>checkDatabaseAlgorithm</name>
+ <description>check database</description>
+ <value>entry</value>
+ </value-param>
+ <value-param>
+ <name>printInformation</name>
+ <description>Print information init database</description>
+ <value>true</value>
+ </value-param>
+ <object-param>
+ <name>configuration</name>
+ <description>description</description>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig">
+ <field name="membershipType">
+ <collection type="java.util.ArrayList">
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$MembershipType">
+ <field
name="type"><string>manager</string></field>
+ <field name="description"><string>manager
membership type</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$MembershipType">
+ <field
name="type"><string>member</string></field>
+ <field name="description"><string>member
membership type</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$MembershipType">
+ <field
name="type"><string>validator</string></field>
+ <field name="description"><string>validator
membership type</string></field>
+ </object>
+ </value>
+ </collection>
+ </field>
+
+ <field name="group">
+ <collection type="java.util.ArrayList">
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>platform</string></field>
+ <field
name="parentId"><string></string></field>
+ <field name="description"><string>the
/platform group</string></field>
+ <field
name="label"><string>Platform</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>administrators</string></field>
+ <field
name="parentId"><string>/platform</string></field>
+ <field name="description"><string>the
/platform/administrators group</string></field>
+ <field
name="label"><string>Administrators</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>users</string></field>
+ <field
name="parentId"><string>/platform</string></field>
+ <field name="description"><string>the
/platform/users group</string></field>
+ <field
name="label"><string>Users</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>guests</string></field>
+ <field
name="parentId"><string>/platform</string></field>
+ <field name="description"><string>the
/platform/guests group</string></field>
+ <field
name="label"><string>Guests</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>organization</string></field>
+ <field
name="parentId"><string></string></field>
+ <field name="description"><string>the
organization group</string></field>
+ <field
name="label"><string>Organization</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>management</string></field>
+ <field
name="parentId"><string>/organization</string></field>
+ <field name="description"><string>the
/organization/management group</string></field>
+ <field
name="label"><string>Management</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>executive-board</string></field>
+ <field
name="parentId"><string>/organization/management</string></field>
+ <field name="description"><string>the
/organization/management/executive-board group</string></field>
+ <field name="label"><string>Executive
Board</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>human-resources</string></field>
+ <field
name="parentId"><string>/organization/management</string></field>
+ <field name="description"><string>the
/organization/management/human-resource group</string></field>
+ <field name="label"><string>Human
Resources</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>communication</string></field>
+ <field
name="parentId"><string>/organization</string></field>
+ <field name="description"><string>the
/organization/communication group</string></field>
+ <field
name="label"><string>Communication</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>marketing</string></field>
+ <field
name="parentId"><string>/organization/communication</string></field>
+ <field name="description"><string>the
/organization/communication/marketing group</string></field>
+ <field
name="label"><string>Marketing</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>press-and-media</string></field>
+ <field
name="parentId"><string>/organization/communication</string></field>
+ <field name="description"><string>the
/organization/communication/press-and-media group</string></field>
+ <field name="label"><string>Press and
Media</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>operations</string></field>
+ <field
name="parentId"><string>/organization</string></field>
+ <field name="description"><string>the
/organization/operations and media group</string></field>
+ <field
name="label"><string>Operations</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>sales</string></field>
+ <field
name="parentId"><string>/organization/operations</string></field>
+ <field name="description"><string>the
/organization/operations/sales group</string></field>
+ <field
name="label"><string>Sales</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>finances</string></field>
+ <field
name="parentId"><string>/organization/operations</string></field>
+ <field name="description"><string>the
/organization/operations/finances group</string></field>
+ <field
name="label"><string>Finances</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>customers</string></field>
+ <field
name="parentId"><string></string></field>
+ <field name="description"><string>the
/customers group</string></field>
+ <field
name="label"><string>Customers</string></field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
+ <field
name="name"><string>partners</string></field>
+ <field
name="parentId"><string></string></field>
+ <field name="description"><string>the
/partners group</string></field>
+ <field
name="label"><string>Partners</string></field>
+ </object>
+ </value>
+ </collection>
+ </field>
+
+ <field name="user">
+ <collection type="java.util.ArrayList">
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
+ <field
name="userName"><string>root</string></field>
+ <field
name="password"><string>gtn</string></field>
+ <field
name="firstName"><string>Root</string></field>
+ <field
name="lastName"><string>Root</string></field>
+ <field
name="email"><string>root@localhost</string></field>
+ <field name="groups">
+ <string>
+ manager:/platform/administrators,member:/platform/users,
+ member:/organization/management/executive-board
+ </string>
+ </field>
+ </object>
+ </value>
+
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
+ <field
name="userName"><string>john</string></field>
+ <field
name="password"><string>gtn</string></field>
+ <field
name="firstName"><string>John</string></field>
+ <field
name="lastName"><string>Anthony</string></field>
+ <field
name="email"><string>john@localhost</string></field>
+ <field name="groups">
+ <string>
+ member:/platform/administrators,member:/platform/users,
+ manager:/organization/management/executive-board
+ </string>
+ </field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
+ <field
name="userName"><string>mary</string></field>
+ <field
name="password"><string>gtn</string></field>
+ <field
name="firstName"><string>Mary</string></field>
+ <field
name="lastName"><string>Kelly</string></field>
+ <field
name="email"><string>mary@localhost</string></field>
+ <field name="groups">
+ <string>member:/platform/users</string>
+ </field>
+ </object>
+ </value>
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
+ <field
name="userName"><string>demo</string></field>
+ <field
name="password"><string>gtn</string></field>
+ <field
name="firstName"><string>Demo</string></field>
+ <field
name="lastName"><string>gtn</string></field>
+ <field
name="email"><string>demo@localhost</string></field>
+ <field name="groups">
+
<string>member:/platform/guests,member:/platform/users</string>
+ </field>
+ </object>
+ </value>
+
+ <value>
+ <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
+ <field
name="userName"><string>overwritelayout</string></field>
+ <field
name="password"><string>whatever</string></field>
+ <field
name="firstName"><string>whatever</string></field>
+ <field
name="lastName"><string>whatever</string></field>
+ <field
name="email"><string>whatever@localhost</string></field>
+ <field name="groups">
+ <string>member:/platform/guests</string>
+ </field>
+ </object>
+ </value>
+
+ </collection>
+ </field>
+ </object>
+ </object-param>
+ </init-params>
+ </component-plugin>
+
+ </external-component-plugins>
+
+</configuration>
Deleted: portal/trunk/component/portal/src/test/java/conf/test-configuration.xml
===================================================================
--- portal/trunk/component/portal/src/test/java/conf/test-configuration.xml 2010-01-05
11:46:42 UTC (rev 1158)
+++ portal/trunk/component/portal/src/test/java/conf/test-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -1,406 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-
- Copyright (C) 2009 eXo Platform SAS.
-
- This is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this software; if not, write to the Free
- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-
--->
-
-<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd
http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"
-
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd">
-
- <external-component-plugins>
-
<target-component>org.exoplatform.portal.config.UserPortalConfigService</target-component>
- <component-plugin>
- <name>new.portal.config.user.listener</name>
- <set-method>initListener</set-method>
- <type>org.exoplatform.portal.config.NewPortalConfigListener</type>
- <description>this listener init the portal configuration</description>
- <init-params>
- <value-param>
- <name>default.portal</name>
- <description>The default portal for checking db is empty or
not</description>
- <value>classic</value>
- </value-param>
- <value-param>
- <name>initializing.failure.ignore</name>
- <description>In the run method, use try catch or not (value is
true/false)</description>
- <value>true</value>
- </value-param>
- <object-param>
- <name>portal.configuration</name>
- <description>description</description>
- <object type="org.exoplatform.portal.config.NewPortalConfig">
- <field name="predefinedOwner">
- <collection type="java.util.HashSet">
- <value>
- <string>classic</string>
- </value>
- <value>
- <string>test</string>
- </value>
- </collection>
- </field>
- <field name="ownerType">
- <string>portal</string>
- </field>
- <field name="templateLocation">
- <string>classpath:/portal</string>
- </field>
- </object>
- </object-param>
- <object-param>
- <name>group.configuration</name>
- <description>description</description>
- <object type="org.exoplatform.portal.config.NewPortalConfig">
- <field name="predefinedOwner">
- <collection type="java.util.HashSet">
- <value>
- <string>platform/administrators</string>
- </value>
- <value>
- <string>platform/users</string>
- </value>
- <value>
- <string>platform/guests</string>
- </value>
- <value>
- <string>platform/test/legacy</string>
- </value>
- <value>
- <string>platform/test/normalized</string>
- </value>
- <value>
- <string>organization/management/executive-board</string>
- </value>
- </collection>
- </field>
- <field name="ownerType">
- <string>group</string>
- </field>
- <field name="templateLocation">
- <string>classpath:/portal</string>
- </field>
- </object>
- </object-param>
- <object-param>
- <name>user.configuration</name>
- <description>description</description>
- <object type="org.exoplatform.portal.config.NewPortalConfig">
- <field name="predefinedOwner">
- <collection type="java.util.HashSet">
- <value>
- <string>root</string>
- </value>
- <value>
- <string>john</string>
- </value>
- <value>
- <string>mary</string>
- </value>
- <value>
- <string>demo</string>
- </value>
- <value>
- <string>overwritelayout</string>
- </value>
- </collection>
- </field>
- <field name="ownerType">
- <string>user</string>
- </field>
- <field name="templateLocation">
- <string>classpath:/portal</string>
- </field>
- </object>
- </object-param>
- <object-param>
- <name>page.templates</name>
- <description>List of page templates</description>
- <object
type="org.exoplatform.portal.config.PageTemplateConfig">
- <field name="templates">
- <collection type="java.util.ArrayList"></collection>
- </field>
- <field name="location">
- <string>classpath:/portal/template/pages</string>
- </field>
- </object>
- </object-param>
- </init-params>
- </component-plugin>
- </external-component-plugins>
-
- <external-component-plugins>
-
<target-component>org.exoplatform.services.organization.OrganizationService</target-component>
- <component-plugin>
- <name>init.service.listener</name>
- <set-method>addListenerPlugin</set-method>
-
<type>org.exoplatform.services.organization.OrganizationDatabaseInitializer</type>
- <description>this listener populate organization data for the first
launch</description>
- <init-params>
- <value-param>
- <name>checkDatabaseAlgorithm</name>
- <description>check database</description>
- <value>entry</value>
- </value-param>
- <value-param>
- <name>printInformation</name>
- <description>Print information init database</description>
- <value>true</value>
- </value-param>
- <object-param>
- <name>configuration</name>
- <description>description</description>
- <object
type="org.exoplatform.services.organization.OrganizationConfig">
- <field name="membershipType">
- <collection type="java.util.ArrayList">
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$MembershipType">
- <field
name="type"><string>manager</string></field>
- <field name="description"><string>manager
membership type</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$MembershipType">
- <field
name="type"><string>member</string></field>
- <field name="description"><string>member
membership type</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$MembershipType">
- <field
name="type"><string>validator</string></field>
- <field name="description"><string>validator
membership type</string></field>
- </object>
- </value>
- </collection>
- </field>
-
- <field name="group">
- <collection type="java.util.ArrayList">
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>platform</string></field>
- <field
name="parentId"><string></string></field>
- <field name="description"><string>the
/platform group</string></field>
- <field
name="label"><string>Platform</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>administrators</string></field>
- <field
name="parentId"><string>/platform</string></field>
- <field name="description"><string>the
/platform/administrators group</string></field>
- <field
name="label"><string>Administrators</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>users</string></field>
- <field
name="parentId"><string>/platform</string></field>
- <field name="description"><string>the
/platform/users group</string></field>
- <field
name="label"><string>Users</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>guests</string></field>
- <field
name="parentId"><string>/platform</string></field>
- <field name="description"><string>the
/platform/guests group</string></field>
- <field
name="label"><string>Guests</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>organization</string></field>
- <field
name="parentId"><string></string></field>
- <field name="description"><string>the
organization group</string></field>
- <field
name="label"><string>Organization</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>management</string></field>
- <field
name="parentId"><string>/organization</string></field>
- <field name="description"><string>the
/organization/management group</string></field>
- <field
name="label"><string>Management</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>executive-board</string></field>
- <field
name="parentId"><string>/organization/management</string></field>
- <field name="description"><string>the
/organization/management/executive-board group</string></field>
- <field name="label"><string>Executive
Board</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>human-resources</string></field>
- <field
name="parentId"><string>/organization/management</string></field>
- <field name="description"><string>the
/organization/management/human-resource group</string></field>
- <field name="label"><string>Human
Resources</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>communication</string></field>
- <field
name="parentId"><string>/organization</string></field>
- <field name="description"><string>the
/organization/communication group</string></field>
- <field
name="label"><string>Communication</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>marketing</string></field>
- <field
name="parentId"><string>/organization/communication</string></field>
- <field name="description"><string>the
/organization/communication/marketing group</string></field>
- <field
name="label"><string>Marketing</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>press-and-media</string></field>
- <field
name="parentId"><string>/organization/communication</string></field>
- <field name="description"><string>the
/organization/communication/press-and-media group</string></field>
- <field name="label"><string>Press and
Media</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>operations</string></field>
- <field
name="parentId"><string>/organization</string></field>
- <field name="description"><string>the
/organization/operations and media group</string></field>
- <field
name="label"><string>Operations</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>sales</string></field>
- <field
name="parentId"><string>/organization/operations</string></field>
- <field name="description"><string>the
/organization/operations/sales group</string></field>
- <field
name="label"><string>Sales</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>finances</string></field>
- <field
name="parentId"><string>/organization/operations</string></field>
- <field name="description"><string>the
/organization/operations/finances group</string></field>
- <field
name="label"><string>Finances</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>customers</string></field>
- <field
name="parentId"><string></string></field>
- <field name="description"><string>the
/customers group</string></field>
- <field
name="label"><string>Customers</string></field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$Group">
- <field
name="name"><string>partners</string></field>
- <field
name="parentId"><string></string></field>
- <field name="description"><string>the
/partners group</string></field>
- <field
name="label"><string>Partners</string></field>
- </object>
- </value>
- </collection>
- </field>
-
- <field name="user">
- <collection type="java.util.ArrayList">
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
- <field
name="userName"><string>root</string></field>
- <field
name="password"><string>gtn</string></field>
- <field
name="firstName"><string>Root</string></field>
- <field
name="lastName"><string>Root</string></field>
- <field
name="email"><string>root@localhost</string></field>
- <field name="groups">
- <string>
- manager:/platform/administrators,member:/platform/users,
- member:/organization/management/executive-board
- </string>
- </field>
- </object>
- </value>
-
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
- <field
name="userName"><string>john</string></field>
- <field
name="password"><string>gtn</string></field>
- <field
name="firstName"><string>John</string></field>
- <field
name="lastName"><string>Anthony</string></field>
- <field
name="email"><string>john@localhost</string></field>
- <field name="groups">
- <string>
- member:/platform/administrators,member:/platform/users,
- manager:/organization/management/executive-board
- </string>
- </field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
- <field
name="userName"><string>mary</string></field>
- <field
name="password"><string>gtn</string></field>
- <field
name="firstName"><string>Mary</string></field>
- <field
name="lastName"><string>Kelly</string></field>
- <field
name="email"><string>mary@localhost</string></field>
- <field name="groups">
- <string>member:/platform/users</string>
- </field>
- </object>
- </value>
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
- <field
name="userName"><string>demo</string></field>
- <field
name="password"><string>gtn</string></field>
- <field
name="firstName"><string>Demo</string></field>
- <field
name="lastName"><string>gtn</string></field>
- <field
name="email"><string>demo@localhost</string></field>
- <field name="groups">
-
<string>member:/platform/guests,member:/platform/users</string>
- </field>
- </object>
- </value>
-
- <value>
- <object
type="org.exoplatform.services.organization.OrganizationConfig$User">
- <field
name="userName"><string>overwritelayout</string></field>
- <field
name="password"><string>whatever</string></field>
- <field
name="firstName"><string>whatever</string></field>
- <field
name="lastName"><string>whatever</string></field>
- <field
name="email"><string>whatever@localhost</string></field>
- <field name="groups">
- <string>member:/platform/guests</string>
- </field>
- </object>
- </value>
-
- </collection>
- </field>
- </object>
- </object-param>
- </init-params>
- </component-plugin>
-
- </external-component-plugins>
-
-</configuration>
Modified:
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/AbstractPortalTest.java
===================================================================
---
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/AbstractPortalTest.java 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/AbstractPortalTest.java 2010-01-05
11:57:55 UTC (rev 1159)
@@ -33,7 +33,7 @@
@ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/jcr/jcr-configuration.xml"),
@ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/organization/organization-configuration.xml"),
@ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/portal/portal-configuration.xml"),
- @ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/test-configuration.xml")
+ @ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/portal-configuration.xml")
})
public abstract class AbstractPortalTest extends AbstractGateInTest
{
Modified:
portal/trunk/component/test/core/src/main/java/org/exoplatform/component/test/AbstractGateInTest.java
===================================================================
---
portal/trunk/component/test/core/src/main/java/org/exoplatform/component/test/AbstractGateInTest.java 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/test/core/src/main/java/org/exoplatform/component/test/AbstractGateInTest.java 2010-01-05
11:57:55 UTC (rev 1159)
@@ -18,12 +18,17 @@
*/
package org.exoplatform.component.test;
+import junit.framework.AssertionFailedError;
import junit.framework.TestCase;
import org.exoplatform.container.PortalContainer;
import org.exoplatform.container.component.RequestLifeCycle;
+import java.io.File;
+import java.io.FilenameFilter;
+import java.util.ArrayList;
import java.util.EnumMap;
import java.util.HashSet;
+import java.util.List;
import java.util.Set;
/**
@@ -36,6 +41,9 @@
public abstract class AbstractGateInTest extends TestCase
{
+ /** The system property for gatein tmp dir. */
+ private static final String TMP_DIR = "gatein.tmp.dir";
+
/** . */
private PortalContainer container;
@@ -92,6 +100,60 @@
}
}
+ // Take care of creating tmp directory for unit test
+ if (System.getProperty(TMP_DIR) == null)
+ {
+ // Get base dir set by maven or die
+ File targetDir = new File(new File(System.getProperty("basedir")),
"target");
+ if (!targetDir.exists())
+ {
+ throw new AssertionFailedError("Target dir for unit test does not
exist");
+ }
+ if (!targetDir.isDirectory())
+ {
+ throw new AssertionFailedError("Target dir is not a directory");
+ }
+ if (!targetDir.canWrite())
+ {
+ throw new AssertionFailedError("Target dir is not writable");
+ }
+
+ //
+ Set<String> fileNames = new HashSet<String>();
+ for (File child : targetDir.listFiles(new FilenameFilter()
+ {
+ public boolean accept(File dir, String name)
+ {
+ return name.startsWith("gateintest-");
+ }
+ }))
+ {
+ fileNames.add(child.getName());
+ }
+
+ //
+ String fileName;
+ int count = 0;
+ while (true)
+ {
+ fileName = "gateintest-" + count;
+ if (!fileNames.contains(fileName)) {
+ break;
+ }
+ count++;
+ }
+
+ //
+ File tmp = new File(targetDir, fileName);
+ if (!tmp.mkdirs())
+ {
+ throw new AssertionFailedError("Could not create directory " +
tmp.getCanonicalPath());
+ }
+
+ //
+ System.setProperty(TMP_DIR, tmp.getCanonicalPath());
+ }
+
//
// List<Throwable> failures = new ArrayList<Throwable>();
Modified:
portal/trunk/component/test/core/src/main/resources/conf/portal-configuration.xml
===================================================================
---
portal/trunk/component/test/core/src/main/resources/conf/portal-configuration.xml 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/test/core/src/main/resources/conf/portal-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -58,7 +58,7 @@
<name>ref-addresses</name>
<description>ref-addresses</description>
<property name="driverClassName"
value="org.hsqldb.jdbcDriver"/>
- <property name="url"
value="jdbc:hsqldb:file:${basedir}/target/temp/hsqldb"/>
+ <property name="url"
value="jdbc:hsqldb:file:${gatein.tmp.dir}/hsqldb"/>
<property name="username" value="sa"/>
<property name="password" value=""/>
</properties-param>
Modified:
portal/trunk/component/test/core/src/test/java/org/exoplatform/component/test/BootstrapTestCase.java
===================================================================
---
portal/trunk/component/test/core/src/test/java/org/exoplatform/component/test/BootstrapTestCase.java 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/test/core/src/test/java/org/exoplatform/component/test/BootstrapTestCase.java 2010-01-05
11:57:55 UTC (rev 1159)
@@ -24,6 +24,7 @@
import javax.naming.InitialContext;
import javax.sql.DataSource;
+import java.io.File;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
@@ -36,6 +37,9 @@
public class BootstrapTestCase extends AbstractGateInTest
{
+ /** . */
+ private String previousTmpDirPath = null;
+
public void testRequestLifeCycle()
{
PortalContainer container = PortalContainer.getInstance();
@@ -55,4 +59,37 @@
DataSource ds = (DataSource)new InitialContext().lookup("jdbcexo");
assertNotNull(ds);
}
+
+ public void testTmpDir1() throws Exception
+ {
+ ensureTmpDir();
+ }
+
+ public void testTmpDir2() throws Exception
+ {
+ ensureTmpDir();
+ }
+
+ private void ensureTmpDir() throws Exception
+ {
+ String tmpDirPath = System.getProperty("gatein.tmp.dir");
+ assertNotNull(tmpDirPath);
+
+ //
+ if (previousTmpDirPath != null)
+ {
+ assertEquals(previousTmpDirPath, tmpDirPath);
+ }
+ else
+ {
+ previousTmpDirPath = tmpDirPath;
+ }
+
+ //
+ File f = new File(tmpDirPath);
+ assertTrue(f.exists());
+ assertTrue(f.isDirectory());
+ assertTrue(f.canWrite());
+ assertEquals(0, f.list().length);
+ }
}
Modified:
portal/trunk/component/test/jcr/src/main/resources/conf/jcr/repository-configuration.xml
===================================================================
---
portal/trunk/component/test/jcr/src/main/resources/conf/jcr/repository-configuration.xml 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/test/jcr/src/main/resources/conf/jcr/repository-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -34,12 +34,12 @@
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
<property name="max-buffer-size"
value="204800"/>
- <property name="swap-directory"
value="${basedir}/target/temp/jcr/swap/system"/>
+ <property name="swap-directory"
value="${gatein.tmp.dir}/jcr/swap/system"/>
</properties>
<value-storages>
<value-storage id="system"
class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
<properties>
- <property name="path"
value="${basedir}/target/temp/jcr/values/system"/>
+ <property name="path"
value="${gatein.tmp.dir}/jcr/values/system"/>
</properties>
<filters>
<filter property-type="Binary"/>
@@ -61,14 +61,14 @@
</cache>
<query-handler
class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
<properties>
- <property name="index-dir"
value="${basedir}/target/temp/jcr/jcrlucenedb/system"/>
+ <property name="index-dir"
value="${gatein.tmp.dir}/jcr/jcrlucenedb/system"/>
</properties>
</query-handler>
<lock-manager>
<time-out>15m</time-out><!-- 15min -->
<persister
class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
<properties>
- <property name="path"
value="${basedir}/target/temp/jcr/lock/system"/>
+ <property name="path"
value="${gatein.tmp.dir}/jcr/lock/system"/>
</properties>
</persister>
</lock-manager>
@@ -83,12 +83,12 @@
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
<property name="max-buffer-size"
value="204800"/>
- <property name="swap-directory"
value="${basedir}/target/temp/jcr/swap/portal-test"/>
+ <property name="swap-directory"
value="${gatein.tmp.dir}/jcr/swap/portal-test"/>
</properties>
<value-storages>
<value-storage id="portal-test"
class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
<properties>
- <property name="path"
value="${basedir}/target/temp/jcr/values/portal-test"/>
+ <property name="path"
value="${gatein.tmp.dir}/jcr/values/portal-test"/>
</properties>
<filters>
<filter property-type="Binary"/>
@@ -110,14 +110,14 @@
</cache>
<query-handler
class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
<properties>
- <property name="index-dir"
value="${basedir}/target/temp/jcr/jcrlucenedb/portal-test"/>
+ <property name="index-dir"
value="${gatein.tmp.dir}/jcr/jcrlucenedb/portal-test"/>
</properties>
</query-handler>
<lock-manager>
<time-out>15m</time-out><!-- 15min -->
<persister
class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
<properties>
- <property name="path"
value="${basedir}/target/temp/jcr/lock/portal-test"/>
+ <property name="path"
value="${gatein.tmp.dir}/jcr/lock/portal-test"/>
</properties>
</persister>
</lock-manager>
Modified:
portal/trunk/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer/ConsumerRegistryTestCase.java
===================================================================
---
portal/trunk/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer/ConsumerRegistryTestCase.java 2010-01-05
11:46:42 UTC (rev 1158)
+++
portal/trunk/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer/ConsumerRegistryTestCase.java 2010-01-05
11:57:55 UTC (rev 1159)
@@ -45,7 +45,7 @@
*/
@ConfiguredBy({
@ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/jcr/jcr-configuration.xml"),
- @ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/test-configuration.xml")
+ @ConfigurationUnit(scope = ContainerScope.PORTAL, path =
"conf/wsrp-configuration.xml")
})
public class ConsumerRegistryTestCase extends AbstractGateInTest
{
Deleted: portal/trunk/component/wsrp/src/test/resources/conf/test-configuration.xml
===================================================================
--- portal/trunk/component/wsrp/src/test/resources/conf/test-configuration.xml 2010-01-05
11:46:42 UTC (rev 1158)
+++ portal/trunk/component/wsrp/src/test/resources/conf/test-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-
- Copyright (C) 2009 eXo Platform SAS.
-
- This is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this software; if not, write to the Free
- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-
--->
-
-<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd
http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"
-
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd">
- <component>
- <key>org.exoplatform.commons.chromattic.ChromatticManager</key>
- <type>org.exoplatform.commons.chromattic.ChromatticManager</type>
- </component>
- <external-component-plugins>
-
<target-component>org.exoplatform.services.jcr.RepositoryService</target-component>
- <component-plugin>
- <name>add.namespaces</name>
- <set-method>addPlugin</set-method>
- <type>org.exoplatform.services.jcr.impl.AddNamespacesPlugin</type>
- <init-params>
- <properties-param>
- <name>namespaces</name>
- <property name="wsrp"
value="http://www.gatein.org/jcr/wsrp/1.0/"/>
- </properties-param>
- </init-params>
- </component-plugin>
- <component-plugin>
- <name>add.nodeType</name>
- <set-method>addPlugin</set-method>
- <type>org.exoplatform.services.jcr.impl.AddNodeTypePlugin</type>
- <init-params>
- <values-param>
- <name>autoCreatedInNewRepository</name>
- <description>Node types configuration file</description>
-
<value>jar:/conf/consumers-configuration-nodetypes.xml</value>
- </values-param>
- </init-params>
- </component-plugin>
- </external-component-plugins>
- <external-component-plugins>
-
<target-component>org.exoplatform.commons.chromattic.ChromatticManager</target-component>
- <component-plugin>
- <name>chromattic</name>
- <set-method>addLifeCycle</set-method>
- <type>org.exoplatform.commons.chromattic.ChromatticLifeCycle</type>
- <init-params>
- <value-param>
- <name>domain-name</name>
- <value>wsrp</value>
- </value-param>
- <value-param>
- <name>workspace-name</name>
- <value>portal-test</value>
- </value-param>
- <values-param>
- <name>entities</name>
-
<value>org.gatein.portal.wsrp.state.mapping.RegistrationPropertyDescriptionMapping</value>
-
<value>org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfoMapping</value>
-
<value>org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfosMapping</value>
-
<value>org.gatein.portal.wsrp.state.consumer.mapping.RegistrationInfoMapping</value>
-
<value>org.gatein.portal.wsrp.state.consumer.mapping.RegistrationPropertyMapping</value>
-
<value>org.gatein.portal.wsrp.state.consumer.mapping.EndpointInfoMapping</value>
- </values-param>
- </init-params>
- </component-plugin>
- </external-component-plugins>
-</configuration>
Copied: portal/trunk/component/wsrp/src/test/resources/conf/wsrp-configuration.xml (from
rev 1154, portal/trunk/component/wsrp/src/test/resources/conf/test-configuration.xml)
===================================================================
--- portal/trunk/component/wsrp/src/test/resources/conf/wsrp-configuration.xml
(rev 0)
+++ portal/trunk/component/wsrp/src/test/resources/conf/wsrp-configuration.xml 2010-01-05
11:57:55 UTC (rev 1159)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+ Copyright (C) 2009 eXo Platform SAS.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+
+-->
+
+<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd
http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"
+
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd">
+ <component>
+ <key>org.exoplatform.commons.chromattic.ChromatticManager</key>
+ <type>org.exoplatform.commons.chromattic.ChromatticManager</type>
+ </component>
+ <external-component-plugins>
+
<target-component>org.exoplatform.services.jcr.RepositoryService</target-component>
+ <component-plugin>
+ <name>add.namespaces</name>
+ <set-method>addPlugin</set-method>
+ <type>org.exoplatform.services.jcr.impl.AddNamespacesPlugin</type>
+ <init-params>
+ <properties-param>
+ <name>namespaces</name>
+ <property name="wsrp"
value="http://www.gatein.org/jcr/wsrp/1.0/"/>
+ </properties-param>
+ </init-params>
+ </component-plugin>
+ <component-plugin>
+ <name>add.nodeType</name>
+ <set-method>addPlugin</set-method>
+ <type>org.exoplatform.services.jcr.impl.AddNodeTypePlugin</type>
+ <init-params>
+ <values-param>
+ <name>autoCreatedInNewRepository</name>
+ <description>Node types configuration file</description>
+
<value>jar:/conf/consumers-configuration-nodetypes.xml</value>
+ </values-param>
+ </init-params>
+ </component-plugin>
+ </external-component-plugins>
+ <external-component-plugins>
+
<target-component>org.exoplatform.commons.chromattic.ChromatticManager</target-component>
+ <component-plugin>
+ <name>chromattic</name>
+ <set-method>addLifeCycle</set-method>
+ <type>org.exoplatform.commons.chromattic.ChromatticLifeCycle</type>
+ <init-params>
+ <value-param>
+ <name>domain-name</name>
+ <value>wsrp</value>
+ </value-param>
+ <value-param>
+ <name>workspace-name</name>
+ <value>portal-test</value>
+ </value-param>
+ <values-param>
+ <name>entities</name>
+
<value>org.gatein.portal.wsrp.state.mapping.RegistrationPropertyDescriptionMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfoMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfosMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.RegistrationInfoMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.RegistrationPropertyMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.EndpointInfoMapping</value>
+ </values-param>
+ </init-params>
+ </component-plugin>
+ </external-component-plugins>
+</configuration>