JAL-3330 test to verify sub/attributeName array is not shared between multiple instan...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 26 Jun 2019 10:55:26 +0000 (11:55 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 26 Jun 2019 10:55:26 +0000 (11:55 +0100)
test/jalview/schemes/FeatureColourTest.java

index 52ca360..dae70f7 100644 (file)
@@ -173,6 +173,13 @@ public class FeatureColourTest
     assertEquals(Color.yellow, fc1.getColour());
     assertEquals(10f, fc1.getMin());
     assertEquals(20f, fc1.getMax());
+
+    /*
+     * modify original attribute label and check that copy doesn't change
+     */
+    fc.setAttributeName("MAF", "AF");
+    assertArrayEquals(new String[] { "AF" }, fc1.getAttributeName());
+
   }
 
   @Test(groups = { "Functional" })