Ignore:
Timestamp:
12/08/11 12:53:53 (12 years ago)
Author:
jeafer
Message:

Jean-Charles branch ComponentRegistry commit5 (functionnal),
Changes regarding comment on the ComponentRegistry.

Modification of classes CommentsDao?
Response class has been split up. A general class ComponentRegistryResponse?
a abstractDescription response: RegisterResponse?
a comment response : CommentResponse?
Improvement of validation process for comments
Improvement of ComponentRegistryRestService?
New classes test CommentResponseTest? and CommentValidatorTest?

Documentation added to most classes
Clean up code in other classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/jeaferversion/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/CommentsDaoTest.java

    r1639 r1640  
    4444        Comment comment = createTestComment();
    4545
    46         String testComment = comment.getComment();
    4746        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));
    4948        assertNotNull(newId);
    5049     
     
    8180    public void testGetComment() {
    8281        Comment comment = createTestComment();
    83         String testComment = comment.getComment();
    84         commentsDao.insertComment(comment, testComment, 8);
     82        commentsDao.insertComment(comment, 8);
    8583
    8684        assertNotNull(commentsDao.getByComment(TEST_COMMENT_NAME));
     
    10199    public void testSetDelete(){
    102100        Comment comment = createTestComment();
    103         String testComment = comment.getComment();
    104101        int count = commentsDao.getAllComments().size();
    105102       
    106         commentsDao.insertComment(comment, testComment, 8);
     103        commentsDao.insertComment(comment, 8);
    107104        assertEquals(count + 1, commentsDao.getAllComments().size());
    108105
Note: See TracChangeset for help on using the changeset viewer.