Exclude jacoco fields from consistency test

- The Jacoco plugin adds fields "$jacocoData" to the classes which make the test fail
This commit is contained in:
ljacqu 2017-03-26 14:47:39 +02:00
parent e3abfc3685
commit dbd0e04a2e

View File

@ -86,6 +86,7 @@ public class ClassesConsistencyTest {
.filter(clz -> !CLASSES_EXCLUDED_FROM_VISIBILITY_TEST.contains(clz))
.map(Class::getDeclaredFields)
.flatMap(Arrays::stream)
.filter(f -> f.getName().contains("$"))
.filter(f -> hasIllegalFieldVisibility(f))
.map(f -> formatField(f))
.collect(Collectors.toSet());