3 import jalview.datamodel.AlignmentI;
5 import java.io.IOException;
7 import org.testng.Assert;
8 import org.testng.annotations.Test;
10 public class PfamFormatInputTest
13 public void testPfamFormatNoLimits() throws IOException
15 AlignmentI al = new jalview.io.AppletFormatAdapter().readFile("ASEQ"
16 + '\t' + "...--FFAFAFF--", AppletFormatAdapter.PASTE, "PFAM");
17 Assert.assertEquals(1, al.getHeight(), "Wrong number of sequences");
18 Assert.assertTrue(al.hasValidSequence(),
19 "Didn't extract limits from PFAM ID");
23 public void testPfamFormatValidLimits() throws IOException
25 AlignmentI al = new jalview.io.AppletFormatAdapter().readFile(
26 "ASEQ/15-25" + '\t' + "...--FFAFAFF--",
27 AppletFormatAdapter.PASTE, "PFAM");
28 Assert.assertEquals(1, al.getHeight(), "Wrong number of sequences");
29 Assert.assertTrue(al.hasValidSequence(),
30 "Didn't extract limits from PFAM ID");