return targetHistory;
}
@Test
public void canGetReviewComments() {
GetTranslationHistoryAction action =
new GetTranslationHistoryAction(new TransUnitId(1L));
action.setWorkspaceId(TestFixture.workspaceId());
LocaleId localeId = action.getWorkspaceId().getLocaleId();
when(
reviewCommentsDAO.getReviewComments(action.getTransUnitId(),
localeId)).thenReturn(
Lists.newArrayList(makeCommentEntity(localeId, "a comment"),
makeCommentEntity(localeId, "another comment")));
List<ReviewComment> result = handler.getReviewComments(action);