Skip to content

Commit

Permalink
Add comments for tests helpers (JabRef#11189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre CREMIEUX authored and Alexandre CREMIEUX committed Feb 7, 2025
1 parent eb3dfd8 commit 14ab672
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@

import org.jabref.model.entry.BibEntry;

/**
* Provide helpers methods and classes for tests to manage {@link BibEntryRelationsRepository} mocks.
*/
public class BibEntryRelationsRepositoryHelpersForTest {

/**
* Provide mocks factories for {@link BibEntryRelationsRepository} mocks.
* <br>
* Those implementations should help to test the values passed to an injected repository instance
* when it is called from {@link org.jabref.logic.citation.SearchCitationsRelationsService}.
*/
public static class Mocks {
public static BibEntryRelationsRepository from(
Function<BibEntry, List<BibEntry>> retrieveCitations,
Expand Down

0 comments on commit 14ab672

Please sign in to comment.