From: Jim Procter Date: Wed, 9 Aug 2017 18:29:05 +0000 (+0100) Subject: JAL-2425 test for alignment metadata retrieved from Pfam and Rfam X-Git-Tag: Release_2_10_2~3^2~12^2~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0efed3066b0673af0f370c8660579b720db72cc1;p=jalview.git JAL-2425 test for alignment metadata retrieved from Pfam and Rfam --- diff --git a/test/jalview/ws/dbsources/XfamFetcherTest.java b/test/jalview/ws/dbsources/XfamFetcherTest.java index 2f28484..573022d 100644 --- a/test/jalview/ws/dbsources/XfamFetcherTest.java +++ b/test/jalview/ws/dbsources/XfamFetcherTest.java @@ -49,6 +49,10 @@ public class XfamFetcherTest 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" }) @@ -66,9 +70,16 @@ public class XfamFetcherTest 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."); + } }