com.silverpeas.comment.web
Class CommentBuilder

java.lang.Object
  extended by com.silverpeas.comment.web.CommentBuilder

public class CommentBuilder
extends Object

The builder of comments for testing purpose.


Constructor Summary
CommentBuilder()
           
 
Method Summary
 CommentBuilder commentTheResource(String resourceType, String resourceId)
           
 CommentBuilder inComponent(String componentId)
           
 Comment withAsText(String theText)
           
 CommentBuilder withUser(UserDetail user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentBuilder

public CommentBuilder()
Method Detail

withUser

public CommentBuilder withUser(UserDetail user)

commentTheResource

public CommentBuilder commentTheResource(String resourceType,
                                         String resourceId)

inComponent

public CommentBuilder inComponent(String componentId)

withAsText

public Comment withAsText(String theText)


Copyright © 2016 Silverpeas. All Rights Reserved.