From 0efed3066b0673af0f370c8660579b720db72cc1 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 9 Aug 2017 19:29:05 +0100 Subject: [PATCH] JAL-2425 test for alignment metadata retrieved from Pfam and Rfam --- test/jalview/ws/dbsources/XfamFetcherTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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."); + } } -- 1.7.10.2