use of org.jabref.model.metadata.FileDirectoryPreferences in project jabref by JabRef.
the class CleanupWorkerTest method setUp.
@Before
public void setUp() throws IOException {
pdfFolder = bibFolder.newFolder();
MetaData metaData = new MetaData();
metaData.setDefaultFileDirectory(pdfFolder.getAbsolutePath());
BibDatabaseContext context = new BibDatabaseContext(new BibDatabase(), metaData, new Defaults());
context.setDatabaseFile(bibFolder.newFile("test.bib"));
FileDirectoryPreferences fileDirPrefs = mock(FileDirectoryPreferences.class);
//Biblocation as Primary overwrites all other dirs
when(fileDirPrefs.isBibLocationAsPrimary()).thenReturn(true);
worker = new CleanupWorker(context, new CleanupPreferences("\\bibtexkey", //empty fileDirPattern for backwards compatibility
"", mock(LayoutFormatterPreferences.class), fileDirPrefs));
}
Aggregations