Best way to unit test jsf 2.0 Managed Bean

What is the most efficient way to unit test JSF 2.0 managed beans. I saw JSFUnit from JBoss, but it looks like to test components on facelets pages, but not managed beans itself.

I want to find a way to effectively unit test manage only beans.

Any ideas?

+3
source share
2 answers

Configure managed beans so that all their dependencies are entered as managed properties through setters. You can then manually enter layouts or stubs in your unit tests.

+5
source

JSFUnit is another alternative

+2
source

All Articles