+/*
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
+ *
+ * This file is part of Jalview.
+ *
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * Jalview is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
package jalview.viewmodel.styles;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.AssertJUnit;
+
import java.awt.Color;
import java.lang.reflect.Field;
import java.util.Random;
+import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
public class ViewStyleTest
{
* @throws IllegalAccessException
* @throws IllegalArgumentException
*/
- @Test
+ @Test(groups = { "Functional" })
public void testCopyConstructor() throws IllegalArgumentException,
IllegalAccessException
{
ViewStyle vs2 = new ViewStyle(vs1);
- for (Field field1 : fields) {
+ for (Field field1 : fields)
+ {
final Object value1 = field1.get(vs1);
final Object value2 = field1.get(vs2);
String msg = "Mismatch in " + field1.getName() + "(" + value1 + "/"
}
else
{
- AssertJUnit.fail("Unhandled field type (add to test): " + field.getName()
- + ":" + type);
+ AssertJUnit.fail("Unhandled field type (add to test): "
+ + field.getName() + ":" + type);
}
}
* @throws IllegalAccessException
* @throws IllegalArgumentException
*/
- @Test
+ @Test(groups = { "Functional" })
public void testEquals() throws IllegalArgumentException,
IllegalAccessException
{