Skip to content

Commit

Permalink
[Enhancement kbss-cvut/termit-ui#520] Fix tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaskabc committed Nov 11, 2024
1 parent 54b819e commit 8a1dcc9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8a1dcc9

Please sign in to comment.