6 import static org.junit.Assert.*;
9 import java.io.IOException;
11 import org.junit.AfterClass;
12 import org.junit.BeforeClass;
13 import org.junit.Test;
19 public class FileIOTester
23 * @throws java.lang.Exception
26 public static void setUpBeforeClass() throws Exception
31 * @throws java.lang.Exception
34 public static void tearDownAfterClass() throws Exception
37 final static File ALIGN_FILE = new File("test/jalview/io/test_gz_fasta.gz");
40 public void testGzipIo() throws IOException
43 FileParse fp = new FileParse(uri=ALIGN_FILE.getAbsoluteFile().toURI().toString(),AppletFormatAdapter.URL);
44 assertTrue("Couldn't resolve "+uri+" as a valid file",fp.isValid());
45 String type = new IdentifyFile().Identify(fp);
46 assertTrue("Gzipped data from '"+uri+"' identified as '"+type+"'",type.equalsIgnoreCase("FASTA"));