package jalview.ws.dbsources;
import jalview.datamodel.AlignmentI;
+import jalview.gui.JvOptionPane;
import org.testng.Assert;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class XfamFetcherTest
{
+
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
@Test(groups = { "External" })
public void testRfamSeed() throws Exception
{
Assert.assertTrue(seedrf.getHeight() > 1,
"Seed Alignment for " + rfs.getTestQuery()
+ " didn't contain more than one sequence.");
+ Assert.assertTrue(seedrf.getProperties().size() > 0,
+ "Seed Alignment for " + rfs.getTestQuery()
+ + " didn't have any properties.");
+
}
@Test(groups = { "External" })
public void testPfamFullAndSeed() throws Exception
{
- PfamFull pff = new PfamFull();
+ Pfam pff = new PfamFull();
PfamSeed pfseed = new PfamSeed();
AlignmentI fullpf = pff.getSequenceRecords(pff.getTestQuery());
AlignmentI seedpf = pfseed.getSequenceRecords(pff.getTestQuery());
Assert.assertNotNull(seedpf, "Seed Alignment for " + pff.getTestQuery()
+ " didn't retrieve.");
+ Assert.assertTrue(seedpf.getProperties().size() > 0,
+ "Seed Alignment for " + pfseed.getTestQuery()
+ + " didn't have any properties.");
Assert.assertTrue(seedpf.getHeight() < fullpf.getHeight(),
"Expected Full alignment to have more sequences than seed for "
+ pff.getTestQuery());
+ Assert.assertTrue(fullpf.getProperties().size() > 0,
+ "Full Alignment for " + pff.getTestQuery()
+ + " didn't have any properties.");
+
}
}