com.silverpeas.comment.service
Class DefaultCommentServiceTest

java.lang.Object
  extended by com.silverpeas.comment.service.AbstractCommentTest
      extended by com.silverpeas.comment.service.DefaultCommentServiceTest

public class DefaultCommentServiceTest
extends AbstractCommentTest

Unit tests on the DefaultCommentService behaviour.


Field Summary
static String TEST_RESOURCE_TYPE
           
 
Constructor Summary
DefaultCommentServiceTest()
           
 
Method Summary
 void emptyTest()
          Empty test just to check all is ok before any test running.
protected  CommentService getCommentService()
          Gets a DefaultCommentService instance with which tests has to be performed.
 void setUp()
           
 void subscribersShouldBeInvokedAtCommentAdding()
          When a comment is added, then any listeners subscribed for a such events should be invoked.
 void subscribersShouldBeInvokedAtCommentDeletion()
          When a comment is deleted, then any listeners subscribed for a such events should be invoked.
 void subscribersShouldBeInvokedAtSeveralCommentsDeletion()
          When several comments are deleted, then any listeners subscribed for a such events should be invoked.
 void tearDown()
           
 
Methods inherited from class com.silverpeas.comment.service.AbstractCommentTest
boostrapMessagingSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_RESOURCE_TYPE

public static final String TEST_RESOURCE_TYPE
See Also:
Constant Field Values
Constructor Detail

DefaultCommentServiceTest

public DefaultCommentServiceTest()
Method Detail

setUp

public void setUp()

tearDown

public void tearDown()

emptyTest

public void emptyTest()
Empty test just to check all is ok before any test running.


subscribersShouldBeInvokedAtCommentAdding

public void subscribersShouldBeInvokedAtCommentAdding()
                                               throws Exception
When a comment is added, then any listeners subscribed for a such events should be invoked.

Throws:
Exception - if an error occurs during the test execution.

subscribersShouldBeInvokedAtCommentDeletion

public void subscribersShouldBeInvokedAtCommentDeletion()
                                                 throws Exception
When a comment is deleted, then any listeners subscribed for a such events should be invoked.

Throws:
Exception - if an error occurs during the test execution.

subscribersShouldBeInvokedAtSeveralCommentsDeletion

public void subscribersShouldBeInvokedAtSeveralCommentsDeletion()
                                                         throws Exception
When several comments are deleted, then any listeners subscribed for a such events should be invoked.

Throws:
Exception - if an error occurs during the test execution.

getCommentService

protected CommentService getCommentService()
Gets a DefaultCommentService instance with which tests has to be performed.

Returns:
a DefaultCommentService object to test.


Copyright © 2016 Silverpeas. All Rights Reserved.