JAL-2835 update test for array-valued attribute name
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 16 Nov 2017 09:05:03 +0000 (09:05 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 16 Nov 2017 09:05:03 +0000 (09:05 +0000)
test/jalview/schemes/FeatureColourTest.java

index 6be66d2..72c29d3 100644 (file)
@@ -191,7 +191,7 @@ public class FeatureColourTest
     assertTrue(fc1.isGraduatedColour());
     assertFalse(fc1.isColourByLabel());
     assertTrue(fc1.isColourByAttribute());
-    assertEquals(new String[] { "AF" }, fc1.getAttributeName());
+    assertArrayEquals(new String[] { "AF" }, fc1.getAttributeName());
     assertEquals(13f, fc1.getMin());
     assertEquals(36f, fc1.getMax());
     assertFalse((boolean) PA.getValue(fc1, "isHighToLow"));
@@ -227,7 +227,7 @@ public class FeatureColourTest
     assertFalse(fc1.isGraduatedColour());
     assertTrue(fc1.isColourByLabel());
     assertTrue(fc1.isColourByAttribute());
-    assertEquals("AC", fc1.getAttributeName());
+    assertArrayEquals(new String[] { "AC" }, fc1.getAttributeName());
     assertEquals(13f, fc1.getMin());
     assertEquals(36f, fc1.getMax());
   }