Пример #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());
 }