|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.comment.service.CommentBuilder
public class CommentBuilder
A comment builder dedicated to unit tests.
| Method Summary | |
|---|---|
Comment |
buildOrphelanWith(String author,
String text)
Builds a comment with the specified author and with the specified comment text. |
Comment |
buildWith(String author,
String text)
Builds a comment with the specified author and with the specified comment text. |
static CommentBuilder |
getBuilder()
|
static CommentPK |
getResourcePrimaryPK()
Gets the unique identifier of the resource to which comments are built by all of the CommentBuilder instances. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CommentBuilder getBuilder()
public Comment buildWith(String author,
String text)
author - the author of the comment.text - the text of the comment.
public Comment buildOrphelanWith(String author,
String text)
author - the author of the comment.text - the text of the comment.
public static CommentPK getResourcePrimaryPK()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||