[gatein-commits] gatein SVN: r2443 - in portal/branches/EPP_5_0_Branch/component/portal/src: test/java/org/exoplatform/portal/config and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Apr 1 06:13:33 EDT 2010


Author: thomas.heute at jboss.com
Date: 2010-04-01 06:13:32 -0400 (Thu, 01 Apr 2010)
New Revision: 2443

Modified:
   portal/branches/EPP_5_0_Branch/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
   portal/branches/EPP_5_0_Branch/component/portal/src/test/java/org/exoplatform/portal/config/TestDataStorage.java
Log:
JBEPP-241: Window decorations not properly set

Modified: portal/branches/EPP_5_0_Branch/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
===================================================================
--- portal/branches/EPP_5_0_Branch/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java	2010-04-01 10:10:52 UTC (rev 2442)
+++ portal/branches/EPP_5_0_Branch/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java	2010-04-01 10:13:32 UTC (rev 2443)
@@ -79,6 +79,7 @@
    /** . */
    private static final Set<String> windowPropertiesBlackList =
       Tools.set(
+         MappedAttributes.THEME.getName(),
          MappedAttributes.TYPE.getName(),
          MappedAttributes.ICON.getName(),
          MappedAttributes.WIDTH.getName(),

Modified: portal/branches/EPP_5_0_Branch/component/portal/src/test/java/org/exoplatform/portal/config/TestDataStorage.java
===================================================================
--- portal/branches/EPP_5_0_Branch/component/portal/src/test/java/org/exoplatform/portal/config/TestDataStorage.java	2010-04-01 10:10:52 UTC (rev 2442)
+++ portal/branches/EPP_5_0_Branch/component/portal/src/test/java/org/exoplatform/portal/config/TestDataStorage.java	2010-04-01 10:13:32 UTC (rev 2443)
@@ -227,6 +227,27 @@
       assertEquals(0, page2.getChildren().size());
       assertEquals(true, page2.isShowMaxWindow());
    }
+   
+   public void testChangingPortletThemeInPage() throws Exception {
+      Page page;
+      Application<?> app;
+      
+      page = storage_.getPage("portal::classic::homepage");
+      app = (Application<?>)page.getChildren().get(0);
+      assertEquals(1, page.getChildren().size());
+      app.setTheme("Theme1");
+      storage_.save(page);
+      
+      page = storage_.getPage("portal::classic::homepage");
+      app = (Application<?>)page.getChildren().get(0);
+      assertEquals("Theme1", app.getTheme());
+      app.setTheme("Theme2");
+      storage_.save(page);
+      
+      page = storage_.getPage("portal::classic::homepage");
+      app = (Application<?>)page.getChildren().get(0);
+      assertEquals("Theme2", app.getTheme());
+   }
 
    public void testPageRemove() throws Exception
    {



More information about the gatein-commits mailing list