Changeset 1895 for ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/CommentsDaoTest.java
- Timestamp:
- 04/20/12 12:59:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/CommentsDaoTest.java
r1697 r1895 78 78 assertEquals(TEST_COMMENT_USER_NAME, comments.get(0).getUserName()); 79 79 assertEquals(Integer.toString(TEST_COMMENT_USER_ID), comments.get(0).getUserId()); 80 } 81 82 @Test 83 public void testGetById() { 84 Comment comment1 = createTestComment(); 85 comment1.setProfileDescriptionId(TEST_COMMENT_PROFILE_ID); 86 Number commentId = commentsDao.insertComment(comment1, TEST_COMMENT_USER_ID); 87 Comment commentById = commentsDao.getById(commentId); 88 assertEquals(TEST_COMMENT_PROFILE_ID, commentById.getProfileDescriptionId()); 89 assertEquals(TEST_COMMENT_NAME, commentById.getComment()); 80 90 } 81 91
Note: See TracChangeset
for help on using the changeset viewer.