@Test public void testImportEntries() throws IOException { String bibFileName = fileName + ".bib"; MsBibImporter testImporter = new MsBibImporter(); List<BibEntry> result = testImporter.importDatabase(xmlFile, Charset.defaultCharset()).getDatabase().getEntries(); BibEntryAssert.assertEquals(MsBibImporterTest.class, bibFileName, result); }
@Test public final void testIsRecognizedFormat() throws Exception { MsBibImporter testImporter = new MsBibImporter(); Assert.assertTrue(testImporter.isRecognizedFormat(xmlFile, Charset.defaultCharset())); }