From 8a1dcc973261ea648d85169835028631a2265e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Ka=C5=88ka?= Date: Mon, 11 Nov 2024 13:59:41 +0100 Subject: [PATCH] [Enhancement kbss-cvut/termit-ui#520] Fix tests after rebase --- .../cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java index abc32c17..fa795b57 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java @@ -1075,6 +1075,9 @@ void getDetailedHistoryOfContentReturnsRecordsOfDeletedTermFilteredByTermName() termDao.persist(firstTerm, vocabulary); termDao.persist(termToRemove, vocabulary); + Generator.addTermInVocabularyRelationship(firstTerm, vocabulary.getUri(), em); + Generator.addTermInVocabularyRelationship(termToRemove, vocabulary.getUri(), em); + firstChanges.forEach(r -> changeRecordDao.persist(r, firstTerm)); termToRemoveChanges.forEach(r -> changeRecordDao.persist(r, termToRemove)); changeRecordDao.persist(deleteChangeRecord, termToRemove); @@ -1248,6 +1251,9 @@ void getDetailedHistoryOfContentReturnsRecordsOfExistingTermFilteredByChangeType termDao.persist(firstTerm, vocabulary); termDao.persist(secondTerm, vocabulary); + Generator.addTermInVocabularyRelationship(firstTerm, vocabulary.getUri(), em); + Generator.addTermInVocabularyRelationship(secondTerm, vocabulary.getUri(), em); + firstChanges.forEach(r -> changeRecordDao.persist(r, firstTerm)); secondChanges.forEach(r -> changeRecordDao.persist(r, secondTerm)); changeRecordDao.persist(deleteChangeRecord, secondTerm);