FilterConstraints untranslated =
FilterConstraints.builder().keepAll().excludeFuzzy()
.excludeTranslated().build();
List<HTextFlow> result =
dao.getTextFlowByDocumentIdWithConstraints(new DocumentId(1L,
""), deLocale, untranslated, 0, 10);
assertThat(result.size(), is(0));
HLocale frLocale = getEm().find(HLocale.class, 6L);
result =
dao.getTextFlowByDocumentIdWithConstraints(new DocumentId(1L,
""), frLocale, untranslated, 0, 10);
assertThat(result.size(), is(1));
}