com.silverpeas.comment.web
Class CommentUpdateTest

java.lang.Object
  extended by com.sun.jersey.test.framework.JerseyTest
      extended by com.silverpeas.web.RESTWebServiceTest<T>
          extended by com.silverpeas.web.ResourceUpdateTest<CommentTestResources>
              extended by com.silverpeas.comment.web.CommentUpdateTest
All Implemented Interfaces:
WebResourceTesting

public class CommentUpdateTest
extends ResourceUpdateTest<CommentTestResources>

Unit tests on the update of a comment through the CommentResource web service.


Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebServiceTest
CONTEXT_NAME
 
Fields inherited from interface com.silverpeas.web.WebResourceTesting
HTTP_SESSIONKEY
 
Constructor Summary
CommentUpdateTest()
           
 
Method Summary
 CommentEntity anInvalidResource()
           
 String anUnexistingResourceURI()
           
 CommentEntity aResource()
           
 String aResourceURI()
           
 String[] getExistingComponentInstances()
           
 String getSessionKey()
           
 Class<?> getWebEntityClass()
           
static void prepareMessagingContext()
           
 void prepareTestResources()
           
static void releaseMessagingContext()
           
 void updateAnExistingComment()
           
 
Methods inherited from class com.silverpeas.web.ResourceUpdateTest
putAt, updateOfAnUnexistingResource, updateOfAResourceByANonAuthenticatedUser, updateOfAResourceFromAnInvalidOne, updateOfAResourceWithinADeprecatedSession, updateOfResourceByANonAuthorizedUser, updateWithAnInvalidResourceState
 
Methods inherited from class com.silverpeas.web.RESTWebServiceTest
addComponentInstance, addTool, aUser, authenticate, buildQueryParametersFrom, denieAuthorizationToUsers, denieSpaceAuthorizationToUsers, getAccessControllerMock, getExistingTools, getMockedSpaceAccessController, getOrganizationControllerMock, getPersonalizationServiceMock, getTestResources, prepareMockedResources, resource, setComponentAccessibilityToUser
 
Methods inherited from class com.sun.jersey.test.framework.JerseyTest
client, configure, getBaseURI, getClient, getClientFactory, getPort, getTestContainerFactory, setClientFactory, setTestContainerFactory, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentUpdateTest

public CommentUpdateTest()
Method Detail

prepareMessagingContext

public static void prepareMessagingContext()
                                    throws Exception
Throws:
Exception

releaseMessagingContext

public static void releaseMessagingContext()
                                    throws Exception
Throws:
Exception

prepareTestResources

public void prepareTestResources()

updateAnExistingComment

public void updateAnExistingComment()

anInvalidResource

public CommentEntity anInvalidResource()
Specified by:
anInvalidResource in class ResourceUpdateTest<CommentTestResources>

aResourceURI

public String aResourceURI()

anUnexistingResourceURI

public String anUnexistingResourceURI()

aResource

public CommentEntity aResource()

getSessionKey

public String getSessionKey()

getWebEntityClass

public Class<?> getWebEntityClass()

getExistingComponentInstances

public String[] getExistingComponentInstances()
Specified by:
getExistingComponentInstances in class RESTWebServiceTest<CommentTestResources>


Copyright © 2016 Silverpeas. All Rights Reserved.