@Test public void getShortUrlPath() throws Exception { Article article = article(Zone.valueOf("foo"), "title xyz"); Debate debate = Debate.create(article, FlakeId.fromString("fromSum"), null, "not used", accountCitizen("debater1"), Instant.now()); assertEquals("/d/fromSum", debate.getShortUrlPath()); }
public String getShortUrlPath() { return String.format("/d/%s", getDebateId()); }
Debate { public String getShortUrlPath() { return String.format("/d/%s", getDebateId()); } }
Debate { public String getShortUrlPath() { return String.format("/d/%s", getDebateId()); } Debate(FlakeId articleId,
      FlakeId debateId,
      Zone zone,
      FlakeId parentDebateId,
      UUID replyToAccountId,
      int level,
      String content,
      DebateContentType contentType,
      UUID debaterId,
      String debaterName,
      long upVote,
      long downVote,
      Instant createTime,
      Instant lastUpdateTime); }
Debate { public String getShortUrlPath() { return String.format("/d/%s", getDebateId()); } Debate(FlakeId articleId,
      FlakeId debateId,
      Zone zone,
      FlakeId parentDebateId,
      UUID replyToAccountId,
      int level,
      String content,
      DebateContentType contentType,
      UUID debaterId,
      String debaterName,
      long upVote,
      long downVote,
      Instant createTime,
      Instant lastUpdateTime); static Debate create(Article article,
      FlakeId debateId,
      @Nullable Debate parent,
      String content,
      Account debater,
      Instant now); static String renderContentPreview(String rawContent); FlakeId getArticleId(); FlakeId getDebateId(); FlakeId getParentDebateId(); boolean hasParent(); int getLevel(); String getContent(); DebateContentType getContentType(); UUID getDebaterId(); String getDebaterName(); long getUpVote(); long getDownVote(); Instant getCreateTime(); Instant getLastUpdateTime(); String getRenderContent(); String getEscapeContent(); UUID getReplyToAccountId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); long getTotalVote(); boolean isMaxLevel(); boolean isParent(Debate child); boolean canEdit(Authorization auth); Debate withVote(long newUpVote, long newDownVote); V1DebateDto toV1Dto(); Zone getZone(); boolean isEdited(); String getShortUrlPath(); }
Debate { public String getShortUrlPath() { return String.format("/d/%s", getDebateId()); } Debate(FlakeId articleId,
      FlakeId debateId,
      Zone zone,
      FlakeId parentDebateId,
      UUID replyToAccountId,
      int level,
      String content,
      DebateContentType contentType,
      UUID debaterId,
      String debaterName,
      long upVote,
      long downVote,
      Instant createTime,
      Instant lastUpdateTime); static Debate create(Article article,
      FlakeId debateId,
      @Nullable Debate parent,
      String content,
      Account debater,
      Instant now); static String renderContentPreview(String rawContent); FlakeId getArticleId(); FlakeId getDebateId(); FlakeId getParentDebateId(); boolean hasParent(); int getLevel(); String getContent(); DebateContentType getContentType(); UUID getDebaterId(); String getDebaterName(); long getUpVote(); long getDownVote(); Instant getCreateTime(); Instant getLastUpdateTime(); String getRenderContent(); String getEscapeContent(); UUID getReplyToAccountId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); long getTotalVote(); boolean isMaxLevel(); boolean isParent(Debate child); boolean canEdit(Authorization auth); Debate withVote(long newUpVote, long newDownVote); V1DebateDto toV1Dto(); Zone getZone(); boolean isEdited(); String getShortUrlPath(); static final FlakeId NO_PARENT; static final int CONTENT_MIN; static final int CONTENT_MAX; }