@Before public void setUp() throws Exception { comment = new Comment(); comment.setProjectId(projectId); comment.setCreatedOn(createdOn); comment.setUserId(userId); comment.setCommentText(commentText); }
@Test public void getCommentText() throws Exception { assertEquals(comment.getCommentText(), commentText); }
@Test public void getUserId() throws Exception { assertEquals(comment.getUserId(), userId); }
@Test public void getCreatedOn() throws Exception { assertEquals(comment.getCreatedOn(), createdOn); }
@Test public void getProjectId() throws Exception { assertEquals(comment.getProjectId(), projectId); }
@Test public void getId() throws Exception { assertNotNull(comment.getId()); }