JUnit tests for POJOs

Posted by Ryan Thames on Stack Overflow See other posts from Stack Overflow or by Ryan Thames
Published on 2009-03-23T17:31:45Z Indexed on 2010/06/12 15:22 UTC
Read the original article Hit count: 367

Filed under:
|
|

I work on a project where we have to create unit tests for all of our simple beans (POJOs). Is there any point to creating a unit test for POJOs if all they consist of is getters and setters? Is it a safe assumption to assume POJOs will work about 100% of the time?


Duplicate of - Should @Entity Pojos be tested?

See also

Is it bad practice to run tests on a DB instead of on fake repositories?

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

© Stack Overflow or respective owner

Related posts about java

Related posts about junit