@Test public void testIfNotRecognizedFormat() throws IOException, URISyntaxException { Path file = Paths.get(RISImporterTest.class.getResource("RisImporterCorrupted.ris").toURI()); Assert.assertFalse(importer.isRecognizedFormat(file, Charset.defaultCharset())); }
@Test public void testGetDescription() { Assert.assertEquals("Imports a Biblioscape Tag File.", importer.getDescription()); }
@Test public void testGetCLIId() { Assert.assertEquals(importer.getId(), "ris"); }
@Test public void testsGetExtensions() { Assert.assertEquals(".ris", importer.getExtensions().get(0)); }
@Test public void testGetFormatName() { Assert.assertEquals(importer.getFormatName(), "RIS"); }