import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.fail;
+import static org.testng.internal.junit.ArrayAsserts.assertArrayEquals;
import jalview.datamodel.SequenceFeature;
import jalview.gui.JvOptionPane;
import java.awt.Color;
-import junit.extensions.PA;
-
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
+import junit.extensions.PA;
+
public class FeatureColourTest
{
assertTrue(fc1.isColourByLabel());
assertFalse(fc1.isGraduatedColour());
assertTrue(fc1.isColourByAttribute());
- assertEquals("AF", fc1.getAttributeName());
+ assertArrayEquals(new String[] { "AF" }, fc1.getAttributeName());
/*
* colour by attribute (value)
assertTrue(fc1.isGraduatedColour());
assertFalse(fc1.isColourByLabel());
assertTrue(fc1.isColourByAttribute());
- assertEquals("AF", fc1.getAttributeName());
+ assertArrayEquals(new String[] { "AF" }, fc1.getAttributeName());
assertTrue(fc1.isAboveThreshold());
assertEquals(12f, fc1.getThreshold());
assertEquals(Color.gray, fc1.getMinColour());
assertTrue(fc1.isGraduatedColour());
assertFalse(fc1.isColourByLabel());
assertTrue(fc1.isColourByAttribute());
- assertEquals("AF", fc1.getAttributeName());
+ assertEquals(new String[] { "AF" }, fc1.getAttributeName());
assertEquals(13f, fc1.getMin());
assertEquals(36f, fc1.getMax());
assertFalse((boolean) PA.getValue(fc1, "isHighToLow"));