- dao.flush();
- vocDto = dao.findVocabularyDtoByTermTypes(termTypes, true);
- Assert.assertEquals("Deduplication for representations does not work", 4, vocDto.size());
+// dao.flush();
+ vocDtos = dao.findVocabularyDtoByTermTypes(termTypes, true);
+ Assert.assertEquals("Deduplication for representations does not work", 4, vocDtos.size());
+ int repSize = vocDtos.stream().filter(voc->voc.getUuid().equals(NamedArea.uuidContinentVocabulary)).findFirst().get().getRepresentations().size();
+ Assert.assertEquals("There should be 2 representations for continent vocabulary", 2, repSize);