From b8867d3463ce66aba3665e181796c48931fe81a4 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 7 Nov 2013 13:42:35 +0000 Subject: [PATCH] JAL-1286 test input of gzip stream from local file --- test/jalview/io/FileIOTester.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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")); + } } -- 1.7.10.2