com.silverpeas.comment.dao
Class CommentRequesterTest

java.lang.Object
  extended by com.silverpeas.comment.dao.CommentRequesterTest

@ContextConfiguration(locations="/spring-comment-dao.xml")
public class CommentRequesterTest
extends Object


Field Summary
protected static SilverpeasJndiCase baseTest
           
 
Constructor Summary
CommentRequesterTest()
           
 
Method Summary
static void generalSetUp()
           
 void prepareTest()
           
 void tearDown()
           
 void testCreateComment()
          Test of createComment method, of class JDBCCommentRequester.
 void testDeleteAllComments()
          Test of deleteAllComments method, of class JDBCCommentRequester.
 void testDeleteAllCommentsOnInstanceIdOnly()
          Test of deleteAllComments method, of class JDBCCommentRequester.
 void testDeleteAllCommentsOnNullValues()
          Test of deleteAllComments method, of class JDBCCommentRequester.
 void testDeleteAllCommentsOnResourceIdOnly()
          Test of deleteAllComments method, of class JDBCCommentRequester.
 void testDeleteAllCommentsOnResourceTypeOnly()
          Test of deleteAllComments method, of class JDBCCommentRequester.
 void testDeleteComment()
          Test of createComment method, of class JDBCCommentRequester.
 void testGetAllComments()
          Test of getAllComments method, of class JDBCCommentRequester.
 void testGetComment()
          Test of createComment method, of class JDBCCommentRequester.
 void testGetCommentsCount()
          Test of getCommentsCount method, of class JDBCCommentRequester.
 void testGetDataWithNoFiltersShouldNotWork()
          Test of getSocialInformationCommentsListByUserId method, of class JDBCCommentRequester.
 void testGetLast2Comments()
           
 void testGetLastComments()
           
 void testGetMostCommentedAllPublications()
          Test of getMostCommentedAllPublications method, of class JDBCCommentRequester.
 void testGetMostCommentedAllPublicationsForAGivenResourceType()
           
 void testGetNoLastComments()
           
 void testGetSocialInformationCommentsAndApplyingAllFilters()
          Test of getSocialInformationCommentsListByUserId method, of class JDBCCommentRequester.
 void testGetSocialInformationCommentsFilteredOnInstanceId()
          Test of getSocialInformationComments method, of class JDBCCommentRequester.
 void testGetSocialInformationCommentsFilteredOnPeriod()
          Test of getSocialInformationComments method, of class JDBCCommentRequester.
 void testGetSocialInformationCommentsFilteredOnResourceTypes()
          Test of getSocialInformationComments method, of class JDBCCommentRequester.
 void testGetSocialInformationCommentsFilteredOnUserId()
          Test of getSocialInformationComments method, of class JDBCCommentRequester.
 void testGetSocialInformationCommentsForOneUser()
          Test of getSocialInformationComments method, of class JDBCCommentRequester.
 void testGetSocialInformationCommentsReturningOneSocialInformationOfCreation()
          Test of getSocialInformationComments method, of class JDBCCommentRequester.
 void testMoveComment()
          Test of createComment method, of class JDBCCommentRequester.
 void testUpdateComment()
          Test of createComment method, of class JDBCCommentRequester.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseTest

protected static SilverpeasJndiCase baseTest
Constructor Detail

CommentRequesterTest

public CommentRequesterTest()
Method Detail

generalSetUp

public static void generalSetUp()
                         throws Exception
Throws:
Exception

prepareTest

public void prepareTest()
                 throws Exception
Throws:
Exception

tearDown

public void tearDown()

testCreateComment

public void testCreateComment()
                       throws Exception
Test of createComment method, of class JDBCCommentRequester.

Throws:
Exception

testGetLast2Comments

public void testGetLast2Comments()
                          throws Exception
Throws:
Exception

testGetLastComments

public void testGetLastComments()
                         throws Exception
Throws:
Exception

testGetNoLastComments

public void testGetNoLastComments()
                           throws Exception
Throws:
Exception

testGetComment

public void testGetComment()
                    throws Exception
Test of createComment method, of class JDBCCommentRequester.

Throws:
Exception

testDeleteComment

