Is there a Java unit-test framework that auto-tests getters and setters? [closed]

I created the OpenPojo project for solving this exact problem.

The project allows you to validate:

  • Enforce Pojo coding standard (i.e. All fields private, or no native variables, …etc)
  • Enforce Pojo behaviour (i.e. setter does JUST setting, no transformation, etc)
  • Validate Pojo Identity (i.e. Use annotation based equality & hashcode generation)

See Tutorial

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)