com.silverpeas.comment.web
Class CommentTestResources
java.lang.Object
com.silverpeas.web.TestResources
com.silverpeas.comment.web.CommentTestResources
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
@Named(value="testRESTResources")
public class CommentTestResources
- extends TestResources
Resources required by all the unit tests on the comment web resource.
| Methods inherited from class com.silverpeas.web.TestResources |
aUser, aUserNamed, getAccessControllerMock, getApplicationContext, getOrganizationControllerMock, getPersonalizationServiceMock, getSessionManagerMock, getSpaceAccessControllerMock, getTestResources, getTokenServiceMock, registerUser, setApplicationContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVA_PACKAGE
public static final String JAVA_PACKAGE
- See Also:
- Constant Field Values
SPRING_CONTEXT
public static final String SPRING_CONTEXT
- See Also:
- Constant Field Values
COMPONENT_INSTANCE_ID
public static final String COMPONENT_INSTANCE_ID
- See Also:
- Constant Field Values
TOOL_ID
public static final String TOOL_ID
- See Also:
- Constant Field Values
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
CONTENT_ID
public static final String CONTENT_ID
- See Also:
- Constant Field Values
RESOURCE_PATH
public static final String RESOURCE_PATH
- See Also:
- Constant Field Values
TOOL_RESOURCE_PATH
public static final String TOOL_RESOURCE_PATH
- See Also:
- Constant Field Values
INVALID_RESOURCE_PATH
public static final String INVALID_RESOURCE_PATH
- See Also:
- Constant Field Values
CommentTestResources
public CommentTestResources()
getCommentService
public CommentService getCommentService()
- Gets the comment service used in tests.
- Returns:
- the comment service used in tests.
theUser
public static CommentBuilder theUser(UserDetail user)
- Gets a comment builder for the specified user.
- Parameters:
user - the user for which a comment builder is provided.
- Returns:
- a comment builder.
save
public void save(Comment... comments)
Copyright © 2016 Silverpeas. All Rights Reserved.