- assertTrue("Couldn't resolve "+src+" as a valid file",fp.isValid());
- String type = new IdentifyFile().Identify(fp);
- assertTrue("Data from '"+src+"' Expected to be '"+fmt+"' identified as '"+type+"'",type.equalsIgnoreCase(fmt));
+ AssertJUnit.assertTrue("Couldn't resolve " + src + " as a valid file",
+ fp.isValid());
+ String type = new IdentifyFile().identify(fp);
+ AssertJUnit.assertTrue("Data from '" + src + "' Expected to be '" + fmt
+ + "' identified as '" + type + "'", type.equalsIgnoreCase(fmt));
+ }
+
+ @Test(groups = { "Functional" })
+ public void testStarsInFasta1() throws IOException
+ {
+ String uri;
+ FileParse fp = new FileParse(uri = STARS_FA_FILE1.getAbsoluteFile()
+ .toString(), AppletFormatAdapter.FILE);
+ assertValidFormat("FASTA", uri, fp);
+ }
+
+ @Test(groups = { "Functional" })
+ public void testStarsInFasta2() throws IOException
+ {
+ String uri;
+ FileParse fp = new FileParse(uri = STARS_FA_FILE2.getAbsoluteFile()
+ .toString(), AppletFormatAdapter.FILE);
+ assertValidFormat("FASTA", uri, fp);