Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If this simple environment is not enough for you, you can override protected methods like setUp() or setUpServletObjects() and others, to customize it to your needs. If you need to mix real JSF artifacts with mock instances you can do it with AbstractJsfConfigurableMockTestCase. For example take a look at FaceletTestCase. It extends from AbstractJsfConfigurableMockTestCase, and uses a mixture between mock objects and MyFaces Core object to allow build facelet views and test it.

...