Author: julien(a)jboss.com
Date: 2007-02-02 12:31:13 -0500 (Fri, 02 Feb 2007)
New Revision: 6148
Modified:
trunk/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectContainerTestCase.java
Log:
fixes issue with test case that had to be modified to prefix the content state properties
with "content."
Modified:
trunk/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectContainerTestCase.java
===================================================================
---
trunk/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectContainerTestCase.java 2007-02-02
16:19:52 UTC (rev 6147)
+++
trunk/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectContainerTestCase.java 2007-02-02
17:31:13 UTC (rev 6148)
@@ -110,7 +110,7 @@
handler.start();
}
- protected void tearDown() throws Exception
+ public void tearDown() throws Exception
{
super.tearDown();
handler.destroy();
@@ -255,6 +255,10 @@
assertTrue(hibernate.commitTransaction());
}
+ /**
+ * @todo test contentState / get/set property
+ * @throws Exception
+ */
public void testCopy() throws Exception
{
PortalObjectId defaultId = new PortalObjectId(new String[]{"portal"});
@@ -274,7 +278,7 @@
assertNotNull(content);
ContentState contentState = content.getState();
assertNotNull(contentState);
- contentState.setProperty("abc", "def");
+ contentState.setProperty("content.abc", "def");
assertTrue(hibernate.commitTransaction());
//
@@ -298,7 +302,7 @@
assertNotNull(content);
contentState = content.getState();
assertNotNull(contentState);
- assertEquals("def", contentState.getProperty("abc"));
+ assertEquals("def", contentState.getProperty("content.abc"));
assertTrue(hibernate.commitTransaction());
}