While I was playing with JSFUnit, I just needed to start a web container inside my tests. Jettyis very famous as being embeddable in standalone java applications. Therefore, spots are directed onto Jetty web site, and I downloaded latest stable version and started playing with it. First you need to add servlet.jar, jetty.jar, jetty-util.jar and […]
Month: July 2009
How to create a custom FacesContext
Although I am not happy with several issues in JSF spec, I like its customizability. A couple of days ago, I needed to introduce Mediator pattern in my case studies. FacesContext instance seemed to be a good candidate as Mediator object. You need to execute three easy steps to introduce custom FacesContext implementation into your […]
Integrating JSFUnit To Your Project
Actually I am not a big fun of in-container unit testing approaches. They have longer execution times, e.g. container and database startup, intialization times etc. In addition, they create configuration complexity in terms of packaging of tests and deployment of application together with them. Anyway, recently I needed to examine JSFUnit solution more closely for […]