Blog
Thursday, 31 May 2012
seam3-persistence-framework 1.0.2 is out
We've fixed problems with DynEntityQuery not being refreshed when dynamic parameter value change.
Artifacts are available at: http://artifactory.it-crowd.com.pl/repo
Monday, 28 May 2012
Mock FacesContext in Arquillian
Recently I wanted to test my backing beans for JSF views. Unfortunately the EntityQuery (from seam3-persistence-framework) is very tightly bound to JSF api, particularly it depends on FacesContext.getCurrentInstance().getELContext(). The problem is that the tests are not associated with JSF requests, so FacesContext.getCurrentInstance() returns null.
I decided to extend mock-contexts-extension to help mocking FacesContext.
I decided to extend mock-contexts-extension to help mocking FacesContext.
Subscribe to:
Posts (Atom)