I'm trying JSFUnit with Apache Myfaces 1.2 and JBoss 4.0.5 GA. I modified the JSFUnit sample to request my URL like this:
JSFClientSession client = new JSFClientSession("/portais/docente/docente.jsf");
But, when test executes, returns:
java.lang.NullPointerException
at org.jboss.jsfunit.framework.FacesContextBridge.getCurrentInstance(FacesContextBridge.java:54)
It's important for the project use a Test Unit with JSF, than, I will try JSFUnit!
Thanks!
Can you post the full stack trace?
JBoss 4.0.5 ships with MyFaces 1.1. How did you upgrade it to MyFaces 1.2?
Stan