use of org.jabref.logic.importer.fileformat.BibtexImporter in project jabref by JabRef.
the class BibTeXMLExporterTestFiles method setUp.
@Before
public void setUp() throws Exception {
resourceDir = Paths.get(BibTeXMLExporterTestFiles.class.getResource("").toURI());
databaseContext = new BibDatabaseContext();
charset = StandardCharsets.UTF_8;
bibtexmlExportFormat = new BibTeXMLExportFormat();
tempFile = testFolder.newFile();
testImporter = new BibtexImporter(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS));
}
use of org.jabref.logic.importer.fileformat.BibtexImporter in project jabref by JabRef.
the class ImporterTest method instancesToTest.
@Parameters(name = "{index}: {0}")
public static Collection<Object[]> instancesToTest() {
// all classes implementing {@link Importer}
// sorted alphabetically
ImportFormatPreferences importFormatPreferences = mock(ImportFormatPreferences.class);
XMPPreferences xmpPreferences = mock(XMPPreferences.class);
// @formatter:off
return Arrays.asList(new Object[] { new BiblioscapeImporter() }, new Object[] { new BibtexImporter(importFormatPreferences) }, new Object[] { new BibTeXMLImporter() }, new Object[] { new CopacImporter() }, new Object[] { new EndnoteImporter(importFormatPreferences) }, new Object[] { new FreeCiteImporter(importFormatPreferences) }, new Object[] { new InspecImporter() }, new Object[] { new IsiImporter() }, new Object[] { new MedlineImporter() }, new Object[] { new MedlinePlainImporter() }, new Object[] { new ModsImporter() }, new Object[] { new MsBibImporter() }, new Object[] { new OvidImporter() }, new Object[] { new PdfContentImporter(importFormatPreferences) }, new Object[] { new PdfXmpImporter(xmpPreferences) }, new Object[] { new RepecNepImporter(importFormatPreferences) }, new Object[] { new RisImporter() }, new Object[] { new SilverPlatterImporter() });
// @formatter:on
}
use of org.jabref.logic.importer.fileformat.BibtexImporter in project jabref by JabRef.
the class MSBibExportFormatTestFiles method setUp.
@Before
public void setUp() throws Exception {
resourceDir = Paths.get(MSBibExportFormatTestFiles.class.getResource("").toURI());
databaseContext = new BibDatabaseContext();
charset = StandardCharsets.UTF_8;
msBibExportFormat = new MSBibExportFormat();
tempFile = testFolder.newFile();
testImporter = new BibtexImporter(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS));
}
use of org.jabref.logic.importer.fileformat.BibtexImporter in project jabref by JabRef.
the class ModsExportFormatTest method setUp.
@Before
public void setUp() throws Exception {
databaseContext = new BibDatabaseContext();
charset = StandardCharsets.UTF_8;
modsExportFormat = new ModsExportFormat();
bibtexImporter = new BibtexImporter(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS));
tempFile = testFolder.newFile();
importFile = Paths.get(ModsExportFormatTest.class.getResource("ModsExportFormatTestAllFields.bib").toURI());
}
use of org.jabref.logic.importer.fileformat.BibtexImporter in project jabref by JabRef.
the class ModsExportFormatTestFiles method setUp.
@Before
public void setUp() throws Exception {
databaseContext = new BibDatabaseContext();
importFile = Paths.get(ModsExportFormatTestFiles.class.getResource(filename).toURI());
charset = StandardCharsets.UTF_8;
modsExportFormat = new ModsExportFormat();
tempFile = testFolder.newFile();
bibtexImporter = new BibtexImporter(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS));
modsImporter = new ModsImporter();
}
Aggregations