From 277430ec004bfec081efa4d7a2fd9690d80fc01f Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 13 Feb 2018 16:16:04 +0000 Subject: [PATCH] JAL-2780 scan all test IDs before testing and reporting test failures - currently failing for 4im2 and Resnum==0 (seq pos 0) --- test/jalview/ws/PDBSequenceFetcherTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/jalview/ws/PDBSequenceFetcherTest.java b/test/jalview/ws/PDBSequenceFetcherTest.java index 9efcef2..cc3dca8 100644 --- a/test/jalview/ws/PDBSequenceFetcherTest.java +++ b/test/jalview/ws/PDBSequenceFetcherTest.java @@ -132,6 +132,7 @@ public class PDBSequenceFetcherTest private void testRetrieveProteinSeqFromPDB() throws Exception { List sps = sf.getSourceProxy("PDB"); + StringBuilder errors = new StringBuilder(); for (TestRetrieveObject str : toRetrieve) { AlignmentI response = sps.get(0).getSequenceRecords(str.id); @@ -174,11 +175,11 @@ public class PDBSequenceFetcherTest lastp = sq.findPosition(col - 1); } } - if (errors.length() > 0) - { - Assert.fail(errors.toString()); - } } } + if (errors.length() > 0) + { + Assert.fail(errors.toString()); + } } } -- 1.7.10.2