Example #1
0
 /** TestCase 6.3 Test whether a new comment is correctly attached to its parent */
 public void testCommentAssociation() {
   TopicModel testTopic = new TopicModel();
   CommentModel testComment = new CommentModel();
   testTopic.addChildComment(testComment);
   testComment.setMyParent(testTopic);
   assertSame("Comment not properly associated with Topic", testComment.getMyParent(), testTopic);
 }
Example #2
0
 /** TestCase 5.1 Test whether a topic's comments are displayed */
 public void testCommentDisplay() {
   TopicModel testTopic = new TopicModel();
   CommentModel testComment = new CommentModel();
   testTopic.addChildComment(testComment);
 }