[jboss-user] [JBoss Seam] - SeamTest and FacesRequest

bytor99999 do-not-reply at jboss.com
Tue Mar 20 19:36:31 EDT 2007


I have been trying to create FacesRequests in a util class, so that I could re-use the same FacesRequest in other SeamTests. However, I seem to be getting a NullPointerException when I do this. The NPE comes from the SeamTest class in line 407 which is

phases.beforePhase( new PhaseEvent(facesContext, PhaseId.RESTORE_VIEW, MockLifecycle.INSTANCE) );

The phases variable is null and hence the NPE. :)

Should it be possible to create FacesRequest in a different class for re-use, or must it be within a class that extends SeamTest.

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030057#4030057

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030057



More information about the jboss-user mailing list