I have recently tried to to implement unit tests on a Java Web Application my project is built on MVC design architecture and uses Spring & JPA Hibernate and JSF here is a package tree
-src
-entity
-dao
-impl
-service
-impl
-rest
-impl
-web
-utils
-config
-common
-enums
-exceptions
So do I need to write a unit test for the following classes :
utils/DateUtils.java
entity/User.java
web/RegisterUserBeanAction.java
dao/UserDao.java
commons/enums/UserTypeEnum.java
If yes so I wonder how testing a class like User.java
just has some properties with setters and getters would be
If no so what the rule then ?