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