Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
rhbz978666 - remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Jul 12, 2013
1 parent 1a93c5a commit cf74cd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
Expand Up @@ -118,25 +118,4 @@ public Integer getTargetVersion()
return targetVersion;
}

// TODO pahuang we probably want to cache below two methods
@Transient
public ContentState getContentStateOfCommentedTarget()
{
if (textFlowTarget.getVersionNum().equals(targetVersion))
{
return textFlowTarget.getState();
}
return textFlowTarget.getHistory().get(targetVersion).getState();
}

@Transient
public List<String> getContentsOfCommentedTarget()
{
if (textFlowTarget.getVersionNum().equals(targetVersion))
{
return textFlowTarget.getContents();
}
return textFlowTarget.getHistory().get(targetVersion).getContents();
}

}
Expand Up @@ -88,7 +88,6 @@ public void testTargetUserComment()
List<HTextFlowTargetReviewComment> result = reviewCommentsDAO.getReviewComments(new TransUnitId(target.getTextFlow().getId()), target.getLocaleId());

assertThat(result, Matchers.hasSize(1));
assertThat(result.get(0).getContentsOfCommentedTarget(), Matchers.equalTo(target.getContents()));
assertThat(result.get(0).getCommenterName(), Matchers.equalTo(person.getName()));
assertThat(result.get(0).getCreationDate(), Matchers.lessThanOrEqualTo(new Date()));
}
Expand All @@ -113,7 +112,6 @@ public void testTargetUserCommentMadeOnPreviousTranslation()
List<HTextFlowTargetReviewComment> result = reviewCommentsDAO.getReviewComments(new TransUnitId(target.getTextFlow().getId()), target.getLocaleId());


assertThat(result.get(0).getContentsOfCommentedTarget(), Matchers.equalTo(oldTranslation));
assertThat(result.get(0).getTargetVersion(), Matchers.equalTo(oldVersion));
}
}

0 comments on commit cf74cd1

Please sign in to comment.