Changeset 1640 for ComponentRegistry/branches/jeaferversion/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/CommentsDaoTest.java
- Timestamp:
- 12/08/11 12:53:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/jeaferversion/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/CommentsDaoTest.java
r1639 r1640 44 44 Comment comment = createTestComment(); 45 45 46 String testComment = comment.getComment();47 46 assertEquals(0, commentsDao.getAllComments().size()); 48 Number newId = commentsDao.insertComment(comment, testComment,Integer.parseInt(TEST_COMMENT_USER_ID));47 Number newId = commentsDao.insertComment(comment, Integer.parseInt(TEST_COMMENT_USER_ID)); 49 48 assertNotNull(newId); 50 49 … … 81 80 public void testGetComment() { 82 81 Comment comment = createTestComment(); 83 String testComment = comment.getComment(); 84 commentsDao.insertComment(comment, testComment, 8); 82 commentsDao.insertComment(comment, 8); 85 83 86 84 assertNotNull(commentsDao.getByComment(TEST_COMMENT_NAME)); … … 101 99 public void testSetDelete(){ 102 100 Comment comment = createTestComment(); 103 String testComment = comment.getComment();104 101 int count = commentsDao.getAllComments().size(); 105 102 106 commentsDao.insertComment(comment, testComment,8);103 commentsDao.insertComment(comment, 8); 107 104 assertEquals(count + 1, commentsDao.getAllComments().size()); 108 105
Note: See TracChangeset
for help on using the changeset viewer.