@Test(groups = { "Operational" }, enabled = true)
public void testRetrieveAndShowCrossref() throws Exception
{
+
+ List<String> failedDBRetr = new ArrayList<String>();
List<String> failedXrefMenuItems = new ArrayList<String>();
List<String> failedProjectRecoveries = new ArrayList<String>();
{
// retrieve dbref
+ List<AlignFrame> afs = jalview.gui.SequenceFetcher.fetchAndShow(
+ did[0], did[1]);
+ if (afs.size() == 0)
+ {
+ failedDBRetr.add("Didn't retrieve " + first);
+ break;
+ }
keyseq.add(first);
-
- af = jalview.gui.SequenceFetcher.fetchAndShow(did[0], did[1])
- .get(0);
- Assert.assertTrue(af != null, "Didn't retrieve " + first);
+ af = afs.get(0);
// verify references for retrieved data
AlignmentTest.assertAlignmentDatasetRefs(af.getViewport()
Assert.fail("Didn't recover projects for some retrievals (did they retrieve ?) ("
+ failedProjectRecoveries.size() + " counts)");
}
+ if (failedDBRetr.size() > 0)
+ {
+ for (String s : failedProjectRecoveries)
+ {
+ System.err.println(s);
+ }
+ Assert.fail("Didn't retrieve some db refs for checking cross-refs ("
+ + failedDBRetr.size() + " counts)");
+ }
}
private void assertProtein(AlignmentViewPanel alignmentViewPanel,