cacheManager.shutdown();
}
@Test
public void getSimpleIterationStatisticsForAllLocales() {
ContainerTranslationStatistics stats =
statisticsService.getStatistics("sample-project", "1.0", false,
false, new String[] {});
// Make sure the id matches
assertThat(stats.getId()).isEqualTo("1.0");
// Make sure there are links
assertThat(stats.getRefs().size()).isGreaterThan(0);
// No detailed stats
assertThat(stats.getDetailedStats()).isNull();
assertThat(stats.getStats().get(0).getUnit()).isEqualTo(
TranslationStatistics.StatUnit.MESSAGE);
for (TranslationStatistics transStat : stats.getStats()) {
// Check that there are no word level stats
assertThat(transStat.getUnit()).isNotEqualTo(
TranslationStatistics.StatUnit.WORD);
// make sure counts are sane