git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'documentation/JAL-3111_release_211' into bug/JAL-2830_editManglesDatase...
[jalview.git]
/
test
/
jalview
/
viewmodel
/
styles
/
ViewStyleTest.java
diff --git
a/test/jalview/viewmodel/styles/ViewStyleTest.java
b/test/jalview/viewmodel/styles/ViewStyleTest.java
index
bc74d8a
..
885cb71
100644
(file)
--- a/
test/jalview/viewmodel/styles/ViewStyleTest.java
+++ b/
test/jalview/viewmodel/styles/ViewStyleTest.java
@@
-100,24
+100,27
@@
public class ViewStyleTest
private boolean copyConstructorIgnores(Field field)
{
/*
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 true;
}
+ if (field.getType().toString().contains("com_atlassian_clover"))
+ {
+ return true;
+ }
+
return false;
}
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
{
protected void changeValue(ViewStyle vs, Field field)
throws IllegalAccessException
{