Author: tam_nguyen
Date: 2009-11-05 04:15:32 -0500 (Thu, 05 Nov 2009)
New Revision: 503
Modified:
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestUserPortalConfigService.java
Log:
GTNPORTAL-119 Problem when clone node
Modified:
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestUserPortalConfigService.java
===================================================================
---
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestUserPortalConfigService.java 2009-11-05
08:57:24 UTC (rev 502)
+++
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestUserPortalConfigService.java 2009-11-05
09:15:32 UTC (rev 503)
@@ -463,6 +463,27 @@
}.execute(null);
}
+ public void testClonePage()
+ {
+ new UnitTest()
+ {
+ public void execute() throws Exception
+ {
+ Page page = new Page();
+ page.setOwnerType("group");
+ page.setOwnerId("/platform/administrators");
+ page.setName("whatever");
+ page.setTitle("testTitle");
+ userPortalConfigSer_.create(page);
+
+ String newName = "newPage";
+ Page newPage = userPortalConfigSer_.renewPage(page.getPageId(), newName,
page.getOwnerType(), page.getOwnerId());
+ assertEquals(newName, newPage.getName());
+ assertEquals(page.getTitle(), newPage.getTitle());
+ }
+ }.execute(null);
+ }
+
public void testUpdatePage()
{
new UnitTest()
Show replies by date