com.silverpeas.comment.web
Class CommentTestResources

java.lang.Object
  extended by com.silverpeas.web.TestResources
      extended by 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.


Field Summary
static String COMPONENT_INSTANCE_ID
           
static String CONTENT_ID
           
static String CONTENT_TYPE
           
static String INVALID_RESOURCE_PATH
           
static String JAVA_PACKAGE
           
static String RESOURCE_PATH
           
static String SPRING_CONTEXT
           
static String TOOL_ID
           
static String TOOL_RESOURCE_PATH
           
 
Fields inherited from class com.silverpeas.web.TestResources
DEFAULT_DOMAIN, DEFAULT_LANGUAGE, TEST_RESOURCES_NAME, USER_ID_IN_TEST
 
Constructor Summary
CommentTestResources()
           
 
Method Summary
 CommentService getCommentService()
          Gets the comment service used in tests.
 void save(Comment... comments)
           
static CommentBuilder theUser(UserDetail user)
          Gets a comment builder for the specified user.
 
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
 

Field Detail

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
Constructor Detail

CommentTestResources

public CommentTestResources()
Method Detail

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.