From: Jim Procter Date: Thu, 7 Nov 2013 13:42:35 +0000 (+0000) Subject: JAL-1286 test input of gzip stream from local file X-Git-Tag: Jalview_2_9~215^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b8867d3463ce66aba3665e181796c48931fe81a4;p=jalview.git JAL-1286 test input of gzip stream from local file --- diff --git a/test/jalview/io/FileIOTester.java b/test/jalview/io/FileIOTester.java index 62ce958..20f6d0f 100644 --- a/test/jalview/io/FileIOTester.java +++ b/test/jalview/io/FileIOTester.java @@ -46,4 +46,14 @@ final static File ALIGN_FILE = new File("test/jalview/io/test_gz_fasta.gz"); assertTrue("Gzipped data from '"+uri+"' identified as '"+type+"'",type.equalsIgnoreCase("FASTA")); } + @Test + public void testGziplocalFileIO() throws IOException + { + String filepath; + FileParse fp = new FileParse(filepath=ALIGN_FILE.getAbsoluteFile().toString(), AppletFormatAdapter.FILE); + assertTrue("Couldn't resolve " + filepath + " as a valid file", fp.isValid()); + String type = new IdentifyFile().Identify(fp); + assertTrue("Gzipped data from '" + filepath + "' identified as '" + type + + "'", type.equalsIgnoreCase("FASTA")); + } }