OpenPojo / openpojo

POJO Testing & Identity Management Made Trivial
http://openpojo.com
Apache License 2.0
156 stars 40 forks source link

pojoclass validation fails when getting the java code coverage from cobertura #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

run openpojo validation on pojo classes with the maven goal:

mvn cobertura:cobertura

What is the expected output? What do you see instead?

The tests fail when running the cobertura plugin with: java.lang.AssertionError

What version of the product are you using? On what operating system?
0.4.9, reproduced on windows and unix

Please provide any additional information below.

This is the same issue as number 29, but instead of Jacoco it applies to 
cobertura.

java.lang.AssertionError: Public fields=[PojoFieldImpl [field=public static 
final transient int[] com.mycompany.MyClass.__cobertura_counters, 
fieldGetter=null, fieldSetter=null]] not allowed
    at org.junit.Assert.fail(Assert.java:88)
    at com.openpojo.validation.affirm.JUnitAssertAffirmation.fail(JUnitAssertAffirmation.java:42)
    at com.openpojo.validation.affirm.Affirm.fail(Affirm.java:46)
    at com.openpojo.validation.rule.impl.NoPublicFieldsRule.evaluate(NoPublicFieldsRule.java:35)
    at com.openpojo.validation.PojoValidator.runValidation(PojoValidator.java:66)

Original issue reported on code.google.com by croesusk...@gmail.com on 13 Feb 2014 at 11:25

GoogleCodeExporter commented 9 years ago
This issue has been resolved and changes are incorporated in release 
OpenPojo-0.5.0.
Which can be downloaded from here: http://bit.ly/1oiDOun

Original comment by oshou...@gmail.com on 3 Mar 2014 at 5:06

GoogleCodeExporter commented 9 years ago
Nicely done, thanks :)

Original comment by croesusk...@gmail.com on 6 Mar 2014 at 11:12