コード例 #1
0
 @Before
 public void setUp() throws Exception {
   comment = new Comment();
   comment.setProjectId(projectId);
   comment.setCreatedOn(createdOn);
   comment.setUserId(userId);
   comment.setCommentText(commentText);
 }
コード例 #2
0
 @Test
 public void getCommentText() throws Exception {
   assertEquals(comment.getCommentText(), commentText);
 }
コード例 #3
0
 @Test
 public void getUserId() throws Exception {
   assertEquals(comment.getUserId(), userId);
 }
コード例 #4
0
 @Test
 public void getCreatedOn() throws Exception {
   assertEquals(comment.getCreatedOn(), createdOn);
 }
コード例 #5
0
 @Test
 public void getProjectId() throws Exception {
   assertEquals(comment.getProjectId(), projectId);
 }
コード例 #6
0
 @Test
 public void getId() throws Exception {
   assertNotNull(comment.getId());
 }