From 45e607ef30f3e6cb3db68ae26c33be650c99833c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 19 Aug 2020 19:00:38 +0100 Subject: [PATCH] JAL-3719 patch test for user colour scheme with/out gap color --- test/jalview/renderer/ResidueColourFinderTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/jalview/renderer/ResidueColourFinderTest.java b/test/jalview/renderer/ResidueColourFinderTest.java index 81fb2c0..447bc73 100644 --- a/test/jalview/renderer/ResidueColourFinderTest.java +++ b/test/jalview/renderer/ResidueColourFinderTest.java @@ -119,11 +119,11 @@ public class ResidueColourFinderTest } av.setGlobalColourScheme(new UserColourScheme(newColours)); - - // gap colour not specified so gap colour is null - // this is consistent with previous behaviour, but may not be correct? - assertEquals(null, rcf.getResidueColour(true, av.getResidueShading(), + rcf = new ResidueColourFinder(Color.blue); + // gap colour not specified so gap colour is default for RCF + assertEquals(Color.blue, rcf.getResidueColour(true, av.getResidueShading(), null, seq, 3, null)); + newColours[23] = Color.pink; av.setGlobalColourScheme(new UserColourScheme(newColours)); -- 1.7.10.2