X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=test%2Fjalview%2Fviewmodel%2Fstyles%2FViewStyleTest.java;h=7deb2b0a15480c6c1a6a81c444fc6ce80e527797;hp=bc74d8a3b6d9e8687033ba027cb7670529e25283;hb=20b398cdef84acd33f817d2f529139073f2771b3;hpb=760646090b2a9c46e3e9a972f18f827452e48826 diff --git a/test/jalview/viewmodel/styles/ViewStyleTest.java b/test/jalview/viewmodel/styles/ViewStyleTest.java index bc74d8a..7deb2b0 100644 --- a/test/jalview/viewmodel/styles/ViewStyleTest.java +++ b/test/jalview/viewmodel/styles/ViewStyleTest.java @@ -100,24 +100,23 @@ public class ViewStyleTest private boolean copyConstructorIgnores(Field field) { /* - * just instrumentation added by test coverage while testing + * ignore instrumentation added by jacoco for test coverage */ - String type = field.getClass().toString(); - if (type.toString().contains("com_atlassian_clover")) + if (field.isSynthetic()) { - // instrumentation added for test coverage - ignore return true; } + 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 {