X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fviewmodel%2Fstyles%2FViewStyleTest.java;h=3019afa0526963f1a79d64b2065541862cca2b56;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=885cb717f70498b85315edc8706a306cb5164ac3;hpb=1554f4bd8e8ee6dd985251c1591793e23d89aad7;p=jalview.git diff --git a/test/jalview/viewmodel/styles/ViewStyleTest.java b/test/jalview/viewmodel/styles/ViewStyleTest.java index 885cb71..3019afa 100644 --- a/test/jalview/viewmodel/styles/ViewStyleTest.java +++ b/test/jalview/viewmodel/styles/ViewStyleTest.java @@ -60,8 +60,8 @@ public class ViewStyleTest * @throws IllegalArgumentException */ @Test(groups = { "Functional" }) - public void testCopyConstructor() throws IllegalArgumentException, - IllegalAccessException + public void testCopyConstructor() + throws IllegalArgumentException, IllegalAccessException { ViewStyle vs1 = new ViewStyle(); Field[] fields = ViewStyle.class.getDeclaredFields(); @@ -83,7 +83,7 @@ public class ViewStyleTest final Object value1 = field1.get(vs1); final Object value2 = field1.get(vs2); String msg = "Mismatch in " + field1.getName() + "(" + value1 + "/" - + value2 + ") - not set in copy constructor?"; + + value2 + ") - not set in copy constructor?"; assertEquals(msg, value1, value2); } } @@ -91,8 +91,8 @@ public class ViewStyleTest } /** - * Add tests here for any fields that we expect to be ignored by - * the copy constructor + * Add tests here for any fields that we expect to be ignored by the copy + * constructor * * @param field * @return @@ -113,14 +113,14 @@ public class ViewStyleTest return false; } - + /** - * Change the value of one field in a ViewStyle object - * - * @param vs - * @param field - * @throws IllegalAccessException - */ + * Change the value of one field in a ViewStyle object + * + * @param vs + * @param field + * @throws IllegalAccessException + */ protected void changeValue(ViewStyle vs, Field field) throws IllegalAccessException { @@ -174,8 +174,8 @@ public class ViewStyleTest } else if (type.equals(Color.class)) { - field.set(vs, Color.RED.equals(field.get(vs)) ? Color.BLACK - : Color.RED); + field.set(vs, + Color.RED.equals(field.get(vs)) ? Color.BLACK : Color.RED); } else { @@ -208,8 +208,8 @@ public class ViewStyleTest * @throws IllegalArgumentException */ @Test(groups = { "Functional" }) - public void testEquals() throws IllegalArgumentException, - IllegalAccessException + public void testEquals() + throws IllegalArgumentException, IllegalAccessException { ViewStyle vs1 = new ViewStyle(); ViewStyle vs2 = new ViewStyle(vs1); @@ -228,7 +228,7 @@ public class ViewStyleTest Object oldValue = field.get(vs2); changeValue(vs2, field); assertFalse("equals method ignores " + field.getName(), - vs1.equals(vs2)); + vs1.equals(vs2)); if (vs1.hashCode() == vs2.hashCode()) {