Changeset 5549 for ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/CommentsDaoTest.java
- Timestamp:
- 08/11/14 16:07:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/CommentsDaoTest.java
r4098 r5549 93 93 @Test 94 94 public void testGetCommentsFromProfile() { 95 List<Comment> descriptions = commentsDao.getCommentsFrom Component(TEST_COMMENT_PROFILE_ID);95 List<Comment> descriptions = commentsDao.getCommentsFromItem(TEST_COMMENT_PROFILE_ID); 96 96 assertNotNull(descriptions); 97 97 … … 102 102 commentsDao.save(comment1); 103 103 104 descriptions = commentsDao.getCommentsFrom Component(TEST_COMMENT_PROFILE_ID);104 descriptions = commentsDao.getCommentsFromItem(TEST_COMMENT_PROFILE_ID); 105 105 assertEquals(size + 1, descriptions.size()); 106 106 … … 110 110 commentsDao.save(comment2); 111 111 112 descriptions = commentsDao.getCommentsFrom Component(TEST_COMMENT_PROFILE_ID);112 descriptions = commentsDao.getCommentsFromItem(TEST_COMMENT_PROFILE_ID); 113 113 assertEquals(size + 2, descriptions.size()); 114 114 } … … 116 116 @Test 117 117 public void testGetCommentsFromComponent() { 118 List<Comment> descriptions = commentsDao.getCommentsFrom Component(TEST_COMMENT_COMPONENT_ID);118 List<Comment> descriptions = commentsDao.getCommentsFromItem(TEST_COMMENT_COMPONENT_ID); 119 119 assertNotNull(descriptions); 120 120 … … 125 125 commentsDao.saveAndFlush(comment1); 126 126 127 descriptions = commentsDao.getCommentsFrom Component(TEST_COMMENT_COMPONENT_ID);127 descriptions = commentsDao.getCommentsFromItem(TEST_COMMENT_COMPONENT_ID); 128 128 assertEquals(size + 1, descriptions.size()); 129 129 … … 133 133 commentsDao.saveAndFlush(comment2); 134 134 135 descriptions = commentsDao.getCommentsFrom Component(TEST_COMMENT_COMPONENT_ID);135 descriptions = commentsDao.getCommentsFromItem(TEST_COMMENT_COMPONENT_ID); 136 136 assertEquals(size + 2, descriptions.size()); 137 137 }
Note: See TracChangeset
for help on using the changeset viewer.