[gatein-commits] gatein SVN: r3265 - in portal/trunk/webui/core/src: test and 2 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jun 9 00:32:20 EDT 2010


Author: trong.tran
Date: 2010-06-09 00:32:19 -0400 (Wed, 09 Jun 2010)
New Revision: 3265

Added:
   portal/trunk/webui/core/src/test/resources/
   portal/trunk/webui/core/src/test/resources/webui-configuration.xml
Removed:
   portal/trunk/webui/core/src/main/resources/webui-configuration.xml
Modified:
   portal/trunk/webui/core/src/test/java/org/exoplatform/webui/test/TestApplication.java
Log:
Update tests failed

Deleted: portal/trunk/webui/core/src/main/resources/webui-configuration.xml
===================================================================
--- portal/trunk/webui/core/src/main/resources/webui-configuration.xml	2010-06-09 04:13:18 UTC (rev 3264)
+++ portal/trunk/webui/core/src/main/resources/webui-configuration.xml	2010-06-09 04:32:19 UTC (rev 3265)
@@ -1,107 +0,0 @@
-<!--
-
-    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.
-
--->
-
-<webui-configuration>
-  <annotation-classes>
-    <class>org.exoplatform.webui.test.UIComponentAnnotation</class>
-  </annotation-classes>
-  
-  <!--
-  <includes>
-    <url>path</url>
-  </includes>
-  -->
-  
-  <ui-component-config id="id">
-    <type>UIExoComponent</type>
-    <lifecycle>lifecycle</lifecycle>    
-    <template>..............................</template>
-    <decorator>............................</decorator>
-
-    <init-params>
-      <param><name>name</name><value>value</value></param>
-    </init-params>
-    
-    <validators>
-      <validator>
-        <type>class.name</type>
-        <init-params>
-          <param><name>name</name><value>value</value></param>
-        </init-params>
-      </validator>
-    </validators>
-
-    <events>
-      <event>
-        <event-name>name</event-name>
-        <execution-phase>decode</execution-phase>    
-        <init-params>
-          <param><name>name</name><value>value</value></param>
-        </init-params>
-        <listener>class.type</listener>
-        <listener>class.type</listener>    
-      </event>
-
-      <event>
-        <event-name>name</event-name>
-        <execution-phase>any</execution-phase>
-        <listener>class.type</listener>
-        <listener>class.type</listener>
-      </event>
-    </events>
-    
-    <event-interceptors>
-      <event-interceptor>
-        <type>class.name</type>
-        <init-params>
-          <param><name>name</name><value>value</value></param>
-        </init-params>        
-        <interceptor>class.type</interceptor>
-        <interceptor>class.type</interceptor>
-      </event-interceptor>      
-    </event-interceptors>    
-  </ui-component-config>
-
-  <application>     
-    <init-params>
-      <param><name>name</name><value>value</value></param>
-    </init-params>
-
-    <ui-component-root>org.exoplatform.portal.component.UIPortalApplication</ui-component-root>    
-    <state-manager>org.exoplatform.webui.application.mock.MockStateManager</state-manager>    
-    
-    <application-lifecycle-listeners>       
-      <listener>org.exoplatform.webui.application.MonitorApplicationLifecycle</listener>       
-    </application-lifecycle-listeners>     
-
-    <events>
-      <event>
-        <event-name>name</event-name>
-        <execution-phase>process</execution-phase> 
-        <init-params>
-          <param><name>name</name><value>value</value></param>
-        </init-params>
-        <listener>class.type</listener>
-        <listener>class.type</listener>
-      </event>
-    </events>
-  </application>
-</webui-configuration>

Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/test/TestApplication.java
===================================================================
--- portal/trunk/webui/core/src/test/java/org/exoplatform/webui/test/TestApplication.java	2010-06-09 04:13:18 UTC (rev 3264)
+++ portal/trunk/webui/core/src/test/java/org/exoplatform/webui/test/TestApplication.java	2010-06-09 04:32:19 UTC (rev 3265)
@@ -40,7 +40,7 @@
       initParams.put("webui.configuration", "webui.configuration");
 
       String basedir = System.getProperty("basedir");
-      String webuiConfig = basedir + "/src/main/resources/webui-configuration.xml";
+      String webuiConfig = basedir + "/src/test/resources/webui-configuration.xml";
       Map<String, URL> resources = new HashMap<String, URL>();
       resources.put("webui.configuration", new File(webuiConfig).toURL());
       initParams.put("webui.configuration", new File(webuiConfig).toURL().toString());

Copied: portal/trunk/webui/core/src/test/resources/webui-configuration.xml (from rev 3255, portal/trunk/webui/core/src/main/resources/webui-configuration.xml)
===================================================================
--- portal/trunk/webui/core/src/test/resources/webui-configuration.xml	                        (rev 0)
+++ portal/trunk/webui/core/src/test/resources/webui-configuration.xml	2010-06-09 04:32:19 UTC (rev 3265)
@@ -0,0 +1,107 @@
+<!--
+
+    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.
+
+-->
+
+<webui-configuration>
+  <annotation-classes>
+    <class>org.exoplatform.webui.test.UIComponentAnnotation</class>
+  </annotation-classes>
+  
+  <!--
+  <includes>
+    <url>path</url>
+  </includes>
+  -->
+  
+  <ui-component-config id="id">
+    <type>UIExoComponent</type>
+    <lifecycle>lifecycle</lifecycle>    
+    <template>..............................</template>
+    <decorator>............................</decorator>
+
+    <init-params>
+      <param><name>name</name><value>value</value></param>
+    </init-params>
+    
+    <validators>
+      <validator>
+        <type>class.name</type>
+        <init-params>
+          <param><name>name</name><value>value</value></param>
+        </init-params>
+      </validator>
+    </validators>
+
+    <events>
+      <event>
+        <event-name>name</event-name>
+        <execution-phase>decode</execution-phase>    
+        <init-params>
+          <param><name>name</name><value>value</value></param>
+        </init-params>
+        <listener>class.type</listener>
+        <listener>class.type</listener>    
+      </event>
+
+      <event>
+        <event-name>name</event-name>
+        <execution-phase>any</execution-phase>
+        <listener>class.type</listener>
+        <listener>class.type</listener>
+      </event>
+    </events>
+    
+    <event-interceptors>
+      <event-interceptor>
+        <type>class.name</type>
+        <init-params>
+          <param><name>name</name><value>value</value></param>
+        </init-params>        
+        <interceptor>class.type</interceptor>
+        <interceptor>class.type</interceptor>
+      </event-interceptor>      
+    </event-interceptors>    
+  </ui-component-config>
+
+  <application>     
+    <init-params>
+      <param><name>name</name><value>value</value></param>
+    </init-params>
+
+    <ui-component-root>org.exoplatform.portal.component.UIPortalApplication</ui-component-root>    
+    <state-manager>org.exoplatform.webui.test.MockStateManager</state-manager>    
+    
+    <application-lifecycle-listeners>       
+      <listener>org.exoplatform.webui.application.MonitorApplicationLifecycle</listener>       
+    </application-lifecycle-listeners>     
+
+    <events>
+      <event>
+        <event-name>name</event-name>
+        <execution-phase>process</execution-phase> 
+        <init-params>
+          <param><name>name</name><value>value</value></param>
+        </init-params>
+        <listener>class.type</listener>
+        <listener>class.type</listener>
+      </event>
+    </events>
+  </application>
+</webui-configuration>



More information about the gatein-commits mailing list