예제 #1
0
 public MockComment(
     final Long id,
     final String author,
     final String updateAuthor,
     final String body,
     final String groupLevel,
     final Long roleLevelId,
     final Date created,
     final Date updated,
     final Issue issue) {
   this.id = id;
   this.author = author;
   this.updateAuthor = updateAuthor;
   this.body = body == null ? "" : body;
   this.groupLevel = groupLevel;
   this.roleLevelId = roleLevelId;
   final Date createdDate = JiraDateUtils.copyOrCreateDateNullsafe(created);
   this.created = createdDate;
   this.updated = (updated == null) ? createdDate : updated;
   this.issue = issue;
 }