}
@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);
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
+ import java.util.Arrays;
import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
import org.testng.Assert;
import org.testng.FileAssert;
"A", testSeq, null);
Assert.assertEquals(testSeq.getStart(), 1);
Assert.assertEquals(testSeq.getEnd(), 147);
++<<<<<<< HEAD
+ // Can't do Assert.assertEquals(actualMapping, expectedMapping);
+ // because this fails in our version of TestNG
+ Assert.assertEquals(actualMapping.size(), expectedMapping.size());
+ Iterator<Map.Entry<Integer, int[]>> it = expectedMapping.entrySet()
+ .iterator();
+ while (it.hasNext())
+ {
+ Map.Entry<Integer, int[]> pair = it.next();
+ Assert.assertTrue(actualMapping.containsKey(pair.getKey()));
+ Assert.assertEquals(actualMapping.get(pair.getKey()),
+ pair.getValue());
+ }
+
++=======
+ // Assert.assertEquals(actualMapping, expectedMapping);
+ Assert.assertEquals(actualMapping.size(), expectedMapping.size());
+ // Test key set
+ Assert.assertEquals(actualMapping.keySet(), expectedMapping.keySet());
+ // Test entry set
+ for (int key : expectedMapping.keySet())
+ {
+ Assert.assertTrue(Arrays.equals(expectedMapping.get(key),
+ actualMapping.get(key)));
+ }
++>>>>>>> f80180a53bf16dc72ecdd4ace0f70c83cb0d274a
} catch (Exception e)
{
e.printStackTrace();
Assert.assertEquals(strucMapping.getMappingDetailsOutput(),
expectedMappingOutput);
++<<<<<<< HEAD
+ // Can't do Assert.assertEquals(strucMapping.getMapping(), expectedMapping);
+ // because this fails in our version of TestNG
+ Assert.assertEquals(strucMapping.getMapping().size(),
+ expectedMapping.size());
+ Iterator<Map.Entry<Integer, int[]>> it = expectedMapping.entrySet()
+ .iterator();
+ while (it.hasNext())
+ {
+ Map.Entry<Integer, int[]> pair = it.next();
+ Assert.assertTrue(strucMapping.getMapping()
+ .containsKey(pair.getKey()));
+ Assert.assertEquals(strucMapping.getMapping().get(pair.getKey()),
+ pair.getValue());
++=======
+ // Assert.assertEquals(strucMapping.getMapping(), expectedMapping);
+ Assert.assertEquals(strucMapping.getMapping().size(),
+ expectedMapping.size());
+ // Test key set
+ Assert.assertEquals(strucMapping.getMapping().keySet(),
+ expectedMapping.keySet());
+ // Test entry set
+ for (int key : expectedMapping.keySet())
+ {
+ Assert.assertTrue(Arrays.equals(expectedMapping.get(key),
+ strucMapping.getMapping().get(key)));
++>>>>>>> f80180a53bf16dc72ecdd4ace0f70c83cb0d274a
}
}