package gov.nih.nci.cabig.caaers.domain.workflow;

import junit.framework.TestCase;

import org.apache.commons.lang.StringUtils;

public class ReviewCommentTest extends TestCase {
	ReviewComment comment;
	protected void setUp() throws Exception {
		super.setUp();
		comment = new ReportingPeriodReviewComment();
	}

	public void testGetFullComment() {
		assertTrue(StringUtils.isEmpty(comment.getFullComment()));
		comment.setAutoGeneratedText("Hello");
		assertEquals("Hello", comment.getFullComment());
		comment.setAutoGeneratedText(null);
		assertTrue(StringUtils.isEmpty(comment.getFullComment()));
		comment.setUserComment("World");
		System.out.println(comment.getFullComment());
		assertEquals(" : World", comment.getFullComment());
		
		comment.setAutoGeneratedText("Hello");
		assertEquals("Hello : World", comment.getFullComment());
	}

}

@@ -840,11 +840,303 @@
 ());%0A%09%7D%0A
+%09%0A%09%0A%09public void testIsEditable()%7B%0A%09%09assertNull(comment.getEditable());%0A%09%09comment.setEditable(Boolean.TRUE);%0A%09%09assertTrue(comment.getEditable());%0A%09%7D%0A%09%0A%09public void testGetUserId()%7B%0A%09%09assertNull(comment.getUserId());%0A%09%09comment.setUserId(%22abcd%22);%0A%09%09assertEquals(%22abcd%22, comment.getUserId());%0A%09%7D
 %0A%7D%0A

test cases improvement