[gatein-commits] gatein SVN: r4431 - in portal/branches/branch-GTNPORTAL-1493/component/portal/src/test: resources/portal/portal/classic and 1 other directory.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed Sep 29 07:03:53 EDT 2010
Author: phuong_vu
Date: 2010-09-29 07:03:53 -0400 (Wed, 29 Sep 2010)
New Revision: 4431
Modified:
portal/branches/branch-GTNPORTAL-1493/component/portal/src/test/java/org/exoplatform/portal/config/TestJIBXXmlMapping.java
portal/branches/branch-GTNPORTAL-1493/component/portal/src/test/resources/portal/portal/classic/navigation.xml
Log:
GTNPORTAL-1448 Modifing TestJIBXXmlMapping to test removing whitespaces of page-reference
Modified: portal/branches/branch-GTNPORTAL-1493/component/portal/src/test/java/org/exoplatform/portal/config/TestJIBXXmlMapping.java
===================================================================
--- portal/branches/branch-GTNPORTAL-1493/component/portal/src/test/java/org/exoplatform/portal/config/TestJIBXXmlMapping.java 2010-09-29 10:36:43 UTC (rev 4430)
+++ portal/branches/branch-GTNPORTAL-1493/component/portal/src/test/java/org/exoplatform/portal/config/TestJIBXXmlMapping.java 2010-09-29 11:03:53 UTC (rev 4431)
@@ -82,6 +82,9 @@
Object obj =
uctx.unmarshalDocument(new FileInputStream("src/test/resources/portal/portal/classic/navigation.xml"), null);
assertEquals(PageNavigation.class, obj.getClass());
+
+ PageNavigation pageNavigation = (PageNavigation)obj;
+ assertEquals("portal::classic::homepage", pageNavigation.getNode("home").getPageReference());
IMarshallingContext mctx = bfact.createMarshallingContext();
mctx.setIndent(2);
Modified: portal/branches/branch-GTNPORTAL-1493/component/portal/src/test/resources/portal/portal/classic/navigation.xml
===================================================================
--- portal/branches/branch-GTNPORTAL-1493/component/portal/src/test/resources/portal/portal/classic/navigation.xml 2010-09-29 10:36:43 UTC (rev 4430)
+++ portal/branches/branch-GTNPORTAL-1493/component/portal/src/test/resources/portal/portal/classic/navigation.xml 2010-09-29 11:03:53 UTC (rev 4431)
@@ -30,7 +30,9 @@
<uri>home</uri>
<name>home</name>
<label>#{portal.classic.home}</label>
- <page-reference>portal::classic::homepage</page-reference>
+ <page-reference>
+ portal::classic::homepage
+ </page-reference>
</node>
<node>
<uri>webexplorer</uri>
More information about the gatein-commits
mailing list