예제 #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);
 }