|
From: <ssk...@re...> - 2005-02-03 18:37:43
|
Author: sskracic
Date: 2005-02-03 19:37:09 +0100 (Thu, 03 Feb 2005)
New Revision: 194
Modified:
ccm-forum/trunk/test/src/com/arsdigita/forum/PostTest.java
Log:
Post API has been changed, test updated to reflect this.
Modified: ccm-forum/trunk/test/src/com/arsdigita/forum/PostTest.java
===================================================================
--- ccm-forum/trunk/test/src/com/arsdigita/forum/PostTest.java 2005-02-03 18:30:56 UTC (rev 193)
+++ ccm-forum/trunk/test/src/com/arsdigita/forum/PostTest.java 2005-02-03 18:37:09 UTC (rev 194)
@@ -150,6 +150,7 @@
CategoryCollection categories = root.getChildren();
assertTrue("has at least one category", categories.next());
Category postCategory = categories.getCategory();
+ categories.close();
// Create a new post and categorize it
@@ -173,7 +174,10 @@
// Verify that the category now contains one child object.
assertEquals(1, postCategory.getNumberOfChildObjects());
- assertEquals(postCategory, post.getCategory());
+ CategoryCollection result = post.getCategories();
+ assertTrue("has at least one category", result.next());
+ assertEquals(postCategory, result.getCategory());
+ result.close();
}
|