X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fviewmodel%2Fstyles%2FViewStyleTest.java;h=fcabb5c74b55f2c8eabbfbb87aef804522bf1c15;hb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;hp=9e259a9be62114abebac61c3aaa3be504731ffa8;hpb=ab22918ab8fc67d30dad1fb1ae0f37e51f49df95;p=jalview.git diff --git a/test/jalview/viewmodel/styles/ViewStyleTest.java b/test/jalview/viewmodel/styles/ViewStyleTest.java index 9e259a9..fcabb5c 100644 --- a/test/jalview/viewmodel/styles/ViewStyleTest.java +++ b/test/jalview/viewmodel/styles/ViewStyleTest.java @@ -1,3 +1,23 @@ +/* + * 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 . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.viewmodel.styles; import static org.testng.AssertJUnit.assertEquals; @@ -11,7 +31,6 @@ import java.util.Random; import org.testng.AssertJUnit; import org.testng.annotations.Test; - public class ViewStyleTest { @@ -30,7 +49,7 @@ public class ViewStyleTest * @throws IllegalAccessException * @throws IllegalArgumentException */ - @Test(groups ={ "Functional" }) + @Test(groups = { "Functional" }) public void testCopyConstructor() throws IllegalArgumentException, IllegalAccessException { @@ -47,7 +66,8 @@ public class ViewStyleTest 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 + "/" @@ -137,8 +157,8 @@ public class ViewStyleTest } else { - AssertJUnit.fail("Unhandled field type (add to test): " + field.getName() - + ":" + type); + AssertJUnit.fail("Unhandled field type (add to test): " + + field.getName() + ":" + type); } } @@ -165,7 +185,7 @@ public class ViewStyleTest * @throws IllegalAccessException * @throws IllegalArgumentException */ - @Test(groups ={ "Functional" }) + @Test(groups = { "Functional" }) public void testEquals() throws IllegalArgumentException, IllegalAccessException {