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

Commit

Permalink
rhbz804871 - fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Aug 23, 2012
1 parent 13ee81b commit 70a946d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -139,7 +139,7 @@ public void canGetCurrentTranslationWithoutLastModifiedBy() throws ActionExcepti
when(localeService.validateLocaleByProjectIteration(localeId, "rhel", "7.0")).thenReturn(hLocale);
when(hLocale.getId()).thenReturn(2L);
HTextFlow hTextFlow = createHTextFlow();
HTextFlowTarget currentTranslation = createTarget(null, null, 0, null);
HTextFlowTarget currentTranslation = createTarget(new Date(), null, 0, null);
currentTranslation.setLastModifiedBy(null);
hTextFlow.getTargets().put(hLocale.getId(), currentTranslation);

Expand All @@ -152,7 +152,7 @@ public void canGetCurrentTranslationWithoutLastModifiedBy() throws ActionExcepti
assertThat(result.getHistoryItems(), Matchers.<TransHistoryItem>emptyIterable());
assertThat(result.getLatest().getVersionNum(), Matchers.equalTo(currentTranslation.getVersionNum().toString()));
assertThat(result.getLatest().getContents(), Matchers.equalTo(currentTranslation.getContents()));
assertThat(result.getLatest().getModifiedBy(), Matchers.equalTo("unknown"));
assertThat(result.getLatest().getModifiedBy(), Matchers.equalTo(""));
}

private static HTextFlow createHTextFlow()
Expand Down

0 comments on commit 70a946d

Please sign in to comment.