null, seq, 0, null));
assertEquals(Color.lightGray, rcf
.getResidueColour(av.getResidueShading(), null, seq, 2, null));
-
- // boxes off does not change anything
- av.setShowBoxes(false);
- assertEquals(Color.white, rcf
- .getResidueColour(av.getResidueShading(), null, seq, 0, null));
- assertEquals(Color.lightGray, rcf
- .getResidueColour(av.getResidueShading(),
- null, seq, 2, null));
}
@Test(groups = { "Functional" })
assertEquals(Color.lightGray, rcf
.getResidueColour(av.getResidueShading(), null, seq, 3, null));
- // boxes off does not change anything
- av.setShowBoxes(false);
-
- assertEquals(Color.pink, rcf.getResidueColour(av.getResidueShading(),
- null, seq, 0, null)); // M
- assertEquals(Color.green, rcf.getResidueColour(av.getResidueShading(),
- null, seq, 2, null)); // T
- assertEquals(Color.magenta, rcf.getResidueColour(av.getResidueShading(),
- null, seq, 5, null)); // G
- assertEquals(Color.orange, rcf.getResidueColour(av.getResidueShading(),
- null, seq, 12, null)); // F
-
// gap colour not specified so gaps are lightGray
assertEquals(Color.lightGray, rcf
.getResidueColour(av.getResidueShading(), null, seq, 3, null));
av.setGlobalColourScheme(new UserColourScheme(newColours));
- // gap colour not specified so gaps are null
+ // gap colour not specified so gap colour is null
+ // this is consistent with previous behaviour, but may not be correct?
assertEquals(null, rcf.getResidueColour(av.getResidueShading(),
null, seq, 3, null));
null, seq, 3, null));
}
- // TODO more tests for getResidueBoxColour covering groups, feature rendering,
+ // TODO more tests for getResidueColour covering groups, feature rendering,
// gaps, overview...
}