com.silverpeas.comment.web
Class CommentCreationTest
java.lang.Object
com.sun.jersey.test.framework.JerseyTest
com.silverpeas.web.RESTWebServiceTest<T>
com.silverpeas.web.ResourceCreationTest<CommentTestResources>
com.silverpeas.comment.web.CommentCreationTest
- All Implemented Interfaces:
- WebResourceTesting
public class CommentCreationTest
- extends ResourceCreationTest<CommentTestResources>
Unit tests on the creation of a comment through the CommentResource web service.
| Methods inherited from class com.silverpeas.web.RESTWebServiceTest |
addComponentInstance, addTool, aUser, authenticate, buildQueryParametersFrom, denieAuthorizationToUsers, denieSpaceAuthorizationToUsers, getAccessControllerMock, 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 |
CommentCreationTest
public CommentCreationTest()
prepareMessagingContext
public static void prepareMessagingContext()
throws Exception
- Throws:
Exception
releaseMessagingContext
public static void releaseMessagingContext()
throws Exception
- Throws:
Exception
prepareTestResources
public void prepareTestResources()
postANewComment
public void postANewComment()
postANewCommentFromTool
public void postANewCommentFromTool()
postAnAlreadyExistingComment
public void postAnAlreadyExistingComment()
- In a such situation, the comment is created as a new one.
postAnAlreadyExistingCommentFromTool
public void postAnAlreadyExistingCommentFromTool()
postAnInvalidComment
public void postAnInvalidComment()
aResourceURI
public String aResourceURI()
aToolResourceURI
public String aToolResourceURI()
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>
getExistingTools
public String[] getExistingTools()
- Overrides:
getExistingTools in class RESTWebServiceTest<CommentTestResources>
Copyright © 2016 Silverpeas. All Rights Reserved.