예제 #1
0
 /** TestCase 13.1 Test whether a comment can be edited */
 public void testEditComment() {
   CommentModel testComment = new CommentModel();
   String string = "This is a test text";
   testComment.setCommentText(string);
   assertEquals("Check if comment is set before edit", string, testComment.getCommentText());
   String string1 = "Changed the text";
   testComment.setCommentText(string1);
   assertNotSame("Check if the edit occured", string, testComment.getCommentText());
 }