JAL-2425 test for alignment metadata retrieved from Pfam and Rfam
authorJim Procter <jprocter@issues.jalview.org>
Wed, 9 Aug 2017 18:29:05 +0000 (19:29 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 9 Aug 2017 18:29:05 +0000 (19:29 +0100)
test/jalview/ws/dbsources/XfamFetcherTest.java

index 2f28484..573022d 100644 (file)
@@ -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.");
+
   }
 }