public void testDeleteComment()
                       throws Exception
Test of createComment method, of class JDBCCommentRequester.

Throws:
Exception

testUpdateComment

public void testUpdateComment()
                       throws Exception
Test of createComment method, of class JDBCCommentRequester.

Throws:
Exception

testMoveComment

public void testMoveComment()
                     throws Exception
Test of createComment method, of class JDBCCommentRequester.

Throws:
Exception

testGetMostCommentedAllPublications

public void testGetMostCommentedAllPublications()
                                         throws Exception
Test of getMostCommentedAllPublications method, of class JDBCCommentRequester.

Throws:
Exception

testGetMostCommentedAllPublicationsForAGivenResourceType

public void testGetMostCommentedAllPublicationsForAGivenResourceType()
                                                              throws Exception
Throws:
Exception

testGetCommentsCount

public void testGetCommentsCount()
                          throws Exception
Test of getCommentsCount method, of class JDBCCommentRequester.

Throws:
Exception

testGetAllComments

public void testGetAllComments()
                        throws Exception
Test of getAllComments method, of class JDBCCommentRequester.

Throws:
Exception

testDeleteAllComments

public void testDeleteAllComments()
                           throws Exception
Test of deleteAllComments method, of class JDBCCommentRequester.

Throws:
Exception

testDeleteAllCommentsOnNullValues

public void testDeleteAllCommentsOnNullValues()
                                       throws Exception
Test of deleteAllComments method, of class JDBCCommentRequester.

Throws:
Exception

testDeleteAllCommentsOnResourceTypeOnly

public void testDeleteAllCommentsOnResourceTypeOnly()
                                             throws Exception
Test of deleteAllComments method, of class JDBCCommentRequester.

Throws:
Exception

testDeleteAllCommentsOnResourceIdOnly

public void testDeleteAllCommentsOnResourceIdOnly()
                                           throws Exception
Test of deleteAllComments method, of class JDBCCommentRequester.

Throws:
Exception

testDeleteAllCommentsOnInstanceIdOnly

public void testDeleteAllCommentsOnInstanceIdOnly()
                                           throws Exception
Test of deleteAllComments method, of class JDBCCommentRequester.

Throws:
Exception

testGetDataWithNoFiltersShouldNotWork

public void testGetDataWithNoFiltersShouldNotWork()
                                           throws Exception
Test of getSocialInformationCommentsListByUserId method, of class JDBCCommentRequester.

Throws:
Exception

testGetSocialInformationCommentsReturningOneSocialInformationOfCreation

public void testGetSocialInformationCommentsReturningOneSocialInformationOfCreation()
                                                                             throws Exception
Test of getSocialInformationComments method, of class JDBCCommentRequester.

Throws:
Exception

testGetSocialInformationCommentsForOneUser

public void testGetSocialInformationCommentsForOneUser()
                                                throws Exception
Test of getSocialInformationComments method, of class JDBCCommentRequester.

Throws:
Exception

testGetSocialInformationCommentsFilteredOnUserId

public void testGetSocialInformationCommentsFilteredOnUserId()
                                                      throws Exception
Test of getSocialInformationComments method, of class JDBCCommentRequester.

Throws:
Exception

testGetSocialInformationCommentsFilteredOnResourceTypes

public void testGetSocialInformationCommentsFilteredOnResourceTypes()
                                                             throws Exception
Test of getSocialInformationComments method, of class JDBCCommentRequester.

Throws:
Exception

testGetSocialInformationCommentsFilteredOnInstanceId

public void testGetSocialInformationCommentsFilteredOnInstanceId()
                                                          throws Exception
Test of getSocialInformationComments method, of class JDBCCommentRequester.

Throws:
Exception

testGetSocialInformationCommentsFilteredOnPeriod

public void testGetSocialInformationCommentsFilteredOnPeriod()
                                                      throws Exception
Test of getSocialInformationComments method, of class JDBCCommentRequester.

Throws:
Exception

testGetSocialInformationCommentsAndApplyingAllFilters

public void testGetSocialInformationCommentsAndApplyingAllFilters()
                                                           throws Exception
Test of getSocialInformationCommentsListByUserId method, of class JDBCCommentRequester.

Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.