}
@Test
@RunAsClient
public void getStatisticsForIterationAndLocale() throws Exception {
ContainerTranslationStatistics stats =
statsResource.getStatistics("sample-project", "1.0", true,
false, new String[] { "as" });
assertThat(stats.getStats().size(), is(1)); // Just one locale and no
// word level stats
assertThat(stats.getDetailedStats().size(), greaterThan(0)); // Has
// document
// stats
for (TranslationStatistics langStats : stats.getStats()) {
assertThat(
langStats.getTotal(),
equalTo(langStats.getUntranslated()
+ langStats.getNeedReview()
+ langStats.getTranslated()));