From: tcofoegbu Date: Tue, 18 Apr 2017 10:49:54 +0000 (+0100) Subject: JAL-2136 merged develop into branch to fix build failure X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c0b7a760fe1ced5fe25ee3c3fd272e03f7526fa2;p=jalview.git JAL-2136 merged develop into branch to fix build failure --- c0b7a760fe1ced5fe25ee3c3fd272e03f7526fa2 diff --cc src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java index 745b1e1,fad3137..ecf93d3 --- a/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java +++ b/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java @@@ -1110,17 -1101,8 +1101,8 @@@ public abstract class JalviewChimeraBin { // TODO refactor as required to pull up to an interface AlignmentI alignment = avp.getAlignment(); - FeatureRenderer fr = getFeatureRenderer(avp); - - /* - * fr is null if feature display is turned off - */ - if (fr == null) - { - return 0; - } - String[] files = getPdbFile(); + String[] files = getStructureFiles(); if (files == null) { return 0; diff --cc src/jalview/gui/AppJmolBinding.java index 2227978,f822358..0c5f469 --- a/src/jalview/gui/AppJmolBinding.java +++ b/src/jalview/gui/AppJmolBinding.java @@@ -50,31 -48,6 +48,12 @@@ public class AppJmolBinding extends Jal } @Override + protected IProgressIndicator getIProgressIndicator() + { + return appJmolWindow.progressBar; + } - @Override - public FeatureRenderer getFeatureRenderer(AlignmentViewPanel alignment) - { - AlignmentPanel ap = (alignment == null) ? appJmolWindow - .getAlignmentPanel() : (AlignmentPanel) alignment; - if (ap.av.isShowSequenceFeatures()) - { - if (fr == null) - { - fr = (jalview.gui.FeatureRenderer) ap.cloneFeatureRenderer(); - } - else - { - ap.updateFeatureRenderer(fr); - } - } - - return fr; - } + + @Override public SequenceRenderer getSequenceRenderer(AlignmentViewPanel alignment) { return new SequenceRenderer(((AlignmentPanel) alignment).av); diff --cc test/jalview/ws/sifts/SiftsClientTest.java index 6a1fa1f,7f8adc9..fc07749 --- a/test/jalview/ws/sifts/SiftsClientTest.java +++ b/test/jalview/ws/sifts/SiftsClientTest.java @@@ -282,16 -282,19 +283,18 @@@ public class SiftsClientTes "A", testSeq, null); Assert.assertEquals(testSeq.getStart(), 1); Assert.assertEquals(testSeq.getEnd(), 147); - // Assert.assertEquals(actualMapping, expectedMapping); + // Can't do Assert.assertEquals(actualMapping, expectedMapping); + // because this fails in our version of TestNG Assert.assertEquals(actualMapping.size(), expectedMapping.size()); - // Test key set - Assert.assertEquals(actualMapping.keySet(), expectedMapping.keySet()); - // Test entry set - for (int key : expectedMapping.keySet()) + Iterator> it = expectedMapping.entrySet() + .iterator(); + while (it.hasNext()) { - Assert.assertTrue(Arrays.equals(expectedMapping.get(key), - actualMapping.get(key))); + Map.Entry pair = it.next(); + Assert.assertTrue(actualMapping.containsKey(pair.getKey())); + Assert.assertEquals(actualMapping.get(pair.getKey()), + pair.getValue()); } - } catch (Exception e) { e.printStackTrace